:root{--bg:#fff;--alt:#f4f7f7;--text:#14211f;--muted:#55635f;--line:#dbe3e1;--brand:#0f766e;--brand-d:#0b5a54;--ok:#166534;--err:#b91c1c;--r:10px;--max:960px;--font:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:64px;-webkit-text-size-adjust:100%}
body{margin:0;font:1rem/1.6 var(--font);color:var(--text);background:var(--bg)}
h1,h2,h3{line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(1.75rem,6vw,2.75rem);letter-spacing:-.02em}
h2{font-size:clamp(1.4rem,4vw,1.9rem)}
h3{font-size:1.1rem}
p{margin:0 0 1em}
a{color:var(--brand)}
code{font-size:.95em}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1rem}
.narrow{max-width:720px}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;background:#fff;padding:.5rem 1rem;z-index:10}
.skip:focus{left:.5rem;top:.5rem}
:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}

.site-header{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:56px}
.brand{font-weight:800;text-decoration:none;color:var(--text);font-size: 28px;}
.brand span{color:var(--brand)}
.bar nav{display:flex;gap:1rem;font-size:.95rem}
.bar nav a{text-decoration:none;color:var(--muted);padding:.5rem 0}
.bar nav a:hover{color:var(--brand)}
@media(max-width:560px){.bar nav a:nth-child(n+3){display:none}}

.hero{padding:2rem 0 2.5rem;background:var(--alt);border-bottom:1px solid var(--line)}
.lead{font-size:1.1rem;color:var(--muted);max-width:60ch}
.tool{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.25rem;max-width:640px}
.tool-head{margin-bottom:.75rem}
.label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.4rem}
.seg{display:flex;flex-wrap:wrap;gap:.5rem}
.seg-btn{font:inherit;font-size:.9rem;padding:.6rem .8rem;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:8px;cursor:pointer;color:var(--text)}
.seg-btn[aria-pressed=true]{border-color:var(--brand);background:#e6f4f2;font-weight:700;box-shadow:inset 0 0 0 1px var(--brand)}
.preview{font-size:.9rem;margin:.75rem 0}
.box{display:inline-block;min-width:2.2em;height:1.6em;vertical-align:middle;border:2px dashed var(--brand);border-radius:4px}

.btn{font:inherit;font-weight:600;padding:.7rem 1.1rem;min-height:44px;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:8px;cursor:pointer}
.btn:hover{border-color:var(--brand)}
.btn-sm{padding:.4rem .8rem;min-height:36px;font-size:.9rem}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-d);border-color:var(--brand-d)}
.btn-xl{width:100%;min-height:60px;font-size:1.3rem}
.btn.done{background:var(--ok);border-color:var(--ok);color:#fff}
.status{min-height:1.5em;margin:.6rem 0 0;font-weight:600}
.status.err{color:var(--err)}
.status.ok{color:var(--ok)}

.manual{margin-top:.75rem;border-top:1px solid var(--line);padding-top:.75rem}
.manual summary,details summary{cursor:pointer;font-weight:600;padding:.4rem 0}
.row{display:flex;gap:.5rem}
.field{width:100%;font:inherit;font-size:1rem;padding:.7rem;border:2px solid var(--brand);border-radius:8px;background:#fff;color:var(--text)}
textarea.field{resize:vertical}

.section{padding:2.5rem 0}
.section.alt{background:var(--alt)}
.steps{padding-left:1.2rem;display:grid;gap:.5rem}
.shown{margin:.75rem 0}
.bars{border:1px solid var(--line);background:#fff;padding:.2rem .5rem;border-radius:4px;white-space:pre-wrap;word-break:break-all}
.result{font-weight:600}
.result.ok{color:var(--ok)}
.result.warn{color:var(--err)}
.stats{display:flex;gap:1.5rem;margin:1rem 0}
.stats dt{font-size:.85rem;color:var(--muted)}
.stats dd{margin:0;font-size:1.5rem;font-weight:700}

.table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:var(--r)}
table{width:100%;border-collapse:collapse;font-size:.95rem}
th,td{padding:.6rem .5rem;text-align:left;border-bottom:1px solid var(--line)}
td:first-child,td:last-child{white-space:nowrap}
th{background:var(--alt);font-size:.85rem}
tr:last-child td{border-bottom:0}

.uses{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:1rem 0}
.uses article{border-left:3px solid var(--brand);padding-left:1rem}
.note{font-size:.9rem;color:var(--muted)}
.narrow details{border-bottom:1px solid var(--line);padding:.4rem 0}
.narrow details p{margin:.4rem 0 .8rem;color:var(--muted)}

.site-footer{border-top:1px solid var(--line);padding:1.5rem 0;font-size:.9rem;color:var(--muted)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:.5rem}
.site-footer p{margin:.5rem 0 0}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{overflow-x:clip}

@media(max-width:560px){
  table{font-size:.9rem}
  th:nth-child(3),td:nth-child(3){display:none} /* hides the "Ancho" column on phones */
}