/* ATHRTY X-COLOR-7100 — canonical first-party brand identity.
   Loaded LAST in Genesis. Explicitly excludes embedded tenant pages and product preview Design DNA.
   Legacy --obsidian-mint / --x41-mint aliases remain for compatibility, not green branding. */
:root{
  --athrty-brand-primary:#506C7D;
  --athrty-brand-bright:#8FA8B5;
  --athrty-brand-deep:#385364;
  --athrty-brand-dark:#1B303C;
  --athrty-brand-on-primary:#FFFFFF;
  --athrty-brand-bg:#0C1217;
  --athrty-brand-surface:#162028;
  --athrty-brand-ink:#F1F3F2;
  --athrty-brand-muted:#AAB8BE;
  --athrty-brand-glow:rgba(80,108,125,.13);
  --obsidian-mint:var(--athrty-brand-primary);
}
:root:not([data-athrty-appearance="light"]){
  --athrty-ui-accent:var(--athrty-brand-primary);
  --athrty-ui-control:var(--athrty-brand-primary);
  --athrty-ui-control-ink:var(--athrty-brand-on-primary);
  --x602-accent:var(--athrty-brand-primary);
  --x602-focus:var(--athrty-brand-bright);
  --athrty-focus:var(--athrty-brand-primary);
  --accent:var(--athrty-brand-primary);
}
:root[data-athrty-appearance="light"]{
  --athrty-ui-accent:#385364; /* contrast-safe for ordinary text on white */
  --athrty-ui-control:#385364;
  --athrty-ui-control-ink:#FFFFFF;
  --x602-accent:#385364;
  --x602-focus:#385364;
  --athrty-focus:#385364;
  --accent:#385364;
}
/* Shared ATHRTY interface primitives; do not style application-specific status semantics. */
body :is(a,button,input,textarea,select,summary):focus-visible{
  outline-color:var(--athrty-ui-accent);
  outline-offset:3px;
}
body :is(input[type="checkbox"],input[type="radio"],input[type="range"]){
  accent-color:var(--athrty-ui-accent);
}
body.authenticated :is(.x850-toolbar,#x1113-nav-panel,#workspace-drawer) :is(a[aria-current="page"],button[aria-pressed="true"],button.active){
  border-color:color-mix(in srgb,var(--athrty-ui-accent) 44%,transparent);
}
body.authenticated :is(.x850-toolbar,#x1113-nav-panel,#workspace-drawer) :is(a,button):focus-visible{
  outline:2px solid var(--athrty-ui-accent);
  outline-offset:2px;
}
body.authenticated .x850-tab[aria-current="page"]{
  box-shadow:inset 0 -2px var(--athrty-ui-accent);
  color:var(--athrty-ui-ink);
}
body.authenticated .ath-control[data-ath-variant="primary"]{
  background:var(--athrty-ui-control);
  color:var(--athrty-ui-control-ink);
  border-color:var(--athrty-ui-control);
}
body.authenticated :is(.ath-control,.ath-field,.x850-tab,.x850-search,.x850-tool-toggle){
  transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease;
}
/* Public flagship: all first-party frame accents use the shared hue. */
body:has(.x5-home){background:var(--athrty-brand-bg)}
:root body .x5-home .x4120-hero{
  --x4120-accent:var(--athrty-brand-primary);
  --x4120-bg:var(--athrty-brand-bg);
  --x4120-card:var(--athrty-brand-surface);
  --x4120-border:rgba(143,168,181,.17);
  --x4120-muted:#A4B8BA;
  background:radial-gradient(ellipse at 70% 20%,rgba(80,108,125,.14),transparent 49%),linear-gradient(125deg,#080B0D,#102022)!important;
}
:root body .x5-home .x4120-hero #x1114-title em,
:root body .x5-home .x4120-hero .x4120-kicker,
:root body .x5-home .x4120-hero .x4120-join-line a{color:var(--athrty-brand-bright)!important}
:root body .x5-home .x4120-hero-actions .x4120-primary,
:root body .x5-home .x4120-brief-disclosure .x9004-public-brief button{
  background:var(--athrty-brand-primary)!important;
  border-color:var(--athrty-brand-primary)!important;
  color:var(--athrty-brand-on-primary)!important;
}
:root body .x5-home .x4120-hero-actions .x4120-primary:hover{
  background:var(--athrty-brand-deep)!important;
  border-color:var(--athrty-brand-deep)!important;
}
.x5-home .x4120-system-visual{
  border-color:rgba(143,168,181,.24);
  background:linear-gradient(145deg,#142427,#0B1215);
}
.x5-home .x4120-visual-body{
  background:radial-gradient(ellipse at 70% 32%,rgba(80,108,125,.13),transparent 54%),linear-gradient(150deg,#162D30,#101A1D);
}
.x5-home .x4120-visual-node:hover{border-color:rgba(143,168,181,.55)}
/* Audience and lifecycle components are ATHRTY chrome, not customer sites. */
.x5-home :is(.x4001-principle,#x1112-audience,.x119-home-hub){
  --x4001-mint:var(--athrty-brand-primary);
  --x4001-line:rgba(143,168,181,.16);
  --x4001-surface:var(--athrty-brand-surface);
  --x4001-muted:#A7BABD;
}
.x5-home .x5-principle.x4001-principle{
  background:radial-gradient(ellipse at 80% 0%,rgba(80,108,125,.13),transparent 55%),linear-gradient(135deg,#111A1D,#080B0D)!important;
}
.x5-home > #x4150-pathway.x4150-pathway{
  --x4150-mint:var(--athrty-brand-primary);
  --x4150-muted:#A5BBC0;
  background:radial-gradient(ellipse at 80% -5%,rgba(80,108,125,.14),transparent 47%),linear-gradient(120deg,#0B1517,#112427);
  border-color:rgba(143,168,181,.18);
}
.x5-home #x4150-pathway .x4150-path-icon{
  background:linear-gradient(125deg,#203746,#142630);
  border-color:var(--athrty-brand-deep);
  color:var(--athrty-brand-bright);
}
.x5-home #x4150-pathway .x4150-actions .x4150-primary{
  background:var(--athrty-brand-primary)!important;
  border-color:var(--athrty-brand-primary)!important;
  color:var(--athrty-brand-on-primary)!important;
}
.x5-home #x4150-pathway .x4150-actions .x4150-primary:hover{
  background:var(--athrty-brand-deep)!important;
}
.x5-home #x4150-pathway .x4150-step{
  background:linear-gradient(115deg,#13272A,#101B1D);
  border-color:#285358;
}
/* Product-explorer chrome only: [data-theme] preview artwork remains source-defined. */
.x5-home .x4100-explorer,.x5-home .x4100-lifecycle,.x5-config .x4100-config-bridge{
  --x41-bg:var(--athrty-brand-bg);
  --x41-panel:var(--athrty-brand-surface);
  --x41-line:rgba(143,168,181,.28);
  --x41-ink:var(--athrty-brand-ink);
  --x41-muted:var(--athrty-brand-muted);
  --x41-mint:var(--athrty-brand-primary); /* compatibility alias */
}
.x5-home .x4100-product-card{
  background:#111A1D;
  border-color:#294449;
}
.x5-home .x4100-product-card:hover{
  background:#16272B;
  border-color:var(--athrty-brand-deep);
}
.x5-home .x4100-card-actions button:first-child{
  background:var(--athrty-brand-primary)!important;
  border-color:var(--athrty-brand-primary)!important;
  color:var(--athrty-brand-on-primary)!important;
}
.x5-home .x4100-card-actions button:first-child:hover{background:var(--athrty-brand-bright)!important}
.x5-home .x4100-goal-filters button[aria-pressed="true"]{
  background:var(--athrty-brand-primary)!important;
  border-color:var(--athrty-brand-primary)!important;
  color:var(--athrty-brand-on-primary)!important;
}
.x4100-product-dialog{
  --x41-mint:var(--athrty-brand-primary);
  border-color:#326164;
  background:#0C1416;
}
.x4100-detail-primary{background:var(--athrty-brand-primary);border-color:var(--athrty-brand-primary);color:var(--athrty-brand-on-primary)}
.x4100-detail-head{background:#142629;border-color:#2C5053}
/* Product Foundry is first-party application chrome, never a tenant page. */
.xprod002-dialog{
  --foundry-bg:#080D10;
  --foundry-surface:#111C20;
  --foundry-surface-hover:#1A2C30;
  --foundry-muted:#AABABE;
  --foundry-line:rgba(143,168,181,.17);
  --foundry-accent:var(--athrty-brand-primary);
  border-color:#2C5053;
}
.xprod002-dialog :is(button,a,input,textarea,select):focus-visible{
  outline:2px solid var(--athrty-brand-bright);
  outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){
  body.authenticated :is(.ath-control,.ath-field,.x850-tab,.x850-search,.x850-tool-toggle){transition:none!important}
}