/* Scope all changes to Auvatrix public editorial pages; NEXA/private routes are untouched. */
body.ax-content-layout { --ax-ui-ink:#1b2540;--ax-ui-muted:#596780;--ax-ui-line:#e2e8f2;--ax-ui-accent:#5350bd; }
body.ax-content-layout main.editorial[data-seo-initial] {max-width:1160px;padding:48px 32px 64px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;}
body.ax-content-layout main.editorial[data-seo-initial]>h1 {max-width:28ch;font-weight:740;font-size:clamp(30px,3.4vw,46px);line-height:1.17;letter-spacing:-.04em;color:var(--ax-ui-ink);margin:0 0 18px;}
body.ax-content-layout main.editorial[data-seo-initial]>p {max-width:74ch;font-size:17px;line-height:1.8;color:var(--ax-ui-muted);}
body.ax-content-layout .ax-content-root {min-width:0;}
body.ax-content-layout #auvatrix-seo-details.ax-content-root {padding:0;border:0;background:transparent;box-shadow:none;}
body.ax-content-layout main.editorial[data-seo-initial] #auvatrix-seo-details {margin:24px 0 0;}
body.ax-content-layout .ax-content-card {box-sizing:border-box;min-width:0;margin:24px 0;padding:30px 32px;border:1px solid var(--ax-ui-line);border-radius:20px;background:#fff;box-shadow:0 6px 24px #20345505;}
body.ax-content-layout .ax-content-card>h2 {margin:0 0 20px;font-size:clamp(20px,2.1vw,25px);line-height:1.4;letter-spacing:-.025em;color:var(--ax-ui-ink);}
body.ax-content-layout .ax-content-card :is(p,li) {font-size:16px;line-height:1.8;color:var(--ax-ui-muted);}
body.ax-content-layout .ax-content-card>:last-child {margin-bottom:0;}
body.ax-content-layout .ax-instructions-card {background:linear-gradient(135deg,#fff,#fafaff);}
body.ax-content-layout .ax-instructions-card>ol {counter-reset:ax-step;list-style:none;padding:0;margin:0;display:grid;gap:16px;}
body.ax-content-layout .ax-instructions-card>ol>li {position:relative;padding:5px 0 5px 50px;margin:0;min-height:34px;}
body.ax-content-layout .ax-instructions-card>ol>li::before {counter-increment:ax-step;content:counter(ax-step,decimal-leading-zero);position:absolute;left:0;top:2px;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eeedff;color:var(--ax-ui-accent);font-size:13px;font-weight:700;}
body.ax-content-layout .ax-example-card pre {background:#152239;color:#edf3ff;border-color:#23344c;border-radius:14px;padding:22px 24px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0;}
body.ax-content-layout .ax-limits-card {border-left:4px solid #d2a356;background:#fffdf8;}
body.ax-content-layout .ax-resource-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0;}
body.ax-content-layout .ax-resource-links>li {min-width:0;margin:0;padding:0;}
body.ax-content-layout .ax-resource-links a {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;height:100%;box-sizing:border-box;padding:16px 18px;border:1px solid var(--ax-ui-line);border-radius:12px;text-decoration:none;background:#fbfcff;color:#444a99;font-weight:600;font-size:15px;line-height:1.6;}
body.ax-content-layout .ax-resource-links a::after {content:'↗';flex-shrink:0;}
body.ax-content-layout .ax-resource-links a:hover {background:#f2f1ff;border-color:#c9c5f0;}
body.ax-content-layout .ax-faq-item {border-top:1px solid var(--ax-ui-line);padding:0;}
body.ax-content-layout .ax-faq-item summary {display:flex;align-items:flex-start;justify-content:space-between;gap:18px;list-style:none;cursor:pointer;padding:18px 0;}
body.ax-content-layout .ax-faq-item summary::-webkit-details-marker {display:none;}
body.ax-content-layout .ax-faq-item summary h3 {font-size:16px;line-height:1.65;font-weight:650;margin:0;color:var(--ax-ui-ink);}
body.ax-content-layout .ax-faq-item summary::after {content:'+';font-size:22px;line-height:1.2;color:var(--ax-ui-accent);flex-shrink:0;}
body.ax-content-layout .ax-faq-item[open] summary::after {content:'−';}
body.ax-content-layout .ax-faq-item>p {margin:0 0 20px;}
body.ax-content-layout :is(a,summary):focus-visible {outline:3px solid #a79bed;outline-offset:4px;border-radius:6px;}
@media(max-width:640px){
 body.ax-content-layout main.editorial[data-seo-initial] {padding:30px 18px 40px;}
 body.ax-content-layout .ax-content-card {padding:22px 20px;margin:18px 0;border-radius:16px;}
 body.ax-content-layout .ax-content-card :is(p,li) {font-size:15px;}
 body.ax-content-layout .ax-resource-links {grid-template-columns:1fr;}
 body.ax-content-layout .ax-example-card pre {padding:18px 16px;font-size:13px;}
 body.ax-content-layout #auvatrix-seo-details.ax-content-root {width:calc(100% - 32px);}
 body.ax-content-layout main.editorial[data-seo-initial] #auvatrix-seo-details.ax-content-root {width:100%;}
}
body.ax-content-layout .ax-editorial-footer {box-sizing:border-box;margin:36px 0 0;padding:26px 0;border-top:1px solid var(--ax-ui-line);display:flex;justify-content:space-between;align-items:flex-start;gap:24px;font-family:inherit;}
body.ax-content-layout .ax-editorial-footer>a {display:block;flex-shrink:0;}
body.ax-content-layout .ax-editorial-footer img {display:block;width:150px;height:auto;}
body.ax-content-layout .ax-editorial-footer nav {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px 22px;}
body.ax-content-layout .ax-editorial-footer nav a {color:var(--ax-ui-muted);font-size:14px;line-height:1.8;text-decoration:none;}
body.ax-content-layout .ax-editorial-footer nav a:hover {color:var(--ax-ui-accent);text-decoration:underline;}
@media(max-width:640px){body.ax-content-layout .ax-editorial-footer {display:block;}body.ax-content-layout .ax-editorial-footer nav {justify-content:flex-start;margin-top:22px;gap:12px 20px;}}
/* Match the specificity of the existing editorial theme, including its ID-scoped pre rules. */
body.ax-content-layout #auvatrix-seo-details.ax-content-root .ax-example-card pre,
body.ax-content-layout main.editorial[data-seo-initial].ax-content-root .ax-example-card pre {background:#152239;color:#edf3ff;border-color:#23344c;}
@media(min-width:641px) and (max-width:1000px){
 body.ax-content-layout .header-inner {box-sizing:border-box;max-width:100%;gap:12px;padding-inline:24px;}
 body.ax-content-layout .header-inner nav {min-width:0;gap:8px 12px;flex-wrap:wrap;}
 body.ax-content-layout .header-inner nav a {font-size:12px;}
 body.ax-content-layout .header-inner .brand img {max-width:130px;height:auto;}
 body.ax-content-layout .header-inner .theme-toggle {padding-inline:8px;}
}
body.ax-content-layout .tool-guide[data-reviewed-guide] {padding:0;background:transparent;border:0;box-shadow:none;}
body.ax-content-layout .tool-guide[data-reviewed-guide] .ax-example-card pre {background:#152239;color:#edf3ff;}
html[data-theme=dark] body.ax-content-layout {--ax-ui-ink:#e2e9fb;--ax-ui-muted:#a9b8d4;--ax-ui-line:#33435e;--ax-ui-accent:#b7adff;}
html[data-theme=dark] body.ax-content-layout .ax-content-card {background:#172139;box-shadow:none;}
html[data-theme=dark] body.ax-content-layout .ax-limits-card {background:#292537;border-left-color:#d2a356;}
html[data-theme=dark] body.ax-content-layout .ax-resource-links a {background:#1d2941;color:#c6c0ff;}
html[data-theme=dark] body.ax-content-layout .ax-resource-links a:hover {background:#293553;}
html[data-theme=dark] body.ax-content-layout .ax-instructions-card>ol>li::before {background:#2f3158;color:#c6c0ff;}
/* Task-led tutorials use the existing brand palette and native HTML controls. */
.ax-category-task{max-width:80ch;margin:0 0 32px;padding:26px;border:1px solid #e2e8f2;border-radius:18px;background:#fff;}
.ax-category-task h2{margin-top:0;font-size:24px;line-height:1.4;letter-spacing:-.02em;}
.ax-category-task p,.ax-category-task li{font-size:16px;line-height:1.8;}
.ax-category-task ul{display:flex;flex-wrap:wrap;gap:12px 24px;padding-left:20px;}
html[data-theme=dark] .ax-category-task{background:#172139;border-color:#33435e;color:#d5def0;}
body.ax-static-editorial {margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;}
body.ax-static-editorial .site-header {position:relative;width:100%;border-bottom:1px solid var(--ax-ui-line,#e2e8f2);background:#fff;}
body.ax-static-editorial .header-inner {box-sizing:border-box;max-width:1160px;margin:auto;padding:22px 32px;display:flex;justify-content:space-between;align-items:center;gap:24px;}
body.ax-static-editorial .header-inner .brand {display:block;flex-shrink:0;}
body.ax-static-editorial .header-inner .brand img {display:block;width:160px;max-width:100%;height:auto;}
body.ax-static-editorial .header-inner nav {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 24px;}
body.ax-static-editorial .header-inner nav a {font-size:14px;font-weight:600;color:var(--ax-ui-ink,#1b2540);text-decoration:none;}
body.ax-static-editorial main.editorial {box-sizing:border-box;width:100%;margin:auto;}
body.ax-static-editorial main img {max-width:100%;height:auto;}
@media(max-width:640px){body.ax-static-editorial .header-inner{padding:18px;gap:18px;align-items:flex-start;}.ax-static-editorial .header-inner .brand img{width:125px;}body.ax-static-editorial .header-inner nav{gap:10px 14px;}body.ax-static-editorial .header-inner nav a{font-size:12px;}}
.ax-tutorial-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-block:24px 36px;}
.ax-tutorial-card {min-width:0;padding:26px;border:1px solid var(--ax-ui-line,#e2e8f2);border-radius:18px;background:var(--white,#fff);}
.ax-tutorial-card[hidden] {display:none;}
.ax-tutorial-card h2,.ax-tutorial-card h3 {margin:6px 0 14px;font-size:21px;line-height:1.4;letter-spacing:-.025em;}
.ax-tutorial-card p {font-size:15px;line-height:1.75;color:var(--ax-ui-muted,#596780);}
.ax-tutorial-card a {text-decoration:none;color:var(--ax-ui-accent,#5350bd);}
.ax-tutorial-card a:hover {text-decoration:underline;text-underline-offset:4px;}
.ax-topic-label {text-transform:uppercase;font-size:12px!important;font-weight:750;letter-spacing:.12em;color:var(--ax-ui-accent,#5350bd)!important;}
.ax-text-cta {display:inline-flex;align-items:center;gap:12px;font-weight:650;font-size:14px;}
.ax-guide-search {max-width:680px;margin:28px 0 12px;}
.ax-guide-search label {display:block;margin-bottom:9px;font-weight:650;color:var(--ax-ui-ink,#1b2540);}
.ax-guide-search>div {display:flex;gap:10px;}
.ax-guide-search input {min-width:0;flex:1;padding:14px 16px;font:inherit;border:1px solid var(--ax-ui-line,#e2e8f2);border-radius:11px;background:var(--white,#fff);color:var(--ax-ui-ink,#1b2540);}
.ax-guide-search button,.ax-tool-cta {display:inline-flex;align-items:center;padding:13px 19px;border:0;border-radius:11px;background:#5350bd;color:#fff!important;font:inherit;font-weight:650;text-decoration:none!important;cursor:pointer;}
.ax-search-count {font-size:14px!important;color:var(--ax-ui-muted,#596780);}
.ax-article-toc {padding:22px 26px;border:1px solid var(--ax-ui-line,#e2e8f2);border-radius:16px;background:var(--paper,#f8faff);margin-block:26px;}
.ax-article-toc>p {font-weight:700;margin:0 0 10px;}
.ax-article-toc ul {columns:2;column-gap:32px;margin:0;padding-left:19px;}
.ax-article-toc li {break-inside:avoid;}
.ax-guide-article {max-width:80ch;}
.ax-guide-article h2 {scroll-margin-top:28px;}
.ax-guide-article :is(p,li) {line-height:1.85;}
.ax-guide-article pre {background:#152239!important;color:#edf3ff!important;}
.ax-guide-article code {overflow-wrap:anywhere;font-size:.92em;}
.ax-policy-content .ax-content-card {max-width:85ch;}
.ax-home-suggestions .ax-tutorial-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
@media(min-width:641px) and (max-width:1000px){
 body.ax-reference-public:has(.ax-home-suggestions) .header-inner {box-sizing:border-box;max-width:100%;gap:12px;padding-inline:24px;}
 body.ax-reference-public:has(.ax-home-suggestions) .header-inner nav {min-width:0;gap:8px 12px;flex-wrap:wrap;}
 body.ax-reference-public:has(.ax-home-suggestions) .header-inner nav a {font-size:12px;}
 body.ax-reference-public:has(.ax-home-suggestions) .header-inner .brand img {max-width:130px;height:auto;}
 body.ax-reference-public:has(.ax-home-suggestions) .header-inner .theme-toggle {padding-inline:8px;}
 body.ax-reference-public:has(.ax-home-suggestions) .hero-art {overflow:clip;}
}
@media(max-width:1000px){.ax-tutorial-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.ax-tutorial-grid,.ax-home-suggestions .ax-tutorial-grid{grid-template-columns:1fr;gap:14px;}.ax-tutorial-card{padding:22px;}.ax-guide-search>div{flex-direction:column;}.ax-guide-search button{justify-content:center;}.ax-article-toc ul{columns:1;}}
@media(prefers-reduced-motion:no-preference){.ax-tutorial-card{transition:border-color .18s ease,box-shadow .18s ease;}.ax-tutorial-card:hover{border-color:#b8b2e5;box-shadow:0 8px 24px #2034550c;}}
