/*
Auram Prime Global Visual Precision Layer — v3.56.5
This is the final governed canvas for plugin-owned public pages. It removes
outer theme gutters without viewport arithmetic, preserves each page's own
inner shell, and locks shared colour/contrast/alignment after the foundation
stylesheet. APDI/private routes never receive this file.
*/

body.apw-global-system.apw-owned-page-canvas{
  --apw-precision-plum:#241733;
  --apw-precision-plum-2:#4b2342;
  --apw-precision-ivory:#fffaf1;
  --apw-precision-paper:#fffdf8;
  --apw-precision-cream:#f4ebdd;
  --apw-precision-copy:#5e526b;
  --apw-precision-muted:#766b76;
  --apw-precision-line:#dccbb1;
  --apw-precision-gold:#b8792e;
  --apw-precision-shell:min(1200px,calc(100% - 48px));
  background:var(--apw-precision-ivory)!important;
  overflow-x:clip!important;
}

/* The replacement content owns the full public canvas. Theme wrappers must not
   create a cream band above the first section or side gutters around heroes. */
body.apw-global-system.apw-owned-page-canvas :where(
  .site,.site-content,.content-container,.content-area,.site-main,#primary,#main,
  article.page,article.post,.entry-content,.entry-content-wrap,.inside-article,.page-content
){
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding-top:0!important;
  padding-right:0!important;
  padding-bottom:0!important;
  padding-left:0!important;
  border-left:0!important;
  border-right:0!important;
  overflow:visible!important;
}
body.apw-global-system.apw-owned-page-canvas .entry-content>*{max-width:none!important}
body.apw-global-system.apw-owned-page-canvas :where(.entry-header,.page-header){display:none!important}

/* Every complete replacement root stays in normal document flow. */
body.apw-global-system.apw-owned-page-canvas .entry-content>:where(
  .apa-page,.apj,.apu,.apbook,.apf,.apm,.apd,.apabout,.apwhy,.apt
),
body.apw-global-system.apw-owned-page-canvas :where(
  .apa-page,.apj,.apu,.apbook,.apf,.apm,.apd,.apabout,.apwhy,.apt
){
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding-left:0!important;
  padding-right:0!important;
  overflow-x:clip!important;
}

/* Full-width photographic and colour bands. Text remains governed by the
   component's own shell and never touches the viewport edge. */
body.apw-global-system.apw-owned-page-canvas :where(
  .apa-hero,.apa-visual-bridge,
  .apj-hero,.apj-fit-standard,
  .apu-hero,.apu-hero-standard,
  .apbook-hero,
  .apf-hero,.apv-hero,
  .apm-hero,.apm-proof,.apm-method,.apm-cta,
  .apd-hero,.apd-hero-standard,.apd-boundary,
  .apabout-hero,.apabout-charter-band,
  .apwhy-hero,.apwhy-visual,
  .apt-hero,.apt-trust,.apt-section,.apt-final
){
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  border-radius:0!important;
}

/* One shared reading grid. Existing page-specific shells may be narrower only
   where their own content model intentionally requires it. */
body.apw-global-system.apw-owned-page-canvas :where(
  .apa-shell,.apj-shell,.apu-shell,.apf-shell,.apm-shell,.apd-shell,
  .apwhy-shell,.apt-shell,.apw-shell
){
  box-sizing:border-box;
  max-width:1200px;
}

/* Shared family tokens. */
body.apw-global-system.apw-owned-page-canvas :is(.apa-page,.apj,.apu,.apbook,.apf,.apm,.apd,.apabout,.apwhy,.apt){
  --plum:var(--apw-precision-plum);
  --plum2:var(--apw-precision-plum-2);
  --plum-2:var(--apw-precision-plum-2);
  --plum-dark:var(--apw-precision-plum-2);
  --deep:var(--apw-precision-plum);
  --ink:var(--apw-precision-plum);
  --ivory:var(--apw-precision-ivory);
  --cream:var(--apw-precision-cream);
  --paper:var(--apw-precision-paper);
  --gold:var(--apw-precision-gold);
  --copper:var(--apw-precision-gold);
  --line:var(--apw-precision-line);
  --copy:var(--apw-precision-copy);
  --muted:var(--apw-precision-muted);
}

/* Dark surfaces must never inherit low-contrast global paragraph colours. */
body.apw-global-system.apw-owned-page-canvas :where(
  .apj-section-plum,.apj-section-dark,
  .apu-section-plum,.apu-section-dark,
  .apm-section-dark,.apm-method,.apm-cta,
  .apf-section-dark,.apf-cta,
  .apd-boundary,
  .apbook-plum,
  .apt-result-panel,.apt-section-dark,.apt-final
) :where(h1,h2,h3,h4,strong,b){
  color:var(--apw-precision-ivory)!important;
  -webkit-text-fill-color:var(--apw-precision-ivory)!important;
}
body.apw-global-system.apw-owned-page-canvas :where(
  .apj-section-plum,.apj-section-dark,
  .apu-section-plum,.apu-section-dark,
  .apm-section-dark,.apm-method,.apm-cta,
  .apf-section-dark,.apf-cta,
  .apd-boundary,
  .apbook-plum,
  .apt-result-panel,.apt-section-dark,.apt-final
) :where(p,li,dd,small){
  color:rgba(255,250,241,.78)!important;
  -webkit-text-fill-color:rgba(255,250,241,.78)!important;
}

/* Shared controls: exact heights, clean centre alignment and no legacy blue. */
body.apw-global-system.apw-owned-page-canvas :where(button,a[class*="button"],input,select,textarea){box-sizing:border-box}
body.apw-global-system.apw-owned-page-canvas :where(button,a[class*="button"]){font-family:var(--apw-foundation-sans,Inter,sans-serif)!important}
body.apw-global-system.apw-owned-page-canvas :where(input:not([type="submit"]):not([type="button"]),select,textarea){color:var(--apw-precision-plum)!important;-webkit-text-fill-color:var(--apw-precision-plum)!important}

/* Advisory route context is part of the page flow, never a detached floater. */
body.apw-global-system.apw-owned-page-canvas .apw-advisory-routebar{
  position:relative!important;
  top:auto!important;
  margin:0!important;
  border-top:0!important;
  background:var(--apw-precision-ivory)!important;
  box-shadow:none!important;
}
body.apw-global-system.apw-owned-page-canvas .apw-advisory-routebar__inner{width:var(--apw-precision-shell)!important;max-width:1200px!important}
body.apw-global-system.apw-owned-page-canvas .apw-advisory-routebar a[aria-current="page"]{background:var(--apw-precision-paper)!important;color:var(--apw-precision-plum)!important;-webkit-text-fill-color:var(--apw-precision-plum)!important}

/* Calculator-specific precision for the screenshots reported on 6 Aug. */
body.apw-global-system.apw-calculator-tool .apt-action-list h4{color:var(--apw-precision-ivory)!important;-webkit-text-fill-color:var(--apw-precision-ivory)!important}
body.apw-global-system.apw-calculator-tool .apt-action-list :where(ol,li){color:rgba(255,250,241,.82)!important;-webkit-text-fill-color:rgba(255,250,241,.82)!important}
body.apw-global-system.apw-calculator-tool .apt-form-actions .apt-calculate{background:var(--apw-precision-plum)!important;border-color:var(--apw-precision-plum)!important;color:var(--apw-precision-ivory)!important;-webkit-text-fill-color:var(--apw-precision-ivory)!important}
body.apw-global-system.apw-calculator-tool .apt-form-actions .apt-reset{background:var(--apw-precision-paper)!important;border-color:var(--apw-precision-gold)!important;color:var(--apw-precision-plum)!important;-webkit-text-fill-color:var(--apw-precision-plum)!important}
body.apw-global-system.apw-calculator-tool .apt-input-group-head{align-items:start!important}
body.apw-global-system.apw-calculator-tool .apt-field-grid>label{align-self:start}
body.apw-global-system.apw-calculator-tool.apw-page-dubai-handover-readiness-checker .apt-input-group:first-child .apt-field-grid>label:last-child{grid-column:1/-1!important}

/* The floating intelligence launcher must not cover tool inputs, results or CTA. */
body.apw-global-system.apw-calculator-tool #apic-root.apic-root button.apic-launcher{right:18px!important;bottom:18px!important}

@media(max-width:720px){
  body.apw-global-system.apw-owned-page-canvas{--apw-precision-shell:min(100% - 28px,1200px)}
  body.apw-global-system.apw-owned-page-canvas .apw-advisory-routebar__inner{width:100%!important;max-width:none!important}
  body.apw-global-system.apw-calculator-tool.apw-page-dubai-handover-readiness-checker .apt-input-group:first-child .apt-field-grid>label:last-child{grid-column:auto!important}
  body.apw-global-system.apw-calculator-tool #apic-root.apic-root button.apic-launcher{right:10px!important;bottom:10px!important;transform:scale(.88)!important;transform-origin:right bottom!important}
}
