:root {
  --ptg-accent: #206456;
  --ptg-soft: #edf5f0;
  --ptg-line: #dce8e1;
  --ptg-shadow: 0 16px 42px #1738370d;
}
.dark { --ptg-accent: #98d6bd; --ptg-soft: #10232a; --ptg-line: #2d4649; --ptg-shadow: none; }

.ptg-feature-hero {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding-block: clamp(40px, 7vw, 105px);
}
.ptg-feature-hero__body { min-width: 0; }
.ptg-kicker { color: var(--ptg-accent); font-weight: 700; font-size: .82rem; letter-spacing: .13em; }
.ptg-feature-hero h1 { margin: 14px 0 21px; font-size: clamp(2.4rem, 5.1vw, 5.1rem); line-height: 1.07; letter-spacing: -.044em; text-wrap: balance; }
.ptg-feature-hero__body > p:not(.ptg-kicker) { max-width: 38rem; color: var(--muted); font-size: clamp(1.02rem,1.4vw,1.22rem); line-height: 1.65; }
.ptg-feature-hero > img { display: block; width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: 28px 28px 96px 28px; box-shadow: var(--ptg-shadow); }
.ptg-feature-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 27px; }
.ptg-button { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 17px; border-radius: 10px; color: #fff; background: #205d51; font-weight: 700; }
.ptg-button:hover { color: #fff; background: #174b40; }
.ptg-back { color: var(--ptg-accent); font-weight: 650; }
.ptg-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.ptg-capabilities, .ptg-delivery, .ptg-industries { background: var(--ptg-soft); padding-block: clamp(42px,6vw,88px); }
.ptg-section-heading { max-width: 780px; margin-bottom: 28px; }
.ptg-section-heading h2, .ptg-delivery h2, .ptg-offers h2, .ptg-industries h2 { margin: 0 0 12px; font-size: clamp(1.75rem,3.1vw,2.65rem); line-height: 1.18; letter-spacing: -.025em; }
.ptg-section-heading p { color: var(--muted); }
.ptg-cap-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 15px; }
.ptg-cap-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ptg-line); border-radius: 19px; background: var(--card); box-shadow: var(--ptg-shadow); }
.ptg-cap-card:hover { border-color: var(--ptg-accent); }
.ptg-cap-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ptg-cap-card__body { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 19px; color: var(--muted); line-height: 1.55; }
.ptg-cap-card strong { font-size: 1.22rem; line-height: 1.28; color: var(--ink); }
.ptg-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--ptg-accent); background: var(--ptg-soft); }
.ptg-icon svg { width: 23px; height: 23px; }
.ptg-cap-card__action { margin-top: auto; color: var(--ptg-accent); font-weight: 700; }
.ptg-delivery ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; list-style-position: inside; padding: 0; margin: 23px 0 0; }
.ptg-delivery li { background: var(--card); border-radius: 12px; border: 1px solid var(--ptg-line); padding: 18px; }
.ptg-delivery li::marker { color: var(--ptg-accent); font-weight: 750; }
.ptg-offers { padding-block: clamp(40px,6vw,88px); scroll-margin-top: 90px; }
.ptg-offers ul, .ptg-industries ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ptg-offers li a, .ptg-industries li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid var(--ptg-line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 650; }
.ptg-offers li a:hover, .ptg-industries li a:hover { border-color: var(--ptg-accent); }
.ptg-link-meta { flex: none; color: var(--ptg-accent); font-size: .8rem; }
.ptg-catalog-search { margin: 32px 0 14px; }
.ptg-catalog-search label { display: block; color: var(--ink); font-weight: 650; margin: 0 0 6px; }
.ptg-catalog-search input { width: min(100%,480px); border: 1px solid var(--ptg-line); border-radius: 10px; padding: 12px 16px; background: var(--card); color: var(--ink); }
.ptg-catalog-search p { color: var(--muted); margin: 10px 0 0; }
.htc-hub-hero .htc-hub-hero__content h1 { letter-spacing: -.032em; line-height: 1.1; text-wrap: balance; }
.htc-catalog .htc-catalog-card, .enterprise-page-shell .htc-card { border-radius: 15px; }
.htc-catalog .htc-catalog-card:hover { border-color: var(--ptg-accent); box-shadow: var(--ptg-shadow); }
.htc-catalog-group__index { display: none; }
.htc-page-header { border-bottom: 1px solid var(--ptg-line); background: var(--ptg-soft); }
.htc-page-header h1 { letter-spacing: -.03em; text-wrap: balance; }
.enterprise-page-content :is(img,video) { max-width: 100%; }
.enterprise-page-content :is(h2,h3) { scroll-margin-top: 90px; text-wrap: balance; }
.enterprise-page-content :is(pre,figure.table) { max-width: 100%; overflow: auto; }
.ptg-capabilities:has(.ptg-cap-card:only-child) .ptg-cap-card { width: min(100%,580px); }
@media (max-width: 760px) {
 .ptg-feature-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 40px; }
 .ptg-feature-hero > img { aspect-ratio: 16/10; border-radius: 18px 18px 58px 18px; }
 .ptg-delivery ol, .ptg-offers ul, .ptg-industries ul { grid-template-columns: 1fr; }
}

.htc-header__bar { box-shadow: 0 8px 30px #152d2e09; border-bottom-color: var(--ptg-line); }
.htc-header .enterprise-nav--desktop > li > a:hover { color: var(--ptg-accent); }
.enterprise-footer .ef-guide-card { border-radius: 17px; }
.blog__details-wrap .blog__details-thumb, .blog__post-thumb { border-radius: 18px; overflow: hidden; }
.blog__details-content h1.title { letter-spacing: -.028em; text-wrap: balance; line-height: 1.15; }
.blog__details-content .ck-content { line-height: 1.75; }

.ptg-hub .ptg-feature-hero h1 { font-size: clamp(2.25rem, 4.3vw, 4.4rem); }
.ptg-hub-stats { display: flex; flex-wrap: wrap; gap: 14px 26px; padding: 18px 0 0; margin-top: 22px; border-top: 1px solid var(--ptg-line); }
.ptg-hub-stats > div { display: flex; flex-direction: column-reverse; }
.ptg-hub-stats dt { color: var(--muted); font-size: .83rem; }
.ptg-hub-stats dd { color: var(--ink); font-weight: 700; font-size: 1.45rem; }
.ptg-hub-nav { border-block: 1px solid var(--ptg-line); background: var(--card); }
.ptg-hub-nav div { display: flex; gap: 9px; overflow-x: auto; padding-block: 12px; }
.ptg-hub-nav a { flex: none; color: var(--ptg-accent); border: 1px solid var(--ptg-line); border-radius: 8px; padding: 7px 12px; font-size: .9rem; font-weight: 650; }
.ptg-hub-nav a:hover { background: var(--ptg-soft); }

.ptg-pagehero.htc-pagehero { background: var(--ptg-soft); color: var(--ink); border-bottom: 1px solid var(--ptg-line); }
.ptg-pagehero.htc-pagehero::before, .ptg-pagehero.htc-pagehero::after { display: none; }
.ptg-pagehero .htc-pagehero__copy :is(h1,p) { color: var(--ink); }
.ptg-pagehero .htc-pagehero__copy h1 { font-size: clamp(2.1rem,4.2vw,4.25rem); letter-spacing: -.028em; line-height: 1.1; text-wrap: balance; }
.ptg-pagehero .htc-pagehero__copy p { color: var(--muted); }
.ptg-pagehero .htc-pagehero__badge { color: var(--ptg-accent); background: var(--card); border-color: var(--ptg-line); }
.ptg-pagehero .htc-pagehero__media img { border-radius: 17px; max-height: 430px; object-fit: contain; }

:root { --ptg-gold: #9c6d19; --ptg-gold-soft: #f7efdb; }
.dark { --ptg-gold: #edc57a; --ptg-gold-soft: #2c2419; }
.ptg-kicker { color: var(--ptg-gold); }
.ptg-mascot { height: auto; object-fit: contain; }
.ptg-hero-art { margin: 0; position: relative; min-width: 0; isolation: isolate; }
.ptg-hero-art__photo { display: block; width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: 28px 28px 96px 28px; box-shadow: var(--ptg-shadow); }
.ptg-hero-art__mascot { position: absolute; z-index: 1; right: -2%; bottom: -2%; width: clamp(130px,40%,300px); filter: drop-shadow(0 12px 14px #092e3b42); pointer-events: none; }
.ptg-hero-art figcaption { position: absolute; bottom: 12px; left: 12px; padding: 3px 8px; color: #1f3344; background: #ffffffe8; border-radius: 6px; font-size: .72rem; }
.ptg-guide { background: var(--ptg-soft); border-block: 1px solid var(--ptg-line); }
.ptg-guide__inner { display: flex; align-items: center; gap: clamp(16px,3.5vw,46px); padding-block: 23px; }
.ptg-guide__inner > img { flex: none; width: clamp(90px,11vw,145px); max-height: 150px; }
.ptg-guide__copy { flex: 1; }
.ptg-guide__copy h2 { font-size: clamp(1.4rem,2.7vw,2.25rem); line-height: 1.18; letter-spacing: -.022em; }
.ptg-guide__copy p { color: var(--muted); margin-top: 8px; }
.ptg-guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ptg-mobile-capabilities { display: inline-flex; align-items: center; margin-block-start: 10px; gap: 8px; min-height: 44px; color: var(--ptg-accent); font-weight: 650; }
.ptg-mobile-capabilities svg { width: 19px; height: 19px; }
@media (max-width: 760px) {
 .ptg-hero-art__photo { aspect-ratio: 16/10; border-radius: 18px 18px 58px 18px; }
 .ptg-guide__inner { flex-wrap: wrap; }
 .ptg-guide__inner > img { width: 80px; }
 .ptg-guide__copy { min-width: 180px; }
 .ptg-guide__actions { flex-basis: 100%; }
}

.ptg-industry-tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 14px; }
.ptg-industry-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ptg-line); border-radius: 14px; background: var(--card); }
.ptg-industry-tile:hover { border-color: var(--ptg-accent); }
.ptg-industry-tile img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.ptg-industry-tile > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--ink); font-weight: 700; }
.ptg-industry-tile > span > span { color: var(--ptg-accent); }
.ptg-cap-grid .ptg-icon { background: linear-gradient(140deg,var(--ptg-soft),var(--ptg-gold-soft)); }
@media (max-width: 550px) {
 .ptg-industry-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
 .ptg-industry-tile > span { padding: 10px; gap: 7px; font-size: .89rem; }
}

.ptg-mega-link { display: inline-flex; gap: 8px; margin-top: 16px; padding: 9px 11px; border-radius: 8px; color: var(--ptg-accent); background: var(--ptg-soft); font-weight: 700; font-size: .86rem; }
.ptg-mega-link:hover { text-decoration: underline; }

/* A legacy cached fragment can still contain the old loading overlay. */
#preloader { display: none !important; }

.ptg-cap-card__art { position: relative; display: block; isolation: isolate; }
.ptg-cap-card__art .ptg-cap-card__photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ptg-cap-card__art .ptg-cap-card__mascot { position: absolute; bottom: 0; right: 4%; width: 43%; height: 80%; aspect-ratio: auto; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 4px 6px #10304055); }
.ptg-mobile-capabilities .ptg-mascot { width: 38px; }

.ptg-capability-decisions { padding-block: clamp(32px,5vw,62px) 0; }
.ptg-capability-decisions h2 { margin-bottom: 18px; font-size: clamp(1.65rem,3.2vw,2.5rem); line-height: 1.16; }
.ptg-capability-decisions__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ptg-capability-decisions article { border: 1px solid var(--ptg-line); border-radius: 15px; background: var(--card); padding: clamp(18px,3vw,30px); }
.ptg-capability-decisions h3 { margin: 0 0 8px; font-size: 1.17rem; }
.ptg-capability-decisions p { color: var(--muted); margin: 0; line-height: 1.62; }
@media(max-width:640px) { .ptg-capability-decisions__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Layout alignment + mobile pass (2026-11-21). Keeps the brand colour roles; only
   grid, spacing and sizing. Rows refer to the review table of that date.
   ========================================================================== */

/* 1. Industry tiles: 8 tiles as 4 x 2 instead of 5 + 3. */
@media (min-width: 992px) {
  .ptg-industry-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 2. Brand ecosystem (2 columns): an odd last tile spans the row instead of leaving a hole. */
@media (min-width: 768px) {
  .htc-brand-ecosystem > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 3. Logo marquees (customers, partners, certificates, registries): same optical box for every logo. */
.ef-marquee__item { display: flex; align-items: center; justify-content: center; }
.ef-marquee__item img { width: 78%; height: 40px; max-width: 78%; max-height: none; object-fit: contain; }

/* 8. Footer logo grids: equal boxes, logos centred at one height. */
:is(.ef-footer-cert-logos, .ef-footer-brand-logos) > * {
  display: flex; align-items: center; justify-content: center; height: 56px; box-sizing: border-box;
}
:is(.ef-footer-cert-logos, .ef-footer-brand-logos) > * img {
  width: auto; height: auto; max-width: 84%; max-height: 34px; object-fit: contain;
}
:is(.ef-footer-payment-logos, .ef-footer-cert-logos, .ef-footer-brand-logos) > img { display: block; height: 56px; max-height: none; width: 100%; object-fit: contain; padding: 10px 14px; box-sizing: border-box; }

/* 10. Service pages: the feature-list shortcode used a narrower 1120px shell than every other section. */
.enterprise-page-content .shortcode-content-feature-list.htc-shell { max-width: 1376px; }

/* 11. Blog cards: the clamped title sat on the card's bottom edge. */
.htc-post-card h3 { margin-bottom: 16px; }
/* 11. Blog archive: the list was inset 48px from the intro panel; align it to the panel edges. */
@media (min-width: 768px) {
  .enterprise-page-shell > .ptg-ed-archive.htc-shell { padding-inline: 0; }
}

/* 12. Header logo: a bit larger so the wordmark stays legible. */
.htc-header .logo img { min-height: 46px; width: auto; } /* min-height: the 2.5rem height !important sits in a Tailwind layer */

@media (max-width: 767px) {
  .htc-header .logo img { min-height: 42px; }

  /* 4. Capabilities: horizontal snap cards (next card peeks) instead of five 430px cards stacked. */
  .ptg-cap-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .ptg-cap-grid::-webkit-scrollbar { display: none; }
  .ptg-cap-card { scroll-snap-align: start; }
  .ptg-cap-card__art { height: 150px; }
  .ptg-cap-card__photo { height: 100%; object-fit: cover; }

  /* 5. Service tabs: swipeable row with a fade that shows more tabs follow. */
  .htc-service-tabs {
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .htc-service-tabs::-webkit-scrollbar { display: none; }
  .htc-service-tabs > * { flex: 0 0 auto; scroll-snap-align: start; }

  /* 6. Key figures: one row per figure (number + label) instead of three cramped columns. */
  .htc-trust__numbers { grid-template-columns: max-content 1fr; grid-auto-flow: row; column-gap: 14px; row-gap: 10px; align-items: baseline; }
  .htc-trust__numbers span { grid-row: auto; }

  /* 7. Footer: offices swipe sideways (was ~1,240px of stacked cards); company links in two columns. */
  .ef-footer-detail--offices, .ef-footer-detail--offices > :last-child { min-width: 0; max-width: 100%; }
  .ef-footer-detail--offices > :last-child {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
  }
  .ef-footer-detail--offices > :last-child::-webkit-scrollbar { display: none; }
  .ef-footer-office-item { scroll-snap-align: start; }
  .ef-footer-main > .ef-footer-col:last-child { grid-column: 1 / -1; }
  .ef-footer-main > .ef-footer-col:last-child nav { columns: 2; column-gap: 16px; }
  .ef-footer-main > .ef-footer-col:last-child nav > * { break-inside: avoid; }
}

.ptg-content-artwork {
  width: min(100%, 790px);
  min-width: 0;
  margin: clamp(14px, 2.5vw, 30px) auto;
}
.ptg-content-artwork > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border: 1px solid #dbe8ef;
  border-radius: 14px;
  background: #f2f7fa;
}
.ptg-feature-hero > img,
.ptg-hero-art__photo {
  object-fit: cover;
  object-position: center;
}
.ptg-hero-art:has(.ptg-hero-art__mascot) {
  display: grid;
  gap: 10px;
}
.ptg-hero-art:has(.ptg-hero-art__mascot) .ptg-hero-art__mascot {
  position: static;
  justify-self: end;
  width: clamp(90px, 27%, 165px);
}
@media (max-width: 700px) {
  .ptg-feature-hero h1, .ptg-ed-intro h1 { overflow-wrap: anywhere; }
}

.ef-footer-main { align-items: start; gap: clamp(22px, 3vw, 44px); }
.ef-footer-col { min-width: 0; }
.ef-footer-col nav a { overflow-wrap: anywhere; }
.ef-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-footer-social a {
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ef-footer-social a:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px #0e456333;
}
@media (prefers-reduced-motion: reduce) {
  .ef-footer-social a { transition: none; transform: none !important; }
}

.ptg-content-artwork-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(10px, 2vw, 22px);
  margin-block: clamp(14px, 2.5vw, 30px);
}
.ptg-content-artwork-row .ptg-content-artwork { width: 100%; margin: 0; }

.ptg-home-editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.ptg-home-editorial-grid > article { min-width: 0; border: 1px solid #dbe8ef; border-radius: 16px; padding: 16px; }
.ptg-home-editorial-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 10px; }


.ptg-feature-hero > .ptg-banner-picture,
.ptb-hero__visual > .ptg-banner-picture,
.ptg-hero-art > .ptg-banner-picture {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
}

.ptg-banner-picture img,
.ptg-pagehero.ptg-pagehero--service .htc-pagehero__media .ptg-banner-picture img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ptg-capabilities-art {
  display: block;
  max-width: 960px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 20px;
}

@media (max-width: 760px) {
  .ptg-banner-picture img,
  .ptg-pagehero.ptg-pagehero--service .htc-pagehero__media .ptg-banner-picture img {
    aspect-ratio: 4 / 3;
  }
}

.ptg-home-slider__track { display: grid; }
.ptg-home-slider__slide {
  grid-area: 1 / 1;
  min-width: 0;
  padding-block-end: clamp(22px, 3.5vw, 46px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.ptg-home-slider__slide.is-current { visibility: visible; opacity: 1; pointer-events: auto; }
.ptg-home-slider__slide h2 {
  margin: 14px 0 21px;
  font-size: clamp(2.4rem, 5.1vw, 5.1rem);
  line-height: 1.07;
  letter-spacing: -.044em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.ptg-home-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-block-end: clamp(24px, 4vw, 50px);
}
.ptg-home-slider__controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  color: var(--ptg-accent);
  font-size: 1.4rem;
}
.ptg-home-slider__controls button:is(:hover, :focus-visible) { background: var(--ptg-soft); }
.ptg-home-slider__dot { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.ptg-home-slider__controls [aria-current="true"] .ptg-home-slider__dot { background: currentColor; }

.ptg-home-slider__controls[x-cloak] { display: none; }

.ptg-home-slider__controls select {
  box-sizing: border-box;
  width: min(68%, 380px);
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--ptg-line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-overflow: ellipsis;
}
