/* Play for Connection v4.4.0: independent premium card surfaces.
   Scoped to secondary pages only. The approved homepage and For Schools layout
   retain their existing assets, HTML, layout and styles. */

/* Hero: preserve dark magical brand, remove any overhanging panel edges. */
body:not(.home) .pfc-rich-page .pfc-page-hero {
  isolation:isolate; background:radial-gradient(ellipse at 85% 22%,rgba(69,86,170,.18),transparent 48%),
  linear-gradient(145deg,#111a45 0%,#0c153b 58%,#091231 100%) !important;
  border:0!important;box-shadow:none!important;
}
body:not(.home) .pfc-rich-page .pfc-page-hero::before {
  background-image:radial-gradient(circle,rgba(255,215,156,.42) 0 1px, transparent 1.5px)!important;
  background-size:125px 114px!important;opacity:.23!important;
  pointer-events:none;
}
body:not(.home) .pfc-rich-page .pfc-page-hero h1 {max-width:1050px;line-height:1.04!important;letter-spacing:-.046em!important}
body:not(.home) .pfc-rich-page .pfc-page-hero p {max-width:740px;line-height:1.7!important}

/* Structural grids MUST NOT render as an extra giant card.
   In 4.3 a legacy selector incorrectly styled the parent grid/container. */
body:not(.home) .pfc-rich-page :is(
  .pfc-flow-grid,.pfc-principles-grid,.pfc-games-grid,.pfc-age-grid,.pfc-age-grid-page,
  .pfc-world-table,.pfc-two-col,.pfc-faq-list,.pfc-vision-list,.pfc-mini-intro
) {
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important;
}
body:not(.home) .pfc-rich-page .pfc-rich-section .lz-container::before,
body:not(.home) .pfc-rich-page .pfc-rich-section .lz-container::after,
body:not(.home) .pfc-rich-page :is(.pfc-principles-grid,.pfc-flow-grid,.pfc-world-table,.pfc-age-grid,.pfc-games-grid,.pfc-two-col,.pfc-faq-list)::before,
body:not(.home) .pfc-rich-page :is(.pfc-principles-grid,.pfc-flow-grid,.pfc-world-table,.pfc-age-grid,.pfc-games-grid,.pfc-two-col,.pfc-faq-list)::after {
 content:none!important;display:none!important;background:none!important;box-shadow:none!important;
}
body:not(.home) .pfc-rich-page .pfc-rich-section {padding:40px 0!important;}
body:not(.home) .pfc-rich-page .pfc-rich-section .lz-container {max-width:1240px;}
body:not(.home) .pfc-rich-page :is(.pfc-principles-grid,.pfc-flow-grid,.pfc-games-grid) {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px!important;align-items:stretch;
}
body:not(.home) .pfc-rich-page .pfc-flow-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
body:not(.home) .pfc-rich-page .pfc-two-col {display:grid!important;grid-template-columns:1.1fr .9fr;gap:24px!important;align-items:stretch}
body:not(.home) .pfc-rich-page :is(.pfc-age-grid,.pfc-age-grid-page,.pfc-world-table) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px!important;align-items:stretch}

/* Actual cards only: no multicolour notches, no inner gold-cyan bars. */
body:not(.home) .pfc-rich-page :is(
  .pfc-rich-card,.pfc-principle,.pfc-flow-grid article,.pfc-story-card,.pfc-two-col>div,
  .pfc-age-card,.pfc-world-table article,.pfc-faq-list details
) {
  min-width:0; height:auto;
  background:linear-gradient(154deg,#1d2c5b 0%,#172348 62%,#121c3e 100%)!important;
  border:1px solid rgba(152,177,233,.23)!important;
  border-radius:20px!important;
  box-shadow:0 18px 36px rgba(1,7,27,.28),inset 0 1px rgba(255,255,255,.055)!important;
  overflow:visible!important; color:#f9fbff!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
body:not(.home) .pfc-rich-page :is(
  .pfc-rich-card,.pfc-principle,.pfc-flow-grid article,.pfc-story-card,.pfc-two-col>div,
  .pfc-age-card,.pfc-world-table article,.pfc-faq-list details
)::after {content:none!important;display:none!important}
body:not(.home) .pfc-rich-page :is(
  .pfc-rich-card,.pfc-principle,.pfc-flow-grid article,.pfc-story-card,.pfc-two-col>div,
  .pfc-age-card,.pfc-world-table article,.pfc-faq-list details
)::before {content:none!important;display:none!important}
body:not(.home) .pfc-rich-page :is(
  .pfc-rich-card,.pfc-principle,.pfc-flow-grid article,.pfc-story-card,.pfc-two-col>div,
  .pfc-age-card,.pfc-world-table article,.pfc-faq-list details
):hover {transform:translateY(-3px)!important;border-color:rgba(246,212,139,.52)!important;box-shadow:0 23px 45px rgba(1,7,27,.38),0 0 0 1px rgba(246,212,139,.07)!important}
body:not(.home) .pfc-rich-page :is(.pfc-principle,.pfc-rich-card,.pfc-story-card,.pfc-world-table article,.pfc-age-card,.pfc-two-col>div){padding:29px!important}
body:not(.home) .pfc-rich-page .pfc-flow-grid article{padding:28px 24px!important}
body:not(.home) .pfc-rich-page :is(.pfc-principle,.pfc-rich-card,.pfc-world-table article) h3 {font-size:clamp(18px,1.5vw,22px)!important;line-height:1.25!important;margin:0 0 12px!important;letter-spacing:-.02em!important}
body:not(.home) .pfc-rich-page :is(.pfc-principle,.pfc-rich-card,.pfc-flow-grid article,.pfc-age-card,.pfc-world-table article,.pfc-two-col>div) p {color:#d7e3fa!important;line-height:1.66!important;font-size:15px!important}

/* Six security cards: independent tiles, one discreet symbol on the left.
   No pseudo-element runs across the top/right of a card. */
body:not(.home) .pfc-layout-safety .pfc-principle {padding:28px!important;}
body:not(.home) .pfc-layout-safety .pfc-principle h3::before {
  content:'✦';display:inline-grid;place-items:center;vertical-align:middle;
  width:32px;height:32px;margin:0 12px 0 0;border-radius:10px;
  color:#ffe09d;background:rgba(255,214,136,.09);font-size:16px;font-weight:700;
}
body:not(.home) .pfc-layout-safety .pfc-principle p {margin:12px 0 0!important}

/* 'How it works': calm numbered steps instead of brightly coloured strips. */
body:not(.home) .pfc-rich-page .pfc-flow-grid article span {
  width:44px!important;height:44px!important;border-radius:12px!important;
  background:#2b3a67!important;border:1px solid rgba(255,219,151,.18)!important;
  color:#ffe0a5!important;box-shadow:none!important;font-size:18px!important;
}
body:not(.home) .pfc-rich-page .pfc-flow-grid article h3 {font-size:18px!important;line-height:1.35!important}
body:not(.home) .pfc-rich-page .pfc-two-col > div h2 {font-size:clamp(23px,2.25vw,31px)!important;line-height:1.17!important;margin-bottom:18px!important}
body:not(.home) .pfc-rich-page .pfc-check-list {
  background:none!important;border:0!important;box-shadow:none!important;
  border-radius:0!important;padding:0!important;margin:16px 0 0!important;
  overflow:visible!important;
}
body:not(.home) .pfc-rich-page .pfc-check-list::before,
body:not(.home) .pfc-rich-page .pfc-check-list::after {content:none!important;display:none!important}
body:not(.home) .pfc-rich-page .pfc-check-list li {padding:0 0 0 25px!important;margin-bottom:9px!important;font-size:15px!important;line-height:1.55!important}
body:not(.home) .pfc-rich-page .pfc-check-list li::before {content:'✧'!important;position:absolute!important;left:0!important;top:0!important;color:#a8ddfb!important;}

/* 'For companies': balanced partnership panels without a panel inside a panel. */
body:not(.home) .pfc-layout-for-companies .pfc-two-col > div:first-child {background:linear-gradient(146deg,#202b55,#152044)!important}
body:not(.home) .pfc-layout-for-companies .pfc-story-card {border-color:rgba(237,209,150,.34)!important}
body:not(.home) .pfc-layout-for-companies .pfc-story-card strong{color:#ffdf9d!important}

/* World cards: age groups visibly separate with restrained labels. */
body:not(.home) .pfc-rich-page .pfc-age-card span {display:inline-flex!important;padding:7px 12px!important;
  border:1px solid rgba(243,211,151,.26)!important;background:rgba(246,207,126,.10)!important;
  color:#ffdc9d!important;border-radius:999px!important;line-height:1.25!important;box-shadow:none!important;
  margin:0 0 18px!important;}
body:not(.home) .pfc-rich-page .pfc-age-card b {display:inline-block!important;margin-top:15px!important;color:#f3d9a6!important;font-size:13px!important;line-height:1.5}
body:not(.home) .pfc-rich-page .pfc-world-table article ul{padding-left:20px!important;margin:13px 0 0!important;line-height:1.8}

/* Form page: two independent cards; no enclosing outline. */
body:not(.home) .pfc-layout-early-access .lz-form-section {padding:50px 0 70px!important;background:transparent!important;}
body:not(.home) .pfc-layout-early-access .lz-form-grid {display:grid!important;grid-template-columns:.88fr 1.12fr;gap:26px!important;align-items:start;}
body:not(.home) .pfc-layout-early-access .lz-form-grid::before,
body:not(.home) .pfc-layout-early-access .lz-form-grid::after {content:none!important;display:none!important}
body:not(.home) .pfc-layout-early-access .lz-form-grid > div:first-child,
body:not(.home) .pfc-layout-early-access .lz-form-grid > form {
  min-width:0;padding:32px!important;border-radius:22px!important;
  background:linear-gradient(155deg,#1b2958,#121c40)!important;
  border:1px solid rgba(156,181,237,.25)!important;
  box-shadow:0 20px 44px rgba(1,6,25,.34)!important;
}
body:not(.home) .pfc-layout-early-access .lz-form-grid h2 {font-size:clamp(27px,2.4vw,37px)!important;line-height:1.17!important;letter-spacing:-.035em!important}
body:not(.home) .pfc-layout-early-access .lz-form-grid :is(input,select,textarea) {border-radius:11px!important;min-height:46px!important;transition:border-color .2s,box-shadow .2s;}
body:not(.home) .pfc-layout-early-access .lz-form-grid :is(input,select,textarea):focus-visible {outline:2px solid #ffdf9b!important;outline-offset:2px!important;}

/* Other informative subpages get the same restrained, consistent language. */
body:not(.home) .pfc-rich-page :is(.pfc-two-col,.pfc-world-table,.pfc-age-grid) > * {min-width:0}
body:not(.home) .pfc-rich-page :is(a,button,summary):focus-visible {outline:3px solid #ffdf9d!important;outline-offset:3px!important}
@media(max-width:1120px){
  body:not(.home) .pfc-rich-page .pfc-flow-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body:not(.home) .pfc-rich-page .pfc-principles-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  body:not(.home) .pfc-rich-page :is(.pfc-flow-grid,.pfc-principles-grid,.pfc-games-grid,.pfc-age-grid,.pfc-age-grid-page,.pfc-world-table,.pfc-two-col){grid-template-columns:1fr!important;gap:15px!important}
  body:not(.home) .pfc-rich-page .pfc-rich-section{padding:24px 0!important;}
  body:not(.home) .pfc-rich-page :is(.pfc-principle,.pfc-rich-card,.pfc-story-card,.pfc-world-table article,.pfc-age-card,.pfc-two-col>div){padding:23px!important}
  body:not(.home) .pfc-layout-early-access .lz-form-grid {grid-template-columns:1fr!important;gap:18px!important}
  body:not(.home) .pfc-layout-early-access .lz-form-grid > div:first-child,
  body:not(.home) .pfc-layout-early-access .lz-form-grid > form{padding:22px!important}
  body:not(.home) .pfc-rich-page :is(.pfc-principle,.pfc-rich-card,.pfc-flow-grid article,.pfc-story-card,.pfc-age-card,.pfc-world-table article,.pfc-two-col>div):hover {transform:none!important;}
}
@media(prefers-reduced-motion:reduce){
  body:not(.home) .pfc-rich-page :is(.pfc-principle,.pfc-rich-card,.pfc-flow-grid article,.pfc-story-card,.pfc-age-card,.pfc-world-table article,.pfc-two-col>div){transition:none!important}
}

/* Remove inherited section and combined wrapper frame on early access. */
body:not(.home) .pfc-layout-early-access .lz-form-section {
 background:transparent!important;border:0!important;box-shadow:none!important;
 border-radius:0!important;overflow:visible!important;
}
body:not(.home) .pfc-layout-early-access .lz-form-section .lz-container {
 background:transparent!important;border:0!important;box-shadow:none!important;
 border-radius:0!important;padding:0!important;overflow:visible!important;
}
body:not(.home) .pfc-layout-early-access .lz-form-section .lz-container::before,
body:not(.home) .pfc-layout-early-access .lz-form-section .lz-container::after {
 content:none!important;display:none!important;box-shadow:none!important;
}
