/* Marco comun del portal (/docs y /docs/how-it-works) sobre Rotoplas Glass.
   Solo tokens --rtp-*: colores, fuentes, radios y sombras cambian con la paleta y el tema.
   El contenido va dentro de <main> > .rtp-container.doc; los estilos de lectura se limitan a .doc
   para no pisar los componentes del sistema (rtp-table, rtp-topbar, rtp-card...). */

.doc { padding-bottom: 72px; }
/* scroll-margin: la .rtp-topbar queda fija arriba al desplazar; la seccion destino no debe quedar debajo */
.doc section { margin: 0 0 48px; scroll-margin-top: 170px; }
.doc h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--rtp-t1); margin: 0; }
.doc h3 { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rtp-t2); margin: 28px 0 12px; }
.doc h4 { font-size: .95rem; font-weight: 700; color: var(--rtp-t1); margin: 0 0 8px; }
.doc h5 { font-family: var(--rtp-font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rtp-t2); margin: 16px 0 8px; }
.doc p { margin: 0 0 14px; max-width: 78ch; line-height: 1.65; color: var(--rtp-t1); }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0 0 14px; max-width: 78ch; line-height: 1.6; }
.doc li { margin-bottom: 6px; }
.doc a:not(.rtp-btn) { color: var(--rtp-green); }
.doc small { color: var(--rtp-t2); }

/* Codigo: en linea sobre vidrio; bloques sobre tinta de la marca en ambos temas */
.doc code { font-family: var(--rtp-font-mono); font-size: .84em; background: var(--rtp-track); border-radius: 6px; padding: .08em .38em; color: var(--rtp-t1); }
.doc pre { font-family: var(--rtp-font-mono); background: var(--rtp-ink); color: var(--rtp-on-ink); border-radius: var(--rtp-r-sm); padding: 16px 18px; font-size: .8rem; line-height: 1.65; overflow-x: auto; margin: 0 0 16px; box-shadow: var(--rtp-sh-card); }
.doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }

/* Cabecera de seccion */
.doc-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rtp-track); }

/* Avisos dentro del texto */
.doc-callout { border-left: 3px solid var(--rtp-green); background: color-mix(in srgb, var(--rtp-green) 10%, transparent); border-radius: 0 var(--rtp-r-sm) var(--rtp-r-sm) 0; padding: 12px 16px; margin: 16px 0; font-size: .9rem; color: var(--rtp-t1); }
.doc-callout.ok { border-color: var(--rtp-ok); background: color-mix(in srgb, var(--rtp-ok) 10%, transparent); }
.doc-callout.warn { border-color: var(--rtp-warn); background: color-mix(in srgb, var(--rtp-warn) 12%, transparent); }
.doc-callout.err { border-color: var(--rtp-err); background: color-mix(in srgb, var(--rtp-err) 10%, transparent); }
.doc-callout strong { font-family: var(--rtp-font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* Tablas del portal: rtp-table-card a todo el ancho del contenedor, sin paginar */
.doc .rtp-table-card { margin: 0 0 16px; }
.doc .rtp-table td { white-space: normal; vertical-align: top; }
.doc .rtp-table td code { white-space: nowrap; }

/* Pie */
.doc-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rtp-track); color: var(--rtp-t2); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
