{
  "version": 1,
  "libraryVersion": 2,
  "id": "933c51e4c5e1a10ae1cec28057749eb2a2b8edf642c67b5d43a55edecfe288d7",
  "owner": "site-1",
  "cycle": "library-demo@1",
  "blocks": {
    "header": "ref-centred-brand",
    "hero": "ref-centred-lead",
    "sections": "ref-review-panels",
    "cards": "ref-category-grid",
    "operator": "ref-fact-table",
    "bonus": "ref-offer-rail",
    "steps": "ref-step-timeline",
    "faq": "ref-boxed-faq",
    "footer": "ref-brand-rail-footer"
  },
  "theme": "contract",
  "design": {
    "version": "3.0",
    "profile": "open-canvas",
    "variation": 1,
    "referenceFidelity": {
      "minimum": 0.75,
      "target": 0.85,
      "maximum": 0.85,
      "appliesTo": [
        "layout"
      ],
      "excludes": [
        "copy",
        "source-images"
      ]
    },
    "composition": {
      "hero": "showcase",
      "mediaPlacement": "contained",
      "sectionShape": "stack",
      "showPromoPanel": false,
      "showStatStrip": false,
      "showGuideTable": false,
      "footer": "compact"
    },
    "layout": "minimal",
    "headerStyle": "compact",
    "cardStyle": "bordered",
    "colors": {
      "background": "#f1f5f9",
      "surface": "#ffffff",
      "surfaceAlt": "#ffffff",
      "text": "#111827",
      "textMuted": "#425463",
      "primary": "#6d28d9",
      "primaryText": "#ffffff",
      "accent": "#6d28d9",
      "accentText": "#ffffff",
      "border": "#c3d2cf",
      "headerBackground": "#263238",
      "headerText": "#ffffff",
      "footerBackground": "#263238",
      "footerText": "#ffffff",
      "heroBackground": "#ffffff",
      "heroText": "#111827"
    },
    "typography": {
      "fontFamily": "Arial, sans-serif",
      "headingWeight": 700,
      "bodyWeight": 400,
      "baseFontSize": 17,
      "h1Size": 46,
      "h2Size": 28,
      "h3Size": 21
    },
    "spacing": {
      "contentWidth": 1240,
      "sectionGap": 24,
      "blockPadding": 28,
      "borderRadius": 16
    },
    "navigation": {
      "alignment": "center",
      "showCta": true,
      "ctaText": "Read the guide"
    },
    "hero": {
      "style": "boxed",
      "maxWidth": 1240,
      "showBadge": false,
      "showIntroText": true,
      "alignment": "left",
      "minHeight": 200
    },
    "sections": {
      "defaultLayout": "stack",
      "allowTwoColumn": true,
      "allowGrid": true,
      "allowWideSections": true,
      "alternateBackgrounds": false,
      "faqStyle": "accordion",
      "ctaStyle": "card"
    },
    "features": {
      "stickyHeader": false,
      "heroGradient": false,
      "cardHover": false,
      "roundedButtons": true,
      "alternatingSections": false
    }
  },
  "pageOrder": {
    "home": [
      "hero",
      "information",
      "steps",
      "operator_facts",
      "bonus_offer",
      "faq"
    ],
    "guide": [
      "hero",
      "information",
      "steps",
      "operator_facts",
      "bonus_offer",
      "faq"
    ],
    "app": [
      "hero",
      "information",
      "steps",
      "operator_facts",
      "bonus_offer",
      "faq"
    ],
    "sports": [
      "hero",
      "information",
      "steps",
      "operator_facts",
      "bonus_offer",
      "faq"
    ]
  },
  "optionalTypes": {
    "home": [],
    "guide": [],
    "app": [],
    "sports": []
  },
  "contractHash": "32da38c2a2626365542112600ca19f553f6681775eacbcede959e0b7ff5a46b7",
  "css": "#main-content{@media(min-width:1100px){& .page-hero{display:flex;flex-direction:column;gap:32px;text-align:center}& .page-hero__content{max-width:900px;margin-inline:auto}& .page-hero__media{width:100%;max-width:720px;margin-inline:auto}& .page-content>section{padding:clamp(20px,3vw,40px);border:1px solid var(--border);border-radius:var(--radius);margin-block:24px}& .library-quick-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}\n@media(width < 1100px){& .page-hero{display:flex;flex-direction:column;gap:24px}& .page-hero__content{width:100%;min-width:0;max-width:100%}& .page-hero__media{width:100%;min-width:0;max-width:640px;margin-inline:auto}}& .page-hero{text-align:center}& .page-hero__action{justify-content:center}& :is(.page-hero__media,.component-card__media){background:none;border:0;box-shadow:none;padding:0;&:before,&:after{content:none}& img{box-shadow:none;filter:none;border-radius:0}}}@media(min-width:1101px){#site-header{& .site-header__inner{width:min(var(--container),calc(100% - 32px));padding:12px 0;min-height:78px;flex-wrap:nowrap}& .site-logo{flex:0 0 100px;min-width:0;margin:0}& .custom-logo{max-height:48px}& .mobile-header-actions{flex-shrink:0;margin-inline-start:auto}}}\nbody[data-design-recipe] #main-content{\n & .page-hero{padding:clamp(20px,3vw,40px);gap:32px;min-height:0;align-items:center;border-radius:var(--radius);border:1px solid var(--border);background:var(--hero-bg);color:var(--hero-text)}\n & .page-hero__content{min-width:0}\n & .page-hero__media{min-width:0;overflow:visible;background:none;border:0;padding:0;box-shadow:none}\n & .page-hero__image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0;filter:none;box-shadow:none}\n & .page-hero__media:before,& .page-hero__media:after{content:none}\n & .page-hero>.ng-education-map{grid-column:1/-1;width:100%;max-width:100%;box-sizing:border-box}\n & .page-hero__action,& .mexico-hero-actions{justify-content:center;flex-wrap:wrap}\n & .library-review-author{justify-content:center}\n & .page-content{min-width:0}\n & .component__inner{min-width:0;box-shadow:none;color:var(--text)}\n & .component-card__copy{min-width:0;overflow-wrap:anywhere}\n & .component-card__media{background:none;border:0;padding:0;box-shadow:none;& img{width:100%;height:auto;object-fit:contain;filter:none;box-shadow:none}}\n & .structured-card{content-visibility:visible;opacity:1;transform:none}\n & .library-quick-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:none;padding:0}\n & .library-quick-menu>a{min-width:0;grid-column:auto;box-sizing:border-box}\n & .library-quick-menu__item{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;padding:20px;background:var(--surface-alt);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);text-align:start;aspect-ratio:auto;text-decoration:none;box-shadow:none}\n & .library-quick-menu__item:before{content:none}\n & .library-quick-menu__copy,& .library-quick-menu__icon{position:static;inset:auto;transform:none;background:none;color:inherit;padding:0;width:auto;height:auto}\n & .library-quick-menu__copy{min-width:0;flex:1;overflow-wrap:anywhere;& strong{display:block;font-size:18px}& small{display:block;margin-top:6px;color:var(--text-muted)}}\n & .library-quick-menu__icon{flex:0 0 auto;font-size:26px}\n & .operator-card-grid__facts{display:grid;grid-template-columns:1fr;gap:0 24px;margin-top:20px}\n & .operator-card-grid__fact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:16px 0;background:transparent;min-width:0;overflow-wrap:anywhere}\n & .operator-card-grid__icon{position:static;display:inline-grid;width:28px;height:28px;margin-inline-end:8px;border:0;background:none;font-size:22px}\n & .structured-card--bonus_offer{padding:24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text)}\n & .bonus-actions{display:flex;flex-wrap:wrap;gap:12px}\n & .generated-steps{display:block;list-style:none;padding:0}\n & .generated-steps li{position:relative;display:flex;align-items:flex-start;gap:16px;min-width:0;margin:0;padding:16px 0;background:none;border:0;box-shadow:none}\n & .generated-steps__number{flex:0 0 32px;width:32px;height:32px;line-height:32px;border-radius:50%;background:var(--primary);color:var(--primary-text)}\n & .faq-panel{display:block;grid-template-columns:none}\n & .faq-panel details{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--border);border-radius:0}\n & .faq-panel summary{min-height:44px;overflow-wrap:anywhere}\n}\nbody[data-design-recipe] #site-header .site-logo a:not(:has(img)){font-size:18px;line-height:1.2;overflow-wrap:anywhere;color:var(--header-text)}\nbody[data-design-recipe] #main-content .page-content>.component:not(.structured-card){padding:0;border:0;border-radius:0;box-shadow:none;background:none}body[data-design-recipe] #main-content .component__inner{border:1px solid var(--border);border-radius:var(--radius);padding:clamp(18px,3vw,32px);background:var(--surface)}\n\nbody[data-design-recipe] #main-content .faq-panel details{border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;margin-block:12px}\n\nbody[data-design-recipe] #main-content .generated-steps li:not(:last-child):after{content:'';position:absolute;inset-inline-start:15px;top:48px;bottom:-16px;border-inline-start:2px solid var(--border)}\n@media(min-width:1100px){\n body[data-design-recipe] #main-content .page-hero{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}\n body[data-design-recipe] #main-content .page-hero:not(:has(.page-hero__media)){display:block}\n \n \n body[data-design-recipe] #main-content .structured-card--bonus_offer{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.45fr);gap:12px 24px}body[data-design-recipe] #main-content .structured-card--bonus_offer>:not(.bonus-actions){grid-column:1}body[data-design-recipe] #main-content .structured-card--bonus_offer>.bonus-actions{grid-column:2;grid-row:1/8;align-self:center;display:grid}\n body[data-design-recipe] .library-review-footer .library-review-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-design-recipe] .library-review-footer .library-review-age{grid-column:1/-1;display:flex;justify-content:flex-start;align-items:center;gap:20px;text-align:start}body[data-design-recipe] .library-review-footer .library-review-age>p{margin:0}\n}\n@media(width < 1100px){\n body[data-design-recipe] #site-header .site-header__inner{display:flex;flex-wrap:nowrap;gap:8px;min-height:60px;padding-block:6px}\n body[data-design-recipe] #site-header .site-logo{flex:0 1 auto;width:100px;min-width:60px;order:1}\n body[data-design-recipe] #site-header .mobile-header-actions{display:flex;flex:0 1 auto;width:auto;margin-inline-start:auto;order:2}\n body[data-design-recipe] #site-header .mobile-header-actions>a{width:auto;min-height:44px;padding:8px 12px;border-radius:999px}\n body[data-design-recipe] #site-header .mobile-header-actions :is(small,a:not(:first-child)){display:none}\n body[data-design-recipe] #site-header .mobile-header-actions span{font-size:12px}\n body[data-design-recipe] #site-header .mobile-navigation{order:3;margin:0;flex:0 0 auto}\n body[data-design-recipe] #site-header .mobile-navigation summary{width:44px;height:44px;min-height:44px;border:1px solid var(--primary);border-radius:50%;padding:0}\n body[data-design-recipe] #site-header .mobile-navigation{order:0}body[data-design-recipe] #site-header .site-logo{margin-inline:auto}body[data-design-recipe] #site-header .mobile-header-actions{margin-inline-start:0}\n}\n@media(max-width:700px){\n body[data-design-recipe] #main-content .library-quick-menu,body[data-design-recipe] #main-content .operator-card-grid__facts{grid-template-columns:1fr}\n body[data-design-recipe] #main-content .page-content>section{max-width:100%;box-sizing:border-box;padding:20px 12px}\n body[data-design-recipe] #main-content .component--faq>.component__inner{padding:0}\n body[data-design-recipe] #main-content .component--faq .faq-item__answer{padding-inline:0}\n body[data-design-recipe] #main-content .component--with-media>.component__inner{display:block}\n}\n",
  "layoutRevision": 1,
  "components": [
    "review-author",
    "review-bottom-offer",
    "review-footer",
    "review-geo-flag",
    "review-sidebar"
  ],
  "componentCss": "\nbody[data-design-recipe] .library-review-footer-inner{max-width:var(--container,1280px);margin-inline:auto}\nbody[data-design-recipe] .library-review-footer .footer-nav{display:contents}\nbody[data-design-recipe] .library-review-footer .library-review-menu ul{display:block;width:auto;min-width:0}\nbody[data-design-recipe] .library-review-footer .library-review-menu a{display:block;margin:0;padding:0;text-indent:0;white-space:normal;overflow-wrap:anywhere}\nbody[data-design-recipe] .library-review-footer :is(.library-review-disclaimer,.library-review-copyright){text-align:center;max-width:900px;margin:20px auto 0}\n/* Keep every card reachable through normal page scrolling, not a nested scroller. */\nbody[data-design-recipe] .library-review-sidebar-scroll{max-height:none;overflow:visible;padding:1px}\nbody[data-design-recipe] .library-review-sidecard dl{font-size:12px;margin:0}\nbody[data-design-recipe] .library-review-sidecard dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}\nbody[data-design-recipe] .library-review-sidecard dd{margin:0;text-align:right;font-weight:600}\nbody[data-design-recipe] .library-review-sidecard .library-review-action{display:flex;width:100%;box-sizing:border-box}\nbody[data-design-recipe] .library-review-terms{display:block;text-align:center;margin-top:8px;color:var(--text-muted)}\nbody[data-design-recipe] .library-review-sidecard .library-review-payments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 0;margin:0;border:0}\nbody[data-design-recipe] .library-review-sidecard .library-review-payment{min-width:0}\nbody[data-design-recipe] .library-review-sidecard .library-review-payment img{max-width:100%;margin:0}\nbody[data-design-recipe] .library-review-sidecard .library-review-operator-logo{width:100px;max-width:100px;height:auto;margin:0 0 16px}\n/* Geometry from the approved source's Additional CSS and its linked component styles.\n   The source palette, page IDs, brand-specific filters and global overrides are not runtime CSS. */\nbody[data-design-recipe] .library-review-author{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;color:var(--text-muted);margin:10px 0 16px;max-width:100%;overflow-wrap:anywhere}\nbody[data-design-recipe] .library-review-author>span{min-width:0}\nbody[data-design-recipe] .library-review-author :is(.library-review-author-role,.library-review-author-checked){color:var(--text-muted)}\nbody[data-design-recipe] .library-review-avatar{width:28px;height:28px;border-radius:50%;object-fit:contain;flex-shrink:0}\nbody[data-design-recipe] .library-review-author a{color:var(--primary);font-weight:700;text-decoration:none}\nbody[data-design-recipe] .library-review-author a:hover{text-decoration:underline}\nbody[data-design-recipe] .site-logo:has(.library-review-geo-flag){display:inline-flex;align-items:center;gap:10px;width:154px;min-width:0;overflow:visible}\n@media(width < 1100px){body[data-design-recipe] .site-logo:has(.library-review-geo-flag){width:120px}body[data-design-recipe] .library-review-menu--legal{order:3}}\nbody[data-design-recipe] .site-logo:has(.library-review-geo-flag)>:is(img,svg){min-width:0;flex:1 1 0;width:0;max-width:100%;height:auto;object-fit:contain}\nbody[data-design-recipe] .library-review-geo-flag{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;font-size:22px;line-height:1;border-radius:50%;margin:0;vertical-align:middle}\nbody[data-design-recipe] .library-review-sidebar{display:none;min-width:0}\nbody[data-design-recipe] .library-review-sidecard{padding:20px;margin-bottom:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);overflow-wrap:anywhere}\nbody[data-design-recipe] .library-review-sidecard h2{font-size:.9rem;line-height:1.4;margin:0 0 16px;color:inherit}\nbody[data-design-recipe] .library-review-side-menu ul{list-style:none;margin:0;padding:0}\nbody[data-design-recipe] .library-review-side-menu a{display:block;padding:10px 0;color:var(--text);text-decoration:none;overflow-wrap:anywhere}\nbody[data-design-recipe] .library-review-side-menu a:hover{color:var(--primary)}\nbody[data-design-recipe] .library-review-sidecard img{width:auto;max-width:80px;height:30px;object-fit:contain;margin:6px}\nbody[data-design-recipe] .library-review-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;background:var(--primary);color:var(--primary-text,var(--primary-contrast,#fff));border:0;border-radius:var(--radius);text-decoration:none;font-weight:700;line-height:1.2;overflow-wrap:anywhere;text-align:center;box-shadow:none;filter:none;transition:background-color .15s,color .15s}\nbody[data-design-recipe] .library-review-action:visited{background:var(--primary);color:var(--primary-text,var(--primary-contrast,#fff))}\nbody[data-design-recipe] .library-review-action:hover{background:var(--primary-hover,var(--primary));color:var(--primary-hover-text,var(--primary-text,var(--primary-contrast,#fff)));filter:none}\nbody[data-design-recipe] .library-review-action:focus-visible{background:var(--primary-focus,var(--primary));color:var(--primary-focus-text,var(--primary-text,var(--primary-contrast,#fff)));outline:2px solid var(--focus-ring,var(--primary));outline-offset:3px}\nbody[data-design-recipe] .library-review-action:active{background:var(--primary-active,var(--primary));color:var(--primary-active-text,var(--primary-text,var(--primary-contrast,#fff)))}\nbody[data-design-recipe] .library-review-action:disabled,body[data-design-recipe] .library-review-action[aria-disabled=true]{background:var(--primary-disabled,var(--primary));color:var(--primary-disabled-text,var(--primary-text,var(--primary-contrast,#fff)));opacity:1}\nbody[data-design-recipe] .library-review-bottom{display:none}\nbody[data-design-recipe] .library-review-footer{padding:24px;background:var(--footer-bg,var(--header-bg));color:var(--footer-text,#fff);overflow-wrap:anywhere}\nbody[data-design-recipe] .library-review-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}\nbody[data-design-recipe] .library-review-age{text-align:center}\nbody[data-design-recipe] .library-review-age>span{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid currentColor;border-radius:50%}\nbody[data-design-recipe] .library-review-footer h2{text-transform:uppercase;letter-spacing:.08em;font-size:14px;border-bottom:1px solid var(--border);padding-bottom:12px;color:inherit}\nbody[data-design-recipe] .library-review-footer a{color:inherit;text-decoration:none}\nbody[data-design-recipe] .library-review-footer ul{list-style:none;padding:0;margin:0}\nbody[data-design-recipe] .library-review-footer li{margin-block:12px}\nbody[data-design-recipe] .library-review-payments{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:20px;border-block:1px solid var(--border);padding-block:20px;margin-block:28px;max-width:100%}\nbody[data-design-recipe] .library-review-payments img{display:block;width:96px;max-width:100%;height:28px;object-fit:contain}\nbody[data-design-recipe] .library-review-payment{display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0}\nbody[data-design-recipe] .library-review-footer>p{text-align:center}\n@media(min-width:1100px){body[data-design-recipe] .library-review-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}body[data-design-recipe] .library-review-layout>main,body[data-design-recipe] .library-review-layout-content{min-width:0}body[data-design-recipe] .library-review-sidebar{display:block;position:static;align-self:start}}\n@media(width < 1100px){body[data-design-recipe] .library-review-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}body[data-design-recipe] .library-review-age,body[data-design-recipe] .library-review-menu--legal{grid-column:1/-1}body[data-design-recipe] .library-review-geo-flag{width:20px;height:20px;flex-basis:20px;font-size:19px}body[data-design-recipe] .library-review-bottom{display:block;position:fixed;inset:auto 0 0;z-index:80;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid var(--primary);background:var(--footer-bg,var(--header-bg));color:var(--footer-text,#fff)}body[data-design-recipe] .library-review-bottom-inner{display:flex;align-items:center;gap:8px;box-sizing:border-box;height:59px;max-width:1100px;margin-inline:auto;padding:4px 12px}body[data-design-recipe] .library-review-bottom-inner>img{flex:0 0 48px;width:48px;height:auto;max-height:44px;object-fit:contain;margin:0}body[data-design-recipe] .library-review-bottom-inner>span{flex:1;min-width:0;font-size:11px;line-height:1.15;overflow-wrap:anywhere}body[data-design-recipe] .library-review-bottom small{display:block;font-size:9px;line-height:1.2;color:inherit;opacity:.8}body[data-design-recipe] .library-review-bottom a{font-size:11px;flex:0 0 auto;max-width:94px;padding:5px 10px}body[data-design-recipe]:has([data-mobile-navigation][open]) .library-review-bottom,body[data-design-recipe]:has(dialog[open]) .library-review-bottom,body[data-design-recipe]:has([aria-modal=true]:not([hidden])) .library-review-bottom{visibility:hidden}}\n\n:root{}\nbody[data-design-recipe] #site-header .mobile-header-actions>.header-cta{background:var(--primary);color:var(--primary-text);filter:none;box-shadow:none}\nbody[data-design-recipe] #site-header .mobile-header-actions>.header-cta:visited{background:var(--primary);color:var(--primary-text)}\nbody[data-design-recipe] #site-header .mobile-header-actions>.header-cta:hover{background:var(--primary-hover,var(--primary));color:var(--primary-hover-text,var(--primary-text));filter:none}\nbody[data-design-recipe] #site-header .mobile-header-actions>.header-cta:active{background:var(--primary-active,var(--primary));color:var(--primary-active-text,var(--primary-text))}\nbody[data-design-recipe] #site-header .mobile-header-actions>.header-cta[aria-disabled=true]{background:var(--primary-disabled,var(--primary));color:var(--primary-disabled-text,var(--primary-text));opacity:1}\n",
  "componentPhp": "\nfunction generated_review_config() {\n    static $config = null;\n    if ($config === null) $config = json_decode(base64_decode('eyJjb3VudHJ5Q29kZSI6Ik5HIiwiY291bnRyeSI6Ik5HIiwicGF5bWVudHMiOlt7Im5hbWUiOiJGaXh0dXJlIGNhcmQiLCJpbWFnZSI6Ii9maXh0dXJlLWNhcmQuc3ZnIn1dLCJzZXJ2aWNlUGFnZUlkcyI6W10sInNlcnZpY2VTbHVncyI6W10sImNvbW1lcmNpYWxQYWdlSWRzIjpbXSwiY29tbWVyY2lhbFNsdWdzIjpbXSwiYXV0aG9yIjp7Im5hbWUiOiJFeGFtcGxlIFJldmlld2VyIiwicm9sZSI6IkZpeHR1cmUgZWRpdG9yIiwidXJsIjoiL2d1aWRlLyJ9LCJtb2JpbGVPZmZlciI6eyJ0aXRsZSI6IkRlc2lnbiBmaXh0dXJlIiwiY2FwdGlvbiI6IkxvY2FsIGRlbW8gb25seSIsImJ1dHRvblRleHQiOiJSZWFkIHRoZSBndWlkZSIsInVybCI6Ii9ndWlkZS8iLCJsb2dvIjoiL2ZpeHR1cmUtY2FyZC5zdmciLCJidXR0b24iOiJSZWFkIHRoZSBndWlkZSJ9LCJzaWRlYmFyTWVudSI6W3sibGFiZWwiOiJIb21lIiwidXJsIjoiLyIsInBhZ2VJZCI6ImhvbWUifSx7ImxhYmVsIjoiUGxhdGZvcm0gZ3VpZGUiLCJ1cmwiOiIvZ3VpZGUvIiwicGFnZUlkIjoiZ3VpZGUifSx7ImxhYmVsIjoiTW9iaWxlIGFjY2VzcyIsInVybCI6Ii9hcHAvIiwicGFnZUlkIjoiYXBwIn0seyJsYWJlbCI6IlNwb3J0cyBndWlkZSIsInVybCI6Ii9zcG9ydHMvIiwicGFnZUlkIjoic3BvcnRzIn1dLCJzaWRlYmFyQ2FyZHMiOlt7ImhlYWRpbmciOiJEZXNpZ24gZml4dHVyZSIsImJvZHkiOiI8cD5Mb2NhbCBkZW1vIG9ubHk8L3A+IiwiYnV0dG9uIjoiUmVhZCB0aGUgZ3VpZGUiLCJ1cmwiOiIvZ3VpZGUvIiwia2luZCI6Im9mZmVyIn0seyJoZWFkaW5nIjoiS2V5IGZhY3RzIiwiYm9keSI6IjxkbD48L2RsPiIsImtpbmQiOiJmYWN0cyJ9LHsiaGVhZGluZyI6IlBheW1lbnQgbWV0aG9kcyIsImJvZHkiOiIiLCJraW5kIjoicGF5bWVudHMifV0sImZvb3Rlckdyb3VwcyI6W3sia2V5IjoiZ3VpZGVzIiwiaGVhZGluZyI6Ikd1aWRlcyIsIml0ZW1zIjpbeyJsYWJlbCI6IlBsYXRmb3JtIGd1aWRlIiwidXJsIjoiL2d1aWRlLyIsInBhZ2VJZCI6Imd1aWRlIn1dfV0sImZvb3RlciI6eyJhZ2UiOiIxOCsiLCJvZmZlciI6IkluZGVwZW5kZW50IGd1aWRlLiBBZHVsdHMgb25seS4gUGxheSByZXNwb25zaWJseS4iLCJkaXNjbGFpbWVyIjoibGlicmFyeS0xLmludmFsaWQgaXMgYW4gaW5kZXBlbmRlbnQgcmV2aWV3IHNpdGUsIG5vdCBvcGVyYXRlZCBieSB0aGUgb3BlcmF0b3IuIFdlIG1heSBlYXJuIGEgY29tbWlzc2lvbiB0aHJvdWdoIG91ciBsaW5rczsgdGhpcyBkb2VzIG5vdCBhZmZlY3Qgb3VyIHJldmlld3MuIEdhbWJsaW5nIGlzIGZvciBhZHVsdHMgMTgrIG9ubHkuIiwiY29weXJpZ2h0IjoiwqkgMjAyNiBsaWJyYXJ5LTEuaW52YWxpZCJ9LCJsYWJlbHMiOnsiYnkiOiJCeSIsImNoZWNrZWQiOiJDaGVja2VkIiwic2lkZWJhciI6Ikd1aWRlcyIsInBheW1lbnRzIjoiUGF5bWVudCBtZXRob2RzIn19'), true) ?: [];\n    return $config;\n}\nfunction generated_review_value($name, $post = 'option') {\n    $value = function_exists('get_field') ? get_field('generated_review_' . $name, $post) : null;\n    // ACF can format an unsaved text field as ''. Keep an explicitly saved blank,\n    // but let fresh installs use the approved cycle's defaults.\n    if ($post === 'option' && $value === '' && function_exists('get_option') && get_option('options_generated_review_' . $name, '__generated_review_unset__') === '__generated_review_unset__') $value = null;\n    if ($value !== null && $value !== false) return $value;\n    $config = generated_review_config();\n    $defaults = ['author_name' => $config['author']['name'] ?? null, 'author_role' => $config['author']['role'] ?? null,\n        'author_url' => $config['author']['url'] ?? null, 'author_photo' => $config['author']['photo'] ?? null,\n        'offer_title' => $config['mobileOffer']['title'] ?? null, 'offer_caption' => $config['mobileOffer']['caption'] ?? null,\n        'offer_button' => $config['mobileOffer']['button'] ?? null, 'offer_url' => $config['mobileOffer']['url'] ?? null,\n        'offer_logo' => $config['mobileOffer']['logo'] ?? null,\n        'sidebar_cards' => $config['sidebarCards'] ?? null,\n        'footer_age' => $config['footer']['age'] ?? null, 'footer_offer' => $config['footer']['offer'] ?? null,\n        'footer_disclaimer' => $config['footer']['disclaimer'] ?? null, 'footer_copyright' => $config['footer']['copyright'] ?? null];\n    return $post === 'option' ? ($defaults[$name] ?? null) : null;\n}\nfunction generated_review_styles() {\n    static $printed = false;\n    if ($printed) return '';\n    $printed = true;\n    $file = function_exists('get_template_directory') ? get_template_directory() . '/library-review.css' : '';\n    $version = $file && is_file($file) ? (string) filemtime($file) : 'component-layout-2';\n    return '<link rel=\"stylesheet\" href=\"' . esc_url(get_template_directory_uri() . '/library-review.css?ver=' . rawurlencode($version)) . '\">';\n}\nfunction generated_review_excluded() {\n    $config = generated_review_config();\n    $post = get_post(get_queried_object_id());\n    if (array_key_exists('servicePageIds', $config) || array_key_exists('serviceSlugs', $config)) {\n        $source_id = function_exists('get_post_meta') ? (string) get_post_meta(get_queried_object_id(), '_generator_source_page_id', true) : '';\n        return in_array($source_id, $config['servicePageIds'] ?? [], true) || ($post && in_array($post->post_name, $config['serviceSlugs'] ?? [], true));\n    }\n    return $post && in_array($post->post_name, ['terms', 'terms-of-use', 'privacy-policy', 'responsible-gambling'], true);\n}\nfunction generated_review_pending($id) {\n    return in_array($id, generated_review_config()['pendingPublication'] ?? [], true);\n}\nfunction generated_review_commercial_excluded() {\n    if (generated_review_excluded()) return true;\n    $config = generated_review_config();\n    $post = get_post(get_queried_object_id());\n    $source_id = function_exists('get_post_meta') ? (string) get_post_meta(get_queried_object_id(), '_generator_source_page_id', true) : '';\n    return in_array($source_id, $config['commercialPageIds'] ?? [], true) || ($post && in_array($post->post_name, $config['commercialSlugs'] ?? [], true));\n}\nfunction generated_review_label($key, $fallback) {\n    $config = generated_review_config();\n    return $config['labels'][$key] ?? $fallback;\n}\nfunction generated_review_geo_flag() {\n    $config = generated_review_config();\n    $code = strtoupper((string) ($config['countryCode'] ?? ''));\n    if (!preg_match('/^[A-Z]{2}$/', $code)) return '';\n    $flag = html_entity_decode('&#' . (127397 + ord($code[0])) . ';&#' . (127397 + ord($code[1])) . ';', ENT_QUOTES, 'UTF-8');\n    return generated_review_styles() . '<span class=\"library-review-geo-flag\" role=\"img\" aria-label=\"' . esc_attr($config['country'] ?? $code) . '\" data-country=\"' . esc_attr($code) . '\">' . esc_html($flag) . '</span>';\n}\nfunction generated_review_image($value, $class = '') {\n    $id = is_array($value) ? absint($value['ID'] ?? $value['id'] ?? 0) : (is_numeric($value) ? absint($value) : 0);\n    if ($id) return wp_get_attachment_image($id, 'full', false, ['class' => $class]);\n    $url = is_array($value) ? ($value['url'] ?? '') : (is_string($value) ? $value : '');\n    $width = is_array($value) && !empty($value['width']) ? absint($value['width']) : ($class === 'library-review-avatar' ? 28 : 96);\n    $height = is_array($value) && !empty($value['height']) ? absint($value['height']) : 28;\n    return $url ? '<img class=\"' . esc_attr($class) . '\" src=\"' . esc_url($url) . '\" width=\"' . $width . '\" height=\"' . $height . '\" alt=\"' . esc_attr(is_array($value) ? ($value['alt'] ?? '') : '') . '\">' : '';\n}\nfunction generated_review_author() {\n    if (generated_review_excluded() || generated_review_pending('author')) return '';\n    $name = trim((string) generated_review_value('author_name'));\n    if ($name === '') return '';\n    $url = generated_review_value('author_url');\n    // New cycle builds must not invent an author destination. Retain the old\n    // standalone component's fallback only for unconfigured legacy recipes.\n    if (!$url && !array_key_exists('author', generated_review_config())) $url = home_url('/about/');\n    $name_html = $url ? '<a rel=\"author\" href=\"' . esc_url($url) . '\">' . esc_html($name) . '</a>' : esc_html($name);\n    $role = trim((string) generated_review_value('author_role'));\n    $date = (string) generated_review_value('checked', get_queried_object_id());\n    $parsed = DateTimeImmutable::createFromFormat('!Ymd', $date);\n    $checked = $parsed && $parsed->format('Ymd') === $date ? (function_exists('wp_date') ? wp_date('F Y', $parsed->getTimestamp()) : $parsed->format('F Y')) : '';\n    return generated_review_styles() . '<div class=\"library-review-author\">' . generated_review_image(generated_review_value('author_photo'), 'library-review-avatar') . '<span class=\"library-review-author-copy\">' . esc_html(generated_review_label('by', 'By')) . ' ' . $name_html . ($role !== '' ? '<span class=\"library-review-author-role\">, ' . esc_html($role) . '</span>' : '') . ($checked !== '' ? '<span class=\"library-review-author-checked\"> · ' . esc_html(generated_review_label('checked', 'Checked')) . ' <time datetime=\"' . esc_attr($parsed->format('Y-m-d')) . '\">' . esc_html($checked) . '</time></span>' : '') . '</span></div>';\n}\nfunction generated_review_sidebar() {\n    $config = generated_review_config();\n    $cards = generated_review_value('sidebar_cards');\n    if (generated_review_commercial_excluded() || generated_review_pending('bonus-offer') || generated_review_pending('affiliate-urls')) $cards = [];\n    $menu = $config['sidebarMenu'] ?? [];\n    if ((!is_array($cards) || !$cards) && !$menu) return '';\n    $html = generated_review_styles() . '<aside class=\"library-review-sidebar\"><div class=\"library-review-sidebar-scroll\">';\n    foreach ((array) $cards as $card) {\n        $html .= '<section class=\"library-review-sidecard library-review-sidecard--' . esc_attr($card['kind'] ?? 'custom') . '\">';\n        if (($card['kind'] ?? '') === 'offer') {\n            $logo = function_exists('get_field') ? get_field('generated_site_logo', 'option') : null;\n            $html .= generated_review_image($logo, 'library-review-operator-logo');\n        }\n        $html .= '<h2>' . esc_html($card['heading'] ?? '') . '</h2>' . wp_kses_post($card['body'] ?? '');\n        if (($card['kind'] ?? '') === 'payments') $html .= generated_review_payment_icons();\n        foreach ((array) ($card['logos'] ?? []) as $logo) $html .= generated_review_image($logo['image'] ?? null);\n        if (!empty($card['url']) && !empty($card['button'])) $html .= '<a class=\"library-review-action\" href=\"' . esc_url($card['url']) . '\" rel=\"nofollow sponsored noopener\" target=\"_blank\">' . esc_html($card['button']) . '</a><small class=\"library-review-terms\">18+</small>';\n        $html .= '</section>';\n    }\n    if ($menu) {\n        $html .= '<nav class=\"library-review-sidecard library-review-side-menu\" aria-label=\"' . esc_attr(generated_review_label('sidebar', 'Page navigation')) . '\"><ul>';\n        foreach ($menu as $item) {\n            $url = !empty($item['pageId']) && function_exists('generated_theme_localized_page_url') ? generated_theme_localized_page_url($item['pageId'], $item['url']) : $item['url'];\n            $html .= '<li><a href=\"' . esc_url($url) . '\">' . esc_html($item['label']) . '</a></li>';\n        }\n        $html .= '</ul></nav>';\n    }\n    return $html . '</div></aside>';\n}\nfunction generated_review_bottom_offer() {\n    if (generated_review_commercial_excluded() || generated_review_pending('bonus-offer') || generated_review_pending('affiliate-urls')) return '';\n    $url = trim((string) generated_review_value('offer_url'));\n    $button = trim((string) generated_review_value('offer_button'));\n    if ($url === '' || $button === '') return '';\n    $post = get_post(get_queried_object_id());\n    // An explicitly approved hash is an editable placeholder, not a WP page\n    // query. Adding ?page=slug to it produces a real, broken internal URL.\n    if ($url !== '#') $url = add_query_arg('page', $post ? $post->post_name : '', $url);\n    return generated_review_styles() . '<aside class=\"library-review-bottom\"><div class=\"library-review-bottom-inner\">' . generated_review_image(generated_review_value('offer_logo')) . '<span><strong>' . esc_html(generated_review_value('offer_title')) . '</strong><small>' . esc_html(generated_review_value('offer_caption')) . '</small></span><a class=\"library-review-action\" href=\"' . esc_url($url) . '\" rel=\"nofollow sponsored\" target=\"_blank\">' . esc_html($button) . '</a></div></aside>';\n}\nfunction generated_review_payment_icons() {\n    if (generated_review_pending('payment-assets')) return '';\n    $config = generated_review_config();\n    $logos = (array) generated_review_value('footer_logos');\n    $html = '';\n    if (array_key_exists('payments', $config)) {\n        foreach ($config['payments'] as $payment) {\n            $image = ['url' => $payment['image'] ?? '', 'alt' => $payment['name']];\n            foreach ($logos as $logo) if (isset($logo['name']) && strcasecmp(trim($logo['name']), trim($payment['name'])) === 0 && !empty($logo['image'])) $image = $logo['image'];\n            $image_html = generated_review_image($image);\n            if ($image_html !== '') $html .= '<span class=\"library-review-payment\" data-payment=\"' . esc_attr($payment['name']) . '\" role=\"img\" aria-label=\"' . esc_attr($payment['name']) . '\">' . $image_html . '</span>';\n        }\n    } else {\n        foreach ($logos as $logo) $html .= generated_review_image($logo['image'] ?? null);\n    }\n    return $html === '' ? '' : generated_review_styles() . '<div class=\"library-review-payments\" aria-label=\"' . esc_attr(generated_review_label('payments', 'Payment methods')) . '\">' . $html . '</div>';\n}\nfunction generated_review_footer() {\n    $config = generated_review_config();\n    if (isset($config['footerGroups'])) {\n        $html = generated_review_styles() . '<footer class=\"library-review-footer\"><div class=\"library-review-footer-inner\"><div class=\"library-review-footer-grid\"><div class=\"library-review-age\"><span>' . esc_html(generated_review_value('footer_age')) . '</span><p>' . esc_html(generated_review_value('footer_offer')) . '</p></div><nav class=\"footer-nav\" aria-label=\"Footer navigation\">';\n        foreach ($config['footerGroups'] as $group) {\n            $key = $group['key'];\n            $html .= '<section class=\"library-review-menu library-review-menu--' . esc_attr($key) . '\"><h2>' . esc_html(generated_review_value('footer_' . $key . '_heading') ?: $group['heading']) . '</h2>';\n            if (has_nav_menu('review_' . $key)) $html .= wp_nav_menu(['theme_location'=>'review_' . $key,'container'=>false,'fallback_cb'=>false,'echo'=>false]);\n            else {\n                $html .= '<ul>';\n                foreach ($group['items'] as $item) { $url = !empty($item['pageId']) && function_exists('generated_theme_localized_page_url') ? generated_theme_localized_page_url($item['pageId'], $item['url']) : $item['url']; $html .= '<li><a href=\"' . esc_url($url) . '\">' . esc_html($item['label']) . '</a></li>'; }\n                $html .= '</ul>';\n            }\n            $html .= '</section>';\n        }\n        return $html . '</nav></div>' . generated_review_payment_icons() . '<p class=\"library-review-disclaimer\">' . wp_kses_post(generated_review_value('footer_disclaimer') ?: '') . '</p><p class=\"library-review-copyright\">' . esc_html(generated_review_value('footer_copyright')) . '</p></div></footer>';\n    }\n    $html = generated_review_styles() . '<footer class=\"library-review-footer\"><div class=\"library-review-footer-grid\"><div class=\"library-review-age\"><span>' . esc_html(generated_review_value('footer_age')) . '</span><p>' . esc_html(generated_review_value('footer_offer')) . '</p></div>';\n    foreach (['guides', 'payments', 'legal'] as $menu) {\n        $html .= '<nav class=\"library-review-menu library-review-menu--' . $menu . '\"><h2>' . esc_html(generated_review_value('footer_' . $menu . '_heading')) . '</h2>';\n        if (has_nav_menu('review_' . $menu)) $html .= wp_nav_menu(['theme_location' => 'review_' . $menu, 'container' => false, 'fallback_cb' => false, 'echo' => false]);\n        $html .= '</nav>';\n    }\n    return $html . '</div>' . generated_review_payment_icons() . '<p>' . wp_kses_post(generated_review_value('footer_disclaimer') ?: '') . '</p><p>' . esc_html(generated_review_value('footer_copyright')) . '</p></footer>';\n}\nadd_action('after_setup_theme', function() { register_nav_menus(['review_guides' => 'Review guides', 'review_payments' => 'Review payments', 'review_legal' => 'Review legal']); });\nadd_shortcode('library_review_author', 'generated_review_author');\nadd_shortcode('library_review_sidebar', 'generated_review_sidebar');\nadd_shortcode('library_review_bottom_offer', 'generated_review_bottom_offer');\nadd_shortcode('library_review_footer', 'generated_review_footer');\nadd_shortcode('library_review_geo_flag', 'generated_review_geo_flag');\nadd_action('wp_footer', function() { ?>\n<script>\n(() => {\n const banner = document.querySelector('.library-review-bottom');\n if (!banner) return;\n const spacer = document.createElement('div');\n spacer.className = 'library-review-spacer'; banner.before(spacer);\n const top = document.querySelector('.back-to-top');\n const originalBottom = top ? top.style.bottom : '';\n const media = matchMedia('(width < 1100px)');\n const update = () => {\n   const style = getComputedStyle(banner);\n   const h = media.matches && style.display !== 'none' && style.visibility !== 'hidden' ? banner.getBoundingClientRect().height : 0;\n   spacer.style.height = h + 'px';\n   if (top) top.style.bottom = h ? (h + 12) + 'px' : originalBottom;\n };\n if ('ResizeObserver' in window) new ResizeObserver(update).observe(banner);\n document.querySelectorAll('[data-mobile-navigation]').forEach(menu => menu.addEventListener('toggle', update));\n media.addEventListener('change', update); window.addEventListener('resize', update); update();\n})();\n</script>\n<?php });\nadd_action('acf/init', function() {\n    if (!function_exists('acf_add_local_field_group')) return;\n    $fields = [];\n    foreach (['author_name', 'author_role', 'offer_title', 'offer_caption', 'offer_button', 'footer_age', 'footer_offer', 'footer_guides_heading', 'footer_payments_heading', 'footer_legal_heading', 'footer_copyright'] as $name)\n        $fields[] = ['key' => 'field_generated_review_' . $name, 'name' => 'generated_review_' . $name, 'label' => ucwords(str_replace('_', ' ', $name)), 'type' => 'text', 'default_value' => generated_review_value($name)];\n    foreach (['author_url', 'offer_url'] as $name) $fields[] = ['key' => 'field_generated_review_' . $name, 'name' => 'generated_review_' . $name, 'label' => $name, 'type' => 'url', 'default_value' => generated_review_value($name)];\n    foreach (['author_photo', 'offer_logo'] as $name) $fields[] = ['key' => 'field_generated_review_' . $name, 'name' => 'generated_review_' . $name, 'label' => $name, 'type' => 'image', 'return_format' => 'id'];\n    $image = ['key' => 'field_generated_review_footer_logo', 'name' => 'image', 'label' => 'Logo', 'type' => 'image', 'return_format' => 'id'];\n    $fields[] = ['key' => 'field_generated_review_footer_logos', 'name' => 'generated_review_footer_logos', 'label' => 'Payment logo overrides — names must match final payment selection', 'type' => 'repeater', 'sub_fields' => [['key' => 'field_generated_review_payment_name', 'name' => 'name', 'label' => 'Payment name', 'type' => 'text'], $image]];\n    $fields[] = ['key' => 'field_generated_review_footer_disclaimer', 'name' => 'generated_review_footer_disclaimer', 'label' => 'Disclaimer', 'type' => 'textarea'];\n    $fields[] = ['key' => 'field_generated_review_sidebar_cards', 'name' => 'generated_review_sidebar_cards', 'label' => 'Sidebar cards — supplied facts only', 'type' => 'repeater', 'sub_fields' => [\n        ['key' => 'field_generated_review_side_heading', 'name' => 'heading', 'label' => 'Heading', 'type' => 'text'],\n        ['key' => 'field_generated_review_side_kind', 'name' => 'kind', 'label' => 'Card type', 'type' => 'select', 'choices' => ['offer'=>'Offer','facts'=>'Facts','providers'=>'Providers','payments'=>'Payments','custom'=>'Custom']],\n        ['key' => 'field_generated_review_side_body', 'name' => 'body', 'label' => 'Body', 'type' => 'wysiwyg'],\n        ['key' => 'field_generated_review_side_button', 'name' => 'button', 'label' => 'Button', 'type' => 'text'],\n        ['key' => 'field_generated_review_side_url', 'name' => 'url', 'label' => 'URL', 'type' => 'url'],\n        ['key' => 'field_generated_review_side_logos', 'name' => 'logos', 'label' => 'Logos', 'type' => 'repeater', 'sub_fields' => [array_merge($image, ['key' => 'field_generated_review_side_logo'])]],\n    ]];\n    acf_add_local_field_group(['key' => 'group_generated_review_components', 'title' => 'Review library components', 'fields' => $fields, 'location' => [[['param' => 'options_page', 'operator' => '==', 'value' => 'generated-site-content']]]]);\n    acf_add_local_field_group(['key' => 'group_generated_review_checked', 'title' => 'Review checked date', 'fields' => [['key' => 'field_generated_review_checked', 'name' => 'generated_review_checked', 'label' => 'Checked', 'type' => 'date_picker', 'return_format' => 'Ymd']], 'location' => [[['param' => 'post_type', 'operator' => '==', 'value' => 'page']]]]);\n});\n"
}