/* 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;}
