/* Public reading pages. Shared brand primitives live in studio.css. */
[data-lang="es"] { display:none; }
html[lang="es"] [data-lang="en"] { display:none; }
html[lang="es"] [data-lang="es"] { display:revert; }
.doc-page { overflow-x:clip; }
.doc-page .header { border-bottom-color:var(--line); }
.doc-page .navigation a[aria-current="page"] { color:var(--blue); }
.doc-masthead { position:relative; overflow:hidden; padding:58px var(--gutter) 62px; background:var(--blue); color:var(--paper); }
.doc-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:11px; margin-bottom:39px; font:400 10px/1.8 var(--mono); }
.doc-breadcrumb a { opacity:.8; }
.doc-breadcrumb a:hover { opacity:1; text-decoration:underline; text-underline-offset:4px; }
.doc-breadcrumb>span[aria-hidden] { opacity:.5; }
.doc-masthead .eyebrow { color:var(--lime); }
.doc-masthead h1 { max-width:1000px; font:800 clamp(46px,7.4vw,106px)/1.03 var(--sans); letter-spacing:-.065em; margin:18px 0 24px; }
.doc-masthead .doc-lead { max-width:690px; font:400 clamp(16px,1.55vw,20px)/1.6 var(--sans); color:#e0e3ff; }
.doc-meta { display:flex; flex-wrap:wrap; gap:10px 23px; margin-top:30px; font:400 9px/1.8 var(--mono); color:#d1d5ff; }
.doc-comet { width:200px; height:200px; position:absolute; right:5%; bottom:-86px; opacity:.15; pointer-events:none; transform:rotate(-18deg); }
.doc-layout { display:grid; grid-template-columns:230px minmax(0,800px); gap:clamp(35px,6vw,95px); max-width:1390px; margin:auto; padding:62px var(--gutter) 95px; align-items:start; }
.doc-sidebar { position:sticky; top:120px; }
.doc-sidebar .eyebrow { color:#72766b; margin-bottom:18px; }
.doc-index { display:flex; flex-direction:column; gap:3px; }
.doc-index a { display:flex; align-items:baseline; gap:12px; padding:9px 12px; border-left:2px solid transparent; font:500 12px/1.5 var(--sans); color:#606456; transition:color .15s,background .15s; }
.doc-index a>span:first-child { font:400 9px var(--mono); color:#868b7e; }
.doc-index a:hover { color:var(--blue); background:#e8e8dd; }
.doc-index a.is-active { color:var(--blue); background:#e6e7f4; border-left-color:var(--blue); }
.doc-sidebar-links { border-top:1px solid var(--line); margin-top:27px; padding-top:17px; display:flex; flex-direction:column; gap:10px; font:500 11px/1.5 var(--sans); }
.doc-sidebar-links a:hover { color:var(--blue); }
.doc-article { min-width:0; }
.doc-section { padding-bottom:42px; margin-bottom:40px; border-bottom:1px solid var(--line); scroll-margin-top:120px; }
.doc-section:last-of-type { margin-bottom:0; }
.doc-section h2 { font-size:clamp(25px,2.5vw,34px); line-height:1.25; letter-spacing:-.045em; margin-bottom:20px; font-weight:800; }
.doc-section h3 { font-size:18px; line-height:1.4; letter-spacing:-.025em; margin:27px 0 12px; }
.doc-section p,.doc-section li { font-size:15px; line-height:1.9; color:#53584b; }
.doc-section p+p { margin-top:15px; }
.doc-section strong,.doc-section b { color:var(--ink); font-weight:700; }
.doc-section ul,.doc-section ol { padding-left:22px; margin:17px 0; }
.doc-section li+li { margin-top:9px; }
.doc-section li::marker { color:var(--blue); }
.doc-section a:not(.doc-card) { color:var(--blue); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; overflow-wrap:anywhere; }
.doc-section code { font:400 12px/1.7 var(--mono); background:#e8e9de; padding:3px 6px; border-radius:3px; overflow-wrap:anywhere; }
.doc-callout { background:var(--lavender); border-left:3px solid var(--blue); padding:22px 24px; margin:24px 0; }
.doc-callout p { color:#37394b; font-size:14px; }
.doc-callout .eyebrow { display:block; color:var(--blue); margin-bottom:9px; }
.doc-callout.lime-callout { background:var(--lime); }
.doc-callout.coral-callout { background:#f8d7c8; border-color:#d85b2c; }
.doc-table-wrap { overflow-x:auto; margin:23px 0; border:1px solid var(--line); border-radius:4px; }
.doc-table-wrap:focus-visible { outline-offset:3px; }
.doc-table { width:100%; border-collapse:collapse; font-size:13px; text-align:left; }
.doc-table th { background:#e7e8dc; color:#484e3c; font:500 10px/1.6 var(--mono); padding:15px 17px; }
.doc-table td { padding:17px; border-top:1px solid var(--line); color:#53584b; vertical-align:top; line-height:1.7; }
.doc-table td:first-child { color:var(--ink); font-weight:600; }
.doc-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:24px; }
.doc-card { background:#e9eadf; border:1px solid transparent; padding:23px; min-height:165px; transition:border-color .2s,transform .2s; }
.doc-card:hover { border-color:var(--blue); transform:translateY(-2px); }
.doc-card .eyebrow { color:var(--blue); margin-bottom:15px; }
.doc-card h3 { margin:0 0 9px; font-size:20px; }
.doc-card p { font-size:13px; line-height:1.7; }
.doc-next { margin-top:42px; padding:25px 28px; background:var(--ink); color:var(--paper); display:flex; justify-content:space-between; gap:25px; align-items:center; }
.doc-next p { font:700 19px/1.4 var(--sans); letter-spacing:-.03em; margin-top:5px; }
.doc-next>span { font-size:35px; color:var(--lime); }
.doc-page .footer { padding:37px var(--gutter) 27px; }
.doc-page .footer-top { gap:40px; margin-bottom:35px; }
.doc-page .footer-top>p { font-size:13px; }
.doc-page .footer-bottom { font-size:10px; }
.doc-page .footer-risk { font-size:10px; max-width:940px; }
@media(min-width:1700px) { .doc-layout { grid-template-columns:245px minmax(0,800px); max-width:1500px; } }
@media(max-width:1000px) { .doc-layout { grid-template-columns:185px minmax(0,1fr); gap:35px; padding-left:30px; padding-right:30px; } .doc-index a { font-size:11px; } .doc-page .footer-bottom { flex-wrap:wrap; } }
@media(max-width:760px) {
  .doc-masthead { padding:35px 23px 43px; }
  .doc-masthead h1 { font-size:clamp(43px,9.5vw,70px); max-width:660px; }
  .doc-breadcrumb { margin-bottom:28px; }
  .doc-meta { font-size:8px; }
  .doc-layout { display:block; padding:31px 23px 60px; }
  .doc-sidebar { position:static; border-bottom:1px solid var(--line); padding-bottom:28px; margin-bottom:37px; }
  .doc-sidebar .eyebrow { margin-bottom:10px; }
  .doc-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 8px; }
  .doc-index a { padding:8px 7px; font-size:11px; gap:8px; }
  .doc-sidebar-links { flex-direction:row; gap:23px; margin-top:19px; padding-top:17px; flex-wrap:wrap; }
  .doc-section { scroll-margin-top:94px; margin-bottom:30px; padding-bottom:30px; }
  .doc-section p,.doc-section li { font-size:14px; }
  .doc-section h2 { font-size:27px; }
  .doc-table { min-width:460px; font-size:12px; }
  .doc-callout { padding:20px; }
  .doc-page .footer-top { gap:24px; align-items:flex-start; flex-wrap:wrap; }
  .doc-page .footer-top>p { font-size:11px; }
  .doc-page .footer-up { width:40px; height:40px; }
  .doc-page .footer-bottom { align-items:flex-start; gap:20px; font-size:9px; }
  .doc-page .footer-bottom nav { flex-wrap:wrap; gap:15px; }
  .doc-page .footer-risk { font-size:9px; }
}
@media(max-width:420px) { .doc-card-grid { grid-template-columns:1fr; } .doc-index { column-gap:0; } .doc-next { padding:23px; } .doc-next p { font-size:17px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .doc-page *, .doc-page *::before,.doc-page *::after { transition:none!important; } }
@media (prefers-reduced-motion: no-preference) {
  .doc-masthead h1 { animation: doc-arrival .8s cubic-bezier(.2,.7,.1,1) both; }
  .doc-masthead .doc-lead { animation: doc-arrival .8s .1s cubic-bezier(.2,.7,.1,1) both; }
  @keyframes doc-arrival { from { opacity: .5; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
}
