/* ANE Brand v2 — Bottle Green skin for the existing calculators (Phase D2).
   Scope: v2 service-page previews only (body.ae-v2.ae2-sp). Nothing here touches calculator logic, prices,
   endpoints, validation or markup: the calculators are already built on design tokens
   (ANE PCB Engine calc.css --aec-*, ANE Calc Kit kit.css --k-* / --aec-* / --mc-*), so the skin only
   re-points those tokens at the Bottle Green palette. Each block is more specific than the kit's own
   token block (html .aec = 0,1,1 · html :is(#ane3d,…) = 1,0,1), so no !important is needed.
   Contrast (WCAG AA): white on #103F35 11.8:1 · #A8C9BA on #092C26 8.4:1 · #092C26 on #E6EEE9 12.7:1 ·
   #4F5D58 on #FFFFFF 6.9:1 · #5E6B66 on #FFFFFF 5.6:1. */

/* PCB / assembly wizard and part search (.aec) */
html body.ae-v2.ae2-sp .aec{
  --aec-accent:#103F35; --aec-accent-ink:#092C26; --aec-accent-2:#A8C9BA;
  --aec-tint:#E6EEE9; --aec-tint-2:#C9DCD2;
  --aec-ink:#26332F; --aec-ink-2:#4F5D58; --aec-muted:#5E6B66;
  --aec-line:#D3DDD7; --aec-line-2:#E6EEE9; --aec-bg:#FFFFFF; --aec-bg-2:#F5F7F3;
  --aec-r:8px; --aec-r-sm:6px; --aec-r-lg:12px;
  --k-frame:#092C26; --k-frame-mute:#C9DCD2; --k-acc-dk:#A8C9BA; --k-line-3:#C9D5CE;
}

/* 3D printing, CNC and BOM calculators (ANE Calc Kit) */
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom){
  --k-frame:#092C26; --k-frame-2:#103F35; --k-frame-3:#2F5A4F; --k-frame-ink:#F5F7F3; --k-frame-mute:#C9DCD2;
  --k-bg:#F5F7F3; --k-surface:#FFFFFF; --k-surface-2:#EEF2EE;
  --k-line:#D3DDD7; --k-line-2:#E6EEE9; --k-line-3:#C9D5CE;
  --k-ink:#26332F; --k-ink-2:#4F5D58; --k-mute:#5E6B66;
  --k-acc:#103F35; --k-acc-h:#092C26; --k-acc-br:#A8C9BA; --k-acc-dk:#A8C9BA; --k-lime:#A8C9BA;
  --k-tint:#E6EEE9; --k-tint-2:#C9DCD2;
  --k-r-lg:12px; --k-r:8px; --k-r-sm:6px;
}

/* Mechanical catalogue (ANE PCB Engine [ane_mech_shop]) */
html body.ae-v2.ae2-sp .ane-mc{
  --mc-accent:#103F35; --mc-ink:#092C26; --mc-text:#26332F; --mc-muted:#5E6B66; --mc-line:#D3DDD7; --mc-r:12px;
  --k-frame:#092C26; --k-frame-mute:#C9DCD2; --k-acc-dk:#A8C9BA;
}

/* The production wrapper card (.ane-embed, ane-animations site.css) reads these two tokens. */
html body.ae-v2.ae2-sp .ae2-sp-calc{--line:#D3DDD7;--radius-lg:12px}

/* Focus rings and the few glows the kit writes as literal green rgba() values */
html body.ae-v2.ae2-sp .aec :is(.aec-in,.aec-sel,.aec-ta):focus{box-shadow:0 0 0 1px var(--aec-accent)}
html body.ae-v2.ae2-sp .aec .aec-btn.pri{box-shadow:0 1px 2px rgba(9,44,38,.16)}
html body.ae-v2.ae2-sp .ane-mc .mc-btn{box-shadow:0 1px 2px rgba(9,44,38,.16)}

/* The kit's final layer also writes a few colours as literals (bright #03B62E buttons, green glows).
   They are re-pointed here; the three rules the kit marks !important need !important to be replaced,
   and they stay limited to v2 service pages by the body.ae2-sp scope. */
html body.ae-v2.ae2-sp :is(.aec,.ane-mc,#ane3d,#ane-cnc3,#ane-bom) ::selection{background:rgba(168,201,186,.45)}
html body.ae-v2.ae2-sp :is(.aec .aec-head,.aec .aec-total,.ane-mc .mc-quote,.anep3d-head),
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom) :is(.hd,.bill,.result){background-image:none}
html body.ae-v2.ae2-sp .anep3d-head{background-color:var(--k-frame,#092C26)}
html body.ae-v2.ae2-sp :is(.aec .aec-head,.anep3d-head)::after,
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom) .hd::after{background:linear-gradient(90deg,transparent,rgba(168,201,186,.5) 30%,rgba(168,201,186,.2) 70%,transparent)}
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom) .hd svg.pcb .flow{filter:none}
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom) .ship-note{background:rgba(168,201,186,.12);border-color:rgba(168,201,186,.35);color:#E6EEE9}
html body.ae-v2.ae2-sp .aec .aec-drop .ic{color:#A8C9BA}
html body.ae-v2.ae2-sp .aec .aec-btn.pri,
html body.ae-v2.ae2-sp #ane3d .anep3d-btn-primary{background:#103F35;color:#FFFFFF}
html body.ae-v2.ae2-sp .aec .aec-btn.pri:hover,
html body.ae-v2.ae2-sp #ane3d .anep3d-btn-primary:hover:not(:disabled){background:#092C26;color:#FFFFFF}
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom) :is(.cta,#c3-order-btn,#c3-o-submit,.btn.go-order){background:#103F35!important;color:#FFFFFF!important}
html body.ae-v2.ae2-sp :is(#ane3d,#ane-cnc3,#ane-bom) :is(.cta,#c3-order-btn,#c3-o-submit,.btn.go-order):hover{background:#092C26!important}
html body.ae-v2.ae2-sp :is(.o-ctype-opt,.c3o-type):is(.on,:has(input:checked)){border-color:#103F35!important;background:#E6EEE9!important;box-shadow:inset 0 0 0 1px #103F35;color:#092C26}
html body.ae-v2.ae2-sp :is(.o-ctype-opt,.c3o-type) input{accent-color:#103F35!important}
html body.ae-v2.ae2-sp .anep3d-x:focus-visible{outline-color:#A8C9BA}

/* 3D calculator — business-gifts entry and its dialog (inline styles of the calculator page, written as
   html body:not(#_) #ane3d … = 2,1,2; these are 2,3,2) */
html body.ae-v2.ae2-sp:not(#_) #ane3d .bz-entry-go,
html body.ae-v2.ae2-sp:not(#_) #d3-biz .bz-go{background:#103F35;color:#FFFFFF}
html body.ae-v2.ae2-sp:not(#_) #ane3d :is(.bz-entry-eye,.bz-entry-list i),
html body.ae-v2.ae2-sp:not(#_) #d3-biz .bz-eye{color:#2F5A4F}
html body.ae-v2.ae2-sp:not(#_) #d3-biz .bz-cats button[aria-selected=true]::after,
html body.ae-v2.ae2-sp:not(#_) #d3-biz .bz-switch input:checked+.tr{background:#103F35}

/* Two contrast fixes that are pure styling (axe 4.x on the v2 previews; both also fail on production pages):
   the quote disclaimer's links were green-on-grey with no underline (link-in-text-block 1.4:1),
   and the CNC order hint was #7385A0 on white (3.75:1). */
html body.ae-v2.ae2-sp .admeve-quote-disclaimer a{color:#103F35;text-decoration:underline;text-underline-offset:2px}
html body.ae-v2.ae2-sp .c3-order>span{color:#5E6B66!important} /* the hint carries an inline colour, so only !important can replace it */
