/* X1131 / Public-home containment repair.
   The marketing homepage is a full-bleed Obsidian surface, not an inset Studio canvas.
   Intentional scope: only a rendered .x5-home in the canonical #main outlet.
   Appearance preference remains available on product routes, never rewritten here. */
:root body:has(#main > .x5-home){
  --athrty-ui-canvas:var(--obsidian-bg);
  --athrty-ui-surface:var(--obsidian-surface);
  --athrty-ui-soft:var(--obsidian-raised);
  --athrty-ui-ink:var(--obsidian-ink);
  --athrty-ui-muted:var(--obsidian-muted);
  --athrty-ui-border:var(--obsidian-line);
  --athrty-ui-accent:var(--obsidian-mint);
  --athrty-ui-control:var(--obsidian-mint);
  --athrty-ui-control-ink:var(--athrty-brand-on-primary);
  background:var(--obsidian-bg);
  color:var(--obsidian-ink);
  color-scheme:dark;
}
:root body:has(#main > .x5-home) .x1113-layout,
:root body:has(#main > .x5-home) .shell,
:root body:has(#main > .x5-home) .body{
  background:var(--obsidian-bg)!important;
  color:var(--obsidian-ink)!important;
}
:root body:has(#main > .x5-home) #main{
  display:block!important;
  box-sizing:border-box;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  min-height:0;
  background:var(--obsidian-bg)!important;
  color:var(--obsidian-ink)!important;
}
:root body:has(#main > .x5-home) #main > .x5-home{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  margin:0;
  background:var(--obsidian-bg);
}
:root body:has(#main > .x5-home) .global-header{
  background:var(--obsidian-surface)!important;
  color:var(--obsidian-ink)!important;
  border-color:var(--obsidian-line)!important;
}
:root body:has(#main > .x5-home) .global-header :is(.wordmark,.authority-icon,#drawer-open){
  color:var(--obsidian-ink)!important;
}
:root body:has(#main > .x5-home) .global-header .wordmark span{color:var(--obsidian-muted)!important}
/* A theme control with no public-page effect is misleading; it remains usable in the Private Office. */
:root body:has(#main > .x5-home) #appearance-toggle{display:none!important}
:root body:has(#main > .x5-home) .app-footer{display:none!important}
/* Preserve an accessible, dark public navigation panel if the user opens the menu in light Office mode. */
:root body:has(#main > .x5-home) #x1113-nav-panel{
  background:var(--obsidian-surface)!important;
  color:var(--obsidian-ink)!important;
  border-color:var(--obsidian-line)!important;
}
@media(max-width:700px){
 :root body:has(#main > .x5-home) #main{padding:0!important}
 :root body:has(#main > .x5-home) .x5-home .x5-hero{min-width:0}
}