/* Atelier 2.2.6 · sistema transversal. Se carga después de Core y atelier-system.
 * La tinta del contenido se normaliza; NO se recolorean trazos ni leyendas SVG/canvas
 * ni estados semánticos de alarmas, polaridades o fases. */
body.kv-sketch-style {
  --atelier-paper:#f6eddd; --atelier-surface:#fcf8f0; --atelier-quiet:#eee3d1;
  --atelier-ink:#35322e; --atelier-pencil:#514b45; --atelier-secondary:#615a52;
  --atelier-line:#cbbda8; --atelier-accent:#66584a;
  --atelier-serif:'EB Garamond',Georgia,serif;
  --atelier-label:'DM Sans','Segoe UI',Arial,sans-serif;
  --atelier-hand:'Caveat','Segoe Print',cursive;
}
/* Los elementos de interacción y los textos de lectura comparten lenguaje */
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs,.kv-article,.kv-academy-page,.kv-portal-inner,.kv-calculator,.kv-home-portal) {
  color:var(--atelier-ink);
  --kvv-navy:#35322e; --kvv-deep:#514b45; --kvv-ink:#35322e;
  --kvv-sub:#615a52; --kvv-cyan:#66584a; --kvv-amber:#6a5b4b;
  --kvv-paper:#f6eddd;
}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs,.kv-article,.kv-academy-page,.kv-portal-inner,.kv-calculator) :is(h1,h2,h3,h4) {
  font-family:var(--atelier-serif)!important; color:var(--atelier-ink)!important;
  letter-spacing:-.018em!important; line-height:1.2!important; font-weight:500!important;
  text-wrap:balance;
}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) h1{font-size:clamp(2.15rem,4vw,3.65rem)!important}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) h2{font-size:clamp(1.65rem,2.6vw,2.45rem)!important}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) h3{font-size:clamp(1.3rem,2vw,1.8rem)!important}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) :is(p,li,dt,dd){color:var(--atelier-pencil);line-height:1.62}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs,.kv-academy-page,.kv-portal-inner) :is(button,input,select,textarea,label,output,table,th,td,summary){font-family:var(--atelier-label)!important}
/* Enlaces legibles sin azul ni naranja decorativos. Los controles de simulación conservan su interacción. */
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs,.kv-article,.kv-academy-page,.kv-portal-inner,.kv-calculator) a:not(.kv-logo):not(.kv-card):not(.kv-portal-card){color:var(--atelier-ink)!important;text-decoration-color:#988674;text-underline-offset:.2em}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs,.kv-article,.kv-academy-page,.kv-portal-inner,.kv-calculator) a:hover{color:#292520!important;text-decoration-color:#514b45}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) :is(.kvv-kicker,.kvsci-kicker,.kvsci-stage-bar,.kvv-wave-caption,.kvv-time-year,.kvv-feature-grid a>span,.kvv-feature-grid strong,.kvv-link-grid a span,.kvv-lab-nav a span,.kvv-control output,.kvv-results>span,.kvv-results>strong,.kvv-machine-links a,.kvv-time-links a,.kvv-hero-art strong,.kvv-hero-art small,.kvv-results code,.kvv-caveat,.kvv-timeline .kvv-principle){color:var(--atelier-ink)!important}
/* Las cajas azul oscuro de la academia visual pasan a papel */
body.kv-sketch-style :is(.kvv-hero,.kvv-inner-hero,.kvv-machine,.kvv-controls,.kvv-diagram,.kvv-machine>.kvv-caveat,.kvv-timeline article,.kvv-feature-grid a,.kvv-link-grid a,.kvv-lab-nav a,.kvv-caveat,.kvv-machine .kvv-results,.kvv-filter button,.kvv-bottom-link a,.kvv-actions a,.kvv-hero-art){background:#fcf8f0!important;background-image:none!important;color:var(--atelier-ink)!important;border:1px solid var(--atelier-line)!important;box-shadow:none!important;text-shadow:none!important}
body.kv-sketch-style :is(.kvv-hero,.kvv-inner-hero,.kvv-machine) :is(h1,h2,h3,p,small,strong,em,span){color:var(--atelier-ink)!important}
body.kv-sketch-style .kvv-hero-art{background:#f2e8d8!important}
body.kv-sketch-style .kvv-rings{border-color:#847665!important;box-shadow:0 0 0 24px #82736010,0 0 0 50px #8273600a!important}
body.kv-sketch-style .kvv-controls{background:#f4e9d9!important}
body.kv-sketch-style .kvv-machine .kvv-results{border-width:1px 0 0!important;border-radius:0;padding-top:1rem!important}
body.kv-sketch-style .kvv-diagram{background:#f7edde!important}
body.kv-sketch-style .kvv-wave{border-top-color:var(--atelier-line)!important}
body.kv-sketch-style :is(.kvv-feature-grid a,.kvv-lab-nav a,.kvv-link-grid a,.kvv-bottom-link a,.kvv-actions a,.kvv-filter button){border-radius:8px!important}
body.kv-sketch-style .kvv-filter button[aria-pressed="true"]{background:#e2d4bf!important;border-color:#7c6d5d!important;color:var(--atelier-ink)!important}
body.kv-sketch-style .kvv-timeline{border-left-color:#b6a691!important}
body.kv-sketch-style .kvv-timeline>li:before{background:#746758!important;border-color:#f7edde!important}
body.kv-sketch-style .kvv-caveat{border-left:3px solid #8e7f6c!important;font:500 clamp(1.15rem,1.9vw,1.35rem)/1.35 var(--atelier-hand)!important}
body.kv-sketch-style .kvv-control>span,body.kv-sketch-style .kvv-results>p{color:var(--atelier-pencil)!important}
body.kv-sketch-style .kvv-control input[type="range"]{accent-color:#6f6254!important}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) :is(input:not([type="range"]),select,textarea){background:#fffaf1!important;border-color:#b9aa95!important;color:var(--atelier-ink)!important}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) button:not(.kv-sub-toggle){background:#eee3d1!important;border-color:#b9aa95!important;color:var(--atelier-ink)!important;text-shadow:none!important}
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst,.kvad,.kvlearn,.kvs) button[aria-pressed="true"]{background:#e2d4bf!important;border-color:#786b5c!important}
/* Letras sobre SVG: solo texto, nunca trazados científicos ni colores de magnitudes. */
body.kv-sketch-style :is(.kvv,.kvsci,.kvx,.kvbl,.kvkg,.kvst) svg text:not([data-semantic-color]){font-family:var(--atelier-label)!important;fill:#514b45}
/* La nota manuscrita es una función editorial, no un estilo indiscriminado */
body.kv-sketch-style :is(.kvv-caveat,.kvsci-hand,.kv-sketch-hand,.kv-handnote,.kv-note-hand,.kv-pencil-note){font-family:var(--atelier-hand)!important;font-size:clamp(1.15rem,1.9vw,1.35rem)!important;letter-spacing:0!important;text-transform:none!important;color:var(--atelier-pencil)!important}
/* Portada, enlaces de la propia plantilla y pie: evitar retornos al azul legado. */
body.kv-sketch-style :is(.kv-article .entry-content a,.kv-footer a,.kv-latest a,.kv-card-arrow,.kv-card-number,.kv-highlight-box strong,.kv-pill,.kv-article .kv-category){color:var(--atelier-ink)!important}
body.kv-sketch-style :is(.kv-highlight-box,.kv-footer,.kv-archive-head){background:#e8dac5!important;color:var(--atelier-ink)!important}
body.kv-sketch-style :is(.kv-highlight-box,.kv-footer,.kv-archive-head) :is(p,small,span,strong,h1,h2,h3,a){color:var(--atelier-ink)!important}
body.kv-sketch-style .kv-highlight-box .kv-formula{background:#f8efe1!important;color:var(--atelier-ink)!important;border:1px solid var(--atelier-line)!important}
body.kv-sketch-style :is(.kv-article,.kv-academy-page,.kv-portal-inner,.kvv,.kvsci) :is(a,button,input,select,textarea):focus-visible{outline:2px solid #63594f!important;outline-offset:3px}
@media(max-width:760px){body.kv-sketch-style :is(.kvv-machine-grid,.kvv-hero,.kvv-feature-grid){grid-template-columns:1fr!important}body.kv-sketch-style :is(.kvv,.kvsci) :is(svg,canvas,img){max-width:100%}}
@media(prefers-reduced-motion:reduce){body.kv-sketch-style :is(.kvv,.kvsci) *,body.kv-sketch-style :is(.kvv,.kvsci) *::before{transition:none!important}}

/* Atelier 2.2.7: capítulos de lectura larga, con contenido garantizado por Core. */
body.kv-atelier-sketchbook .kv-article-academy .kv-chapter-reading{display:block;visibility:visible;opacity:1;max-height:none;height:auto;overflow:visible;max-width:830px;margin:32px auto 70px;color:#35322e;font-family:'DM Sans',sans-serif;font-size:clamp(16px,1.35vw,18px);line-height:1.75}
body.kv-atelier-sketchbook .kv-chapter-reading .kv-chapter-longform{display:block;max-height:none;overflow:visible;background:transparent;color:inherit}
body.kv-atelier-sketchbook .kv-chapter-reading .kv-chapter-longform>h2{font-family:'EB Garamond',Georgia,serif;font-weight:600;color:#35322e;font-size:clamp(29px,3vw,39px);line-height:1.2;margin:1.5em 0 .5em}
body.kv-atelier-sketchbook .kv-chapter-reading .kv-chapter-longform>p{color:#48433d;max-width:72ch;margin:.8em 0 1.2em}
body.kv-atelier-sketchbook .kv-chapter-reading .kv-chapter-longform strong{color:#33302b}
body.kv-atelier-sketchbook .kv-chapter-reading .kv-chapter-longform a{color:#35322e;text-decoration:underline;text-decoration-color:#9e9284;text-underline-offset:3px}
body.kv-atelier-sketchbook .kv-chapter-reading .kv-chapter-longform code{color:#35322e;background:#eee5d6}
@media(max-width:700px){body.kv-atelier-sketchbook .kv-article-academy .kv-chapter-reading{font-size:16px;line-height:1.7;margin-top:22px}}
