/* polish.css: visual polish layered over the prebuilt (purged) tailwind.css.
   Plain CSS only: tailwind.css is purged, so new utility classes would not exist.
   Linked after tailwind.css on every page. No external resources (strict CSP).

   Direction: the brand's own "Lusaka sunset" (the welcome screen's gold -> orange -> navy glow) is the one bold
   device, used as a horizon line and low glow on the navy bands. Everything else stays quiet: one typeface
   (Plus Jakarta Sans, self-hosted), a firmer type scale, sentence-case section labels, consistent buttons,
   visible focus, greyscale client logos that wake up on hover. */

:root {
  --pg-navy: #0a1628;
  --pg-navy-950: #071223;
  --pg-navy-700: #1c3050;
  --pg-gold: #f2b632;
  --pg-gold-hover: #e0a80f;
  --pg-orange: #e07a2e;
  --pg-teal: #0a7d91;
  --pg-teal-ink: #086a7b;   /* teal for text on mist: 5.5:1 */
  --pg-mist: #f4f6fa;
  --pg-mist-2: #eef2f7;
  --pg-line: #e3e8ef;
  --pg-slate: #4a5568;
  --pg-horizon: linear-gradient(90deg, #f2b632 0%, #e07a2e 45%, #0a7d91 100%);
  --pg-shadow-1: 0 1px 2px rgba(10, 22, 40, .06), 0 10px 28px -14px rgba(10, 22, 40, .22);
  --pg-shadow-2: 0 2px 4px rgba(10, 22, 40, .06), 0 22px 44px -20px rgba(10, 22, 40, .32);
  --pg-radius-btn: 10px;
}

/* ---------- base ---------- */
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img { max-width: 100%; }
::selection { background: rgba(242, 182, 50, .45); color: var(--pg-navy); }

/* ---------- typography ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
h1.font-extrabold, h2.font-extrabold { letter-spacing: -.022em; }
h2.text-3xl { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.5rem); line-height: 1.12; }
h3.text-2xl { letter-spacing: -.012em; }
.leading-relaxed { line-height: 1.7; }
.max-w-2xl > h2 + p, p.max-w-md, p.max-w-xl { max-width: 62ch; }
.text-slate { color: var(--pg-slate); }

/* Section labels: sentence case with a short rule, instead of tracked-out capitals. The words are the page's own;
   only text-transform changes. */
p.uppercase.tracking-wider {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: .005em;
  font-size: 15px;
  line-height: 1.3;
}
p.uppercase.tracking-wider::before {
  content: "";
  flex: none;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
p.uppercase.tracking-wider.text-center { justify-content: center; }
p.uppercase.tracking-wider.text-slate::before { background: var(--pg-gold); }
span.uppercase.tracking-wider { text-transform: none; letter-spacing: .01em; font-size: 13px; }
.bg-mist .text-brand-cyan-dark { color: #006b99; }  /* 5.4:1 on mist */

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--pg-teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.bg-navy-900 :focus-visible, .bg-navy-950 :focus-visible, footer :focus-visible,
.pg-welcome .pg-card:focus-visible, .pg-card :focus-visible {
  outline-color: var(--pg-gold);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--pg-teal) !important;
}

/* ---------- utility bar + header ---------- */
.bg-navy-950.text-\[13px\] a { text-underline-offset: 3px; }
.bg-navy-950.text-\[13px\] a:hover { text-decoration: underline; }

header.bg-white {
  position: relative;
  z-index: 40;
  box-shadow: 0 1px 0 var(--pg-line);
  border-bottom-color: transparent;
}
@media (min-width: 1024px) {
  header.bg-white {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
nav[aria-label="Main"] a:not(.rounded-lg) {
  position: relative;
  border-radius: 8px;
}
nav[aria-label="Main"] a:not(.rounded-lg):hover { background: var(--pg-mist); }
nav[aria-label="Main"] a[aria-current="page"]:not(.rounded-lg) { color: var(--pg-teal-ink); }
nav[aria-label="Main"] a[aria-current="page"]:not(.rounded-lg)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--pg-gold);
}

/* ---------- buttons (one system) ---------- */
a.rounded-lg.bg-brand-amber, a.rounded-lg.bg-navy-900, a.rounded-lg.border, a.rounded-lg.ring-1, button[type="submit"].rounded-lg,
.pg-welcome .pg-card .go {
  min-height: 48px;
  border-radius: var(--pg-radius-btn);
  font-weight: 700;
  letter-spacing: .005em;
  justify-content: center;
}
a.rounded-lg.bg-brand-amber, button[type="submit"].bg-brand-amber {
  box-shadow: 0 1px 0 rgba(10, 22, 40, .12), inset 0 -2px 0 rgba(10, 22, 40, .10);
}
a.rounded-lg.bg-brand-amber:hover, button[type="submit"].bg-brand-amber:hover { background-color: var(--pg-gold-hover); }
a.rounded-lg.bg-navy-900:hover { background-color: #172a48; }
a.rounded-lg.border.border-line { border-color: #c5cdd8; }
a.rounded-lg.border.border-line:hover { background: var(--pg-mist); border-color: var(--pg-navy-700); }
a.rounded-lg.border.border-white\/30:hover { border-color: rgba(255, 255, 255, .6); }
a.rounded-lg:active, button[type="submit"]:active { transform: translateY(1px); }
nav[aria-label="Main"] a.rounded-lg { min-height: 44px; }

/* ---------- section rhythm and backgrounds ---------- */
section.bg-mist {
  background-color: var(--pg-mist);
  background-image: linear-gradient(180deg, var(--pg-mist) 0%, var(--pg-mist-2) 100%);
  box-shadow: inset 0 1px 0 var(--pg-line);
}

/* The horizon: navy bands get the sunset as a low glow and a thin line along their foot. */
section.bg-navy-900 {
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(70% 90% at 100% 120%, rgba(224, 122, 46, .22) 0%, rgba(224, 122, 46, 0) 60%),
    radial-gradient(50% 70% at 0% 130%, rgba(10, 125, 145, .28) 0%, rgba(10, 125, 145, 0) 60%);
}
section.bg-navy-900::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--pg-horizon);
  z-index: 1;
  pointer-events: none;
}
section.bg-navy-900 .text-white\/60 { color: rgba(255, 255, 255, .72); }
section.bg-navy-900 .text-white\/50, .bg-navy-950 .text-white\/50 { color: rgba(255, 255, 255, .68); }

/* ---------- cards ---------- */
.shadow-card { box-shadow: var(--pg-shadow-1); }
#companies article.rounded-3xl {
  background-image: linear-gradient(var(--pg-accent, #00aeef), var(--pg-accent, #00aeef));
  background-size: 100% 5px;
  background-repeat: no-repeat;
}
#companies article.rounded-3xl:last-of-type { --pg-accent: #800080; }
#companies a.rounded-3xl, a.rounded-2xl.ring-1 { transition: box-shadow .2s ease, transform .2s ease; }
#companies a.rounded-3xl:hover, a.rounded-2xl.ring-1.shadow-card:hover { box-shadow: var(--pg-shadow-2); }
li.rounded-2xl.border.border-line { background: #fff; }
figure.rounded-3xl blockquote { font-size: 18px; line-height: 1.62; }
figure.rounded-3xl figcaption { border-top: 1px solid var(--pg-line); margin-top: auto; padding-top: 20px; }
figure.rounded-3xl blockquote + figcaption { margin-top: 32px; }

/* Service tabs (the inline script swaps class names; these follow aria-selected) */
[role="tab"] { border-radius: 8px 8px 0 0; transition: color .15s ease, background-color .15s ease; }
[role="tab"]:hover { background: var(--pg-mist); }
[role="tab"][aria-selected="true"] { border-bottom-color: var(--pg-gold) !important; }

/* Tables (references, CV) */
table thead tr { border-bottom: 2px solid var(--pg-navy); }
table thead th { font-size: 13px; letter-spacing: .01em; text-transform: none; color: var(--pg-navy-700); }
table tbody tr { transition: background-color .15s ease; }
table tbody tr:hover { background: var(--pg-mist); }
table td:first-child, table th:first-child { padding-left: 8px; }

/* Forms */
input.h-12, select.h-12, textarea.rounded-lg { transition: border-color .15s ease, box-shadow .15s ease; }
input.h-12:hover, select.h-12:hover, textarea.rounded-lg:hover { border-color: #8d9aae !important; }

/* Footer */
footer a { text-underline-offset: 3px; }
footer a:hover { text-decoration: underline; }
footer.bg-navy-950 { position: relative; }
footer.bg-navy-950::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--pg-horizon);
  opacity: .9;
}

/* ---------- welcome screen (home) ---------- */
html .pg-welcome .pg-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(10, 22, 40, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
html .pg-welcome .pg-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -20px rgba(10, 22, 40, .6); }
html .pg-welcome .pg-card .go {
  display: flex;
  align-items: center;
  width: auto;
  max-width: 260px;
  margin: 0 24px 26px;
  padding: 10px 18px;
  align-self: center;
  min-width: 60%;
  box-shadow: inset 0 -2px 0 rgba(10, 22, 40, .12);
}
html .pg-welcome .pg-card .lg img { border-radius: 16px; }

/* ---------- client logos ---------- */
.pg-logos img[data-sc-field="image"] { display: block; object-fit: contain; }
.pg-logo-on-dark { background: var(--pg-navy); border-radius: 6px; padding: 6px 10px; box-sizing: content-box; }

/* home: a strip of marks; the name stays in the page for screen readers, and shows when there is no logo */
.pg-logos--strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: center;
  gap: 18px 28px;
  width: 100%;
  flex-basis: 100%;
  color: var(--pg-navy-700);
  font-size: 15px;
  line-height: 1.25;
}
.pg-logos--strip li { display: flex; align-items: center; justify-content: center; min-height: 64px; text-align: center; }
.pg-logos--strip img[data-sc-field="image"] { height: 56px; width: auto; max-width: 150px; }
.pg-logos--strip img[src$="amref-health-africa.png"] { height: 50px; }
.pg-logos--strip li:has(> img[data-sc-field="image"]:not([hidden])) > [data-sc-field="title"] {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pg-logos--strip [data-sc-field="title"] { font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
/* the label sits above the strip, so the marks get the full width */
section.border-b.border-line > div:has(> .pg-logos--strip) { row-gap: 18px; }
section.border-b.border-line > div:has(> .pg-logos--strip) > p { width: 100%; }

/* PIS: logo tiles with the name as a caption */
.pg-logos--tiles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  padding-left: 10px;
  padding-right: 10px;
}
.pg-logos--tiles img[data-sc-field="image"] { height: 36px; width: auto; max-width: 88%; }
.pg-logos--tiles li:has(> img[data-sc-field="image"]:not([hidden])) > [data-sc-field="title"] {
  font-size: 12px; font-weight: 700; color: var(--pg-slate); letter-spacing: .01em;
}

/* PTC: small marks beside the names */
.pg-logos--inline li { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.pg-logos--inline img[data-sc-field="image"] { width: 56px; height: 28px; flex: none; object-position: left center; }
.pg-logos--inline img.pg-logo-on-dark { box-sizing: border-box; padding: 5px 7px; object-position: center; }
/* when a list has any marks, names without one line up with the others */
.pg-logos--inline:has(img[data-sc-field="image"]:not([hidden])) li:not(:has(> img[data-sc-field="image"]:not([hidden]))) { padding-left: 68px; }

/* references: a quiet band of the marks we have, above the table (decorative; the table carries the names) */
.pg-logo-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: var(--pg-mist);
}
.pg-logo-band img { height: 44px; width: auto; max-width: 170px; object-fit: contain; }

/* greyscale until hover, only where hovering exists (touch screens see the colours) */
@media (hover: hover) {
  .pg-logos img[data-sc-field="image"], .pg-logo-band img {
    filter: grayscale(1);
    opacity: .85;
    transition: filter .25s ease, opacity .25s ease;
  }
  .pg-logos li:hover img[data-sc-field="image"], .pg-logo-band img:hover {
    filter: none;
    opacity: 1;
  }
}

/* ---------- card.html (contact card) ---------- */
main.card, main.card + footer { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
main.card .save { box-shadow: inset 0 -2px 0 rgba(10, 22, 40, .12); }
main.card .save:hover { background: var(--pg-gold-hover); }
main.card .row a:hover { color: var(--pg-teal-ink); }

/* ---------- tablet (768px and under) ---------- */
@media (max-width: 767.98px) {
  .py-24 { padding-top: 64px; padding-bottom: 64px; }
  .py-20 { padding-top: 52px; padding-bottom: 52px; }
  .pt-20 { padding-top: 56px; }
  .pb-24 { padding-bottom: 72px; }
  .mt-14 { margin-top: 40px; }
  .mt-12 { margin-top: 36px; }
  .p-10 { padding: 28px; }
  .p-8 { padding: 24px; }

  /* header: the menu becomes one tidy scrollable row under the name */
  header.bg-white > div { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 8px; }
  /* a wrapping column line takes its widest item's width: no wrap, so the menu strip is the screen's width and scrolls inside */
  header.bg-white > div > nav[aria-label="Main"] { min-width: 0; }
  nav[aria-label="Main"] {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -24px;
    margin-right: -24px;
    padding: 2px 24px 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%);
  }
  nav[aria-label="Main"]::-webkit-scrollbar { display: none; }
  nav[aria-label="Main"] a { white-space: nowrap; flex: none; }

  /* the CTA box: keep the decorative squares clear of the heading */
  .-right-10.-top-10.w-56 { width: 128px; height: 128px; right: -36px; top: -36px; opacity: .45; }

  .pg-logos--strip { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 12px 14px; font-size: 14px; }
  .pg-logos--strip li { min-height: 56px; }
  .pg-logos--strip img[data-sc-field="image"] { height: 46px; max-width: 120px; }
  .pg-logos--strip img[src$="amref-health-africa.png"] { height: 40px; }

  table { min-width: 640px; }
}

/* ---------- phone (480px and under, tuned at 360px) ---------- */
@media (max-width: 480px) {
  .px-6 { padding-left: 20px; padding-right: 20px; }
  nav[aria-label="Main"] { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .bg-navy-950.text-\[13px\] { font-size: 12.5px; }
  .bg-navy-950.text-\[13px\] > div { justify-content: flex-start; row-gap: 4px; }

  html .pg-welcome { padding: 40px 20px; min-height: 0; }
  html .pg-welcome hr { margin: 24px auto 28px; }
  html .pg-cards { gap: 20px; grid-template-columns: 1fr; }
  html .pg-card .lg { min-height: 170px; padding: 24px 20px; }

  .pg-logos--tiles.grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rounded-\[32px\].px-8 { padding-left: 24px; padding-right: 24px; }
  .text-4xl { font-size: 2rem; line-height: 1.12; }
  dl .text-3xl { font-size: 1.625rem; }
  .fixed.bottom-6.right-6 { bottom: 16px; right: 16px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  html .pg-welcome .pg-card:hover, a.rounded-lg:active, button[type="submit"]:active { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a.rounded-lg, button[type="submit"] { transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
}

/* ---------- print ---------- */
@media print {
  header.bg-white { position: static; }
  section.bg-navy-900::after, footer.bg-navy-950::before, .fixed { display: none; }
}

/* presence list: keep the country column steady when the companies text runs long */
li.flex > span.w-36 { flex: none; }

@media (max-width: 480px) {
  .rounded-\[28px\].p-7 { padding: 20px; min-height: 200px; }
  .rounded-\[28px\].p-7 .text-xl { font-size: 1.125rem; }
}
.pg-logos--tiles img[src$="zicta.png"], .pg-logos--tiles img[src$="mtn-momo.svg"] { height: 44px; }

@media (max-width: 767.98px) {
  /* hero logo card: keep it inside the screen */
  .absolute.-bottom-8.-left-8 { left: 12px; bottom: -24px; padding: 16px; }
  .absolute.-bottom-8.-left-8 img.h-24 { height: 72px; }
}
@media (max-width: 480px) {
  dd.text-2xl.font-extrabold { font-size: 1.3rem; }
}

/* The page you are on, in the main menu (the menu is a link list staff edit: site-content data-sc-links). */
body[data-page="index"] nav[aria-label="Main"] a[href="/"],
body[data-page="about"] nav[aria-label="Main"] a[href="/about"],
body[data-page="references"] nav[aria-label="Main"] a[href="/references"],
body[data-page="cv"] nav[aria-label="Main"] a[href="/cv"] { color: rgb(0 114 163); }

/* ---------- hero tiles: the company pages show their four lines of work in the brand colours ---------- */
.pg-hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%; }
.pg-hero-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 22px; padding: 20px; min-height: 0;
}
.pg-hero-tile:nth-child(2), .pg-hero-tile:nth-child(4) { transform: translateY(18px); }
.pg-hero-tile__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .92);
}
.pg-hero-tile__label { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
@media (max-width: 640px) {
  .pg-hero-tile { padding: 16px; border-radius: 18px; }
  .pg-hero-tile__icon { width: 38px; height: 38px; border-radius: 12px; }
  .pg-hero-tile__label { font-size: 15px; }
  .pg-hero-tile:nth-child(2), .pg-hero-tile:nth-child(4) { transform: translateY(10px); }
}

/* ---------- products: the product's own mark on its colour, in place of a screenshot ---------- */
.pg-product-mark { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; padding: 24px; }
.pg-product-mark__photo { height: 120px; width: auto; border-radius: 16px; box-shadow: var(--pg-shadow-1); }
.pg-product-mark__logo { height: 52px; width: auto; max-width: 70%; object-fit: contain; }

/* ---------- PTC: the featured reference reads as the lead quote ---------- */
@media (min-width: 1024px) { figure.rounded-3xl blockquote.pg-quote-lead { font-size: 26px; line-height: 1.45; letter-spacing: -.01em; } }

/* ---------- references: five marks in the band ---------- */
.pg-logo-band { flex-wrap: wrap; }
/* the company logo card sits on the top-right corner, clear of the tiles' labels */
.relative:has(> div > .pg-hero-tiles) > .absolute { top: -28px; right: -28px; bottom: auto; left: auto; }
@media (max-width: 640px) { .relative:has(> div > .pg-hero-tiles) > .absolute { top: -20px; right: -8px; padding: 14px; } }

/* ---------- motion: quick and exact, once per element, never looping ----------
   Page load: the page-top heading, lead and buttons rise in; the company tiles follow in a short stagger;
   the horizon line under the page-top band draws in. Scroll: js/motion.js marks cards and headings that start
   below the fold (.pg-reveal) and lets them settle in as they arrive (.pg-in). Hover: clickable cards lift. */
@keyframes pg-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes pg-tile { from { opacity: 0; translate: 0 18px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes pg-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  section:has(h1) h1 { animation: pg-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  section:has(h1) h1 ~ p { animation: pg-rise .6s cubic-bezier(.2, .7, .2, 1) .08s both; }
  section:has(h1) h1 ~ div:not(.pg-cards) { animation: pg-rise .6s cubic-bezier(.2, .7, .2, 1) .16s both; }

  .pg-hero-tile, .pg-welcome .pg-card { animation: pg-tile .7s cubic-bezier(.2, .7, .2, 1) both; }
  .pg-hero-tile:nth-child(1), .pg-welcome .pg-card:nth-child(1) { animation-delay: .22s; }
  .pg-hero-tile:nth-child(2), .pg-welcome .pg-card:nth-child(2) { animation-delay: .32s; }
  .pg-hero-tile:nth-child(3) { animation-delay: .42s; }
  .pg-hero-tile:nth-child(4) { animation-delay: .52s; }

  section.bg-navy-900:has(h1)::after { transform-origin: left center; animation: pg-draw 1.1s cubic-bezier(.6, 0, .2, 1) .35s both; }

  .pg-reveal { opacity: 0; translate: 0 16px; transition: opacity .55s cubic-bezier(.2, .7, .2, 1), translate .55s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--pg-delay, 0s); }
  .pg-reveal.pg-in { opacity: 1; translate: 0 0; }

  a.rounded-2xl, a.rounded-3xl, a[class*="rounded-[28px]"] { transition: translate .2s ease, box-shadow .2s ease, background-color .2s ease; }
  a.rounded-2xl:hover, a.rounded-3xl:hover, a[class*="rounded-[28px]"]:hover { translate: 0 -3px; box-shadow: var(--pg-shadow-2); }
}
@media print { .pg-reveal { opacity: 1 !important; translate: none !important; } }

/* ---------- documents: links to the PDFs and the on-page viewer (js/docviewer.js) ---------- */
.pg-doc-card {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 18px;
  border-radius: 18px; background: var(--pg-mist); border: 1px solid var(--pg-line); color: var(--pg-navy);
  text-decoration: none; max-width: 460px;
}
.pg-doc-card:hover { border-color: #0072a3; }
.pg-doc-card__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: #00aeef; color: #071223; }
.pg-doc-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pg-doc-card__title { font-weight: 700; line-height: 1.3; }
.pg-doc-card__meta { margin-top: 2px; font-size: 14px; color: var(--pg-slate); }
.pg-doc-card__go { flex: none; font-size: 14px; font-weight: 700; color: #0072a3; }

.pg-doc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: #0072a3; text-decoration: none; }
.pg-doc-link::before {
  content: ""; width: 14px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M1 0h8l5 5v11H1z M8 0v6h6' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M1 0h8l5 5v11H1z M8 0v6h6' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pg-doc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-doc-link--dark { color: #7fd6f7; }
td .pg-doc-link { margin-top: 6px; }

html.pg-doc-open { overflow: hidden; }
dialog.pg-doc {
  width: min(920px, calc(100vw - 32px)); height: calc(100vh - 48px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: #e9edf3; color: var(--pg-navy); box-shadow: 0 30px 80px -20px rgba(7, 18, 35, .55);
  display: none; flex-direction: column;
}
dialog.pg-doc[open] { display: flex; }
dialog.pg-doc::backdrop { background: rgba(7, 18, 35, .72); }
.pg-doc__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; background: #fff; border-bottom: 1px solid var(--pg-line); }
.pg-doc__head { flex: 1; min-width: 0; }
.pg-doc__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-doc__meta { margin: 2px 0 0; font-size: 13px; color: var(--pg-slate); }
.pg-doc__download {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pg-radius-btn);
  background: var(--pg-gold); color: var(--pg-navy-950); font-weight: 700; font-size: 14px; text-decoration: none;
}
.pg-doc__download:hover { background: var(--pg-gold-hover); }
.pg-doc__close { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--pg-mist); color: var(--pg-navy); cursor: pointer; }
.pg-doc__close:hover { background: var(--pg-line); }
.pg-doc__pages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pg-doc__page { display: block; width: 100%; max-width: 860px; height: auto; background: #fff; box-shadow: var(--pg-shadow-1); border-radius: 4px; }
@media (max-width: 640px) {
  dialog.pg-doc { width: 100vw; height: 100dvh; border-radius: 0; }
  .pg-doc__bar { padding: 10px 10px 10px 16px; }
  .pg-doc__meta { display: none; }
  .pg-doc__pages { padding: 10px; gap: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.pg-doc[open] { animation: pg-doc-in .22s cubic-bezier(.2, .7, .2, 1); }
  dialog.pg-doc[open]::backdrop { animation: pg-fade .22s ease; }
}
@keyframes pg-doc-in { from { opacity: 0; translate: 0 12px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes pg-fade { from { opacity: 0; } to { opacity: 1; } }
/* long email addresses may break, so they never push a narrow screen sideways */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- PTC leadership: the founder's card, photo beside the text ---------- */
.pg-founder { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; max-width: 880px; }
.pg-founder__photo { width: 220px; height: 220px; object-fit: cover; object-position: center 20%; border-radius: 24px; background: var(--pg-mist); }
.pg-founder .pg-doc-link::before { display: none; }
.pg-founder .pg-doc-link { margin-top: 14px; font-size: 15px; }
@media (max-width: 640px) {
  .pg-founder { grid-template-columns: 1fr; gap: 20px; }
  .pg-founder__photo { width: 140px; height: 140px; border-radius: 20px; }
}
/* a link whose text staff cleared in the admin disappears with it (no invisible, nameless link left for keyboards) */
a[data-sc-text]:empty { display: none; }

/* ---------- sections staff can switch off; the top utility bar starts off ---------- */
[data-sc-section-default="off"]:not([data-sc-section-on]) { display: none !important; }

/* ---------- company sub-pages: a short page header with the breadcrumb ---------- */
.pg-subhero { border-bottom: 1px solid var(--pg-line); }
.pg-subhero + section > div { padding-top: 56px; }

/* ---------- explore: the company home's links to its pages ---------- */
.pg-explore {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 22px 22px 22px 24px;
  border-radius: 20px; background: #fff; border: 1px solid var(--pg-line); color: var(--pg-navy); text-decoration: none;
}
.pg-explore:hover { border-color: #0072a3; }
.pg-explore__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pg-explore__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.pg-explore__desc { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--pg-slate); }
.pg-explore__go { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pg-mist); color: var(--pg-navy); }
.pg-explore:hover .pg-explore__go { background: var(--pg-gold); }

/* ---------- about: why choose us ---------- */
.pg-why-link { margin-top: auto; padding-top: 14px; }
.pg-why-link::before { display: none; }

/* ---------- founder: LinkedIn ---------- */
.pg-linkedin {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: var(--pg-radius-btn); background: #0a66c2; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
}
.pg-linkedin:hover { background: #004182; }

/* ---------- news: press releases on a company home ---------- */
.pg-news { position: relative; padding: 28px 30px; border-radius: 24px; background: var(--pg-mist); border: 1px solid var(--pg-line); max-width: 880px; }
.pg-news::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 4px; border-radius: 0 4px 4px 0; background: #00aeef; }
.pg-news__meta { font-size: 14px; font-weight: 600; color: #0072a3; }
.pg-news__title { margin-top: 8px; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--pg-navy); }
.pg-news__text { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--pg-slate); max-width: 72ch; }
.pg-news__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; padding: 0 18px; border-radius: var(--pg-radius-btn); background: #0a66c2; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.pg-news__link:hover { background: #004182; }

/* ---------- footer: contact us, each way of reaching us labelled and clickable ---------- */
.pg-footer-contact { display: grid; gap: 10px; }
.pg-footer-contact li { display: flex; flex-direction: column; }
.pg-footer-contact__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--pg-gold); }
.pg-footer-contact a, .pg-footer-emails a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.pg-footer-contact a:hover, .pg-footer-emails a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-footer-emails { display: grid; gap: 6px; margin-top: 6px; }
.pg-footer-emails a { display: block; }
.pg-footer-address { margin-top: 14px; white-space: pre-line; }

/* ---------- "all numbers are also on WhatsApp", under each group of numbers ---------- */
.pg-wa-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: #e7f6ee; color: #146c3c; font-size: 14px; font-weight: 600; }
.pg-wa-note--dark { margin-top: 0; background: rgba(31, 157, 85, .22); color: #c9f2da; }
/* a wide wordmark gets more width in the home strip, so its name stays readable */
.pg-logos--strip li:has(> img[alt^="Angelique"]:not([hidden])) { grid-column: span 2; min-width: 0; }
.pg-logos--strip img[alt^="Angelique"] { width: 100%; height: auto; max-width: 300px; max-height: 56px; }

/* ---------- about: logos on the accreditation cards and the group's company cards ---------- */
.pg-acc-logo { display: block; height: 44px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; margin-bottom: 14px; }
:is(a, div):has(> img:not([hidden])) > .pg-initials { display: none; }

/* ---------- home welcome: two company cards side by side, a third centred beneath them ---------- */
@media (min-width: 900px) {
  .pg-welcome .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-welcome .pg-card:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 20px); }
}
@media (prefers-reduced-motion: no-preference) { .pg-welcome .pg-card:nth-child(3) { animation-delay: .42s; } }

/* ---------- footer: social links as icon buttons (the icon follows the link, so staff only enter a name and a URL) ---------- */
.pg-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pg-social a { display: inline-flex; align-items: center; min-height: 40px; }
.pg-social a[href*="linkedin.com"] { --pg-soc: #0a66c2; --pg-soc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E"); }
.pg-social a[href*="facebook.com"], .pg-social a[href*="fb.com"], .pg-social a[href*="fb.me"] { --pg-soc: #1877f2; --pg-soc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3c-2.76 0-5 2.24-5 5v2H7v4h2v9h4v-9h3l1-4h-4V9c0-.55.45-1 1-1z'/%3E%3C/svg%3E"); }
.pg-social a[href*="twitter.com"], .pg-social a[href*="x.com/"] { --pg-soc: #000000; --pg-soc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E"); }
.pg-social a[href*="instagram.com"] { --pg-soc: #d6249f; --pg-soc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='1.3'/%3E%3C/svg%3E"); }
.pg-social a[href*="youtube.com"], .pg-social a[href*="youtu.be"] { --pg-soc: #ff0000; --pg-soc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12 31 31 0 0 0 1 16.8a3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8zM9.75 15.02V8.98L15.5 12z'/%3E%3C/svg%3E"); }
.pg-social a[href*="linkedin.com"], .pg-social a[href*="facebook.com"], .pg-social a[href*="fb.com"], .pg-social a[href*="fb.me"], .pg-social a[href*="twitter.com"], .pg-social a[href*="x.com/"], .pg-social a[href*="instagram.com"], .pg-social a[href*="youtube.com"], .pg-social a[href*="youtu.be"] { justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--pg-soc); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.14); transition: transform .15s ease, filter .15s ease; }
.pg-social a[href*="linkedin.com"]::before, .pg-social a[href*="facebook.com"]::before, .pg-social a[href*="fb.com"]::before, .pg-social a[href*="fb.me"]::before, .pg-social a[href*="twitter.com"]::before, .pg-social a[href*="x.com/"]::before, .pg-social a[href*="instagram.com"]::before, .pg-social a[href*="youtube.com"]::before, .pg-social a[href*="youtu.be"]::before { content: ""; width: 19px; height: 19px; background: #fff; -webkit-mask: var(--pg-soc-icon) center / contain no-repeat; mask: var(--pg-soc-icon) center / contain no-repeat; }
.pg-social a[href*="linkedin.com"] > span, .pg-social a[href*="facebook.com"] > span, .pg-social a[href*="fb.com"] > span, .pg-social a[href*="fb.me"] > span, .pg-social a[href*="twitter.com"] > span, .pg-social a[href*="x.com/"] > span, .pg-social a[href*="instagram.com"] > span, .pg-social a[href*="youtube.com"] > span, .pg-social a[href*="youtu.be"] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-social a[href*="linkedin.com"]:hover, .pg-social a[href*="facebook.com"]:hover, .pg-social a[href*="fb.com"]:hover, .pg-social a[href*="fb.me"]:hover, .pg-social a[href*="twitter.com"]:hover, .pg-social a[href*="x.com/"]:hover, .pg-social a[href*="instagram.com"]:hover, .pg-social a[href*="youtube.com"]:hover, .pg-social a[href*="youtu.be"]:hover { transform: translateY(-2px); filter: brightness(1.12); }
.pg-social a[href*="linkedin.com"]:focus-visible, .pg-social a[href*="facebook.com"]:focus-visible, .pg-social a[href*="fb.com"]:focus-visible, .pg-social a[href*="fb.me"]:focus-visible, .pg-social a[href*="twitter.com"]:focus-visible, .pg-social a[href*="x.com/"]:focus-visible, .pg-social a[href*="instagram.com"]:focus-visible, .pg-social a[href*="youtube.com"]:focus-visible, .pg-social a[href*="youtu.be"]:focus-visible { outline: 2px solid #f2b71a; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pg-social a { transition: none; } .pg-social a:hover { transform: none; } }

/* ---------- PTN: partner logos on the partner cards, and larger marks for the customers' emblems ---------- */
.pg-partner-logo { display: block; height: 56px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; margin-bottom: 16px; }
[data-sc-list="ptn-clients"] img[data-sc-field="image"] { height: 52px; }
