techsical 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. techsical/__init__.py +22 -0
  2. techsical/theme/assets/fonts/OFL-JetBrainsMono.txt +93 -0
  3. techsical/theme/assets/fonts/OFL-Manrope.txt +93 -0
  4. techsical/theme/assets/fonts/OFL-SourceSerif4.txt +93 -0
  5. techsical/theme/assets/fonts/jetbrains-mono-greek-wght-italic.woff2 +0 -0
  6. techsical/theme/assets/fonts/jetbrains-mono-greek-wght-normal.woff2 +0 -0
  7. techsical/theme/assets/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
  8. techsical/theme/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  9. techsical/theme/assets/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
  10. techsical/theme/assets/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  11. techsical/theme/assets/fonts/manrope-greek-wght-normal.woff2 +0 -0
  12. techsical/theme/assets/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
  13. techsical/theme/assets/fonts/manrope-latin-wght-normal.woff2 +0 -0
  14. techsical/theme/assets/fonts/source-serif-4-greek-wght-italic.woff2 +0 -0
  15. techsical/theme/assets/fonts/source-serif-4-greek-wght-normal.woff2 +0 -0
  16. techsical/theme/assets/fonts/source-serif-4-latin-ext-wght-italic.woff2 +0 -0
  17. techsical/theme/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2 +0 -0
  18. techsical/theme/assets/fonts/source-serif-4-latin-wght-italic.woff2 +0 -0
  19. techsical/theme/assets/fonts/source-serif-4-latin-wght-normal.woff2 +0 -0
  20. techsical/theme/assets/javascripts/math.js +31 -0
  21. techsical/theme/assets/stylesheets/fonts.css +142 -0
  22. techsical/theme/assets/stylesheets/techsical.css +956 -0
  23. techsical/theme/home.html +59 -0
  24. techsical/theme/mkdocs_theme.yml +44 -0
  25. techsical/theme/partials/copyright.html +21 -0
  26. techsical/theme/partials/header.html +98 -0
  27. techsical/theme/partials/icons.html +56 -0
  28. techsical/theme/partials/techsical-head.html +48 -0
  29. techsical-0.1.0.dist-info/METADATA +66 -0
  30. techsical-0.1.0.dist-info/RECORD +33 -0
  31. techsical-0.1.0.dist-info/WHEEL +4 -0
  32. techsical-0.1.0.dist-info/entry_points.txt +3 -0
  33. techsical-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,956 @@
1
+ /*
2
+ * techsical: tema editorial técnico para Zensical.
3
+ *
4
+ * Capas de variables (de la más general a la más concreta):
5
+ * 1. Primitivas: escalas de color fijas (--tx-petroleum-*, --tx-slate-*…).
6
+ * 2. Marca: los dos colores que personaliza cada web (--tx-brand-*), con la
7
+ * escala derivada por color-mix().
8
+ * 3. Semánticas: texto, superficies, bordes y estados, por esquema (claro u
9
+ * oscuro). Los componentes solo usan estas.
10
+ * 4. Puente: las variables del tema de Zensical (--md-*) apuntan a las
11
+ * semánticas, así todo lo que pinta Zensical hereda los colores.
12
+ * 5. Componentes: cabecera, artículo, tablas, figuras, notas, código, portada.
13
+ *
14
+ * La web personaliza colores y fuentes en [project.extra.techsical] de su
15
+ * zensical.toml (partials/techsical-head.html los escribe en :root) o en su
16
+ * propia hoja de estilos, que se carga después de esta.
17
+ */
18
+
19
+ /* ==========================================================================
20
+ 1. Primitivas
21
+ ========================================================================== */
22
+
23
+ :root {
24
+ --tx-petroleum-100: #d5e7ec;
25
+ --tx-petroleum-200: #b4d1da;
26
+ --tx-petroleum-300: #8bb7c5;
27
+ --tx-petroleum-400: #5d97ac;
28
+ --tx-petroleum-500: #397a92;
29
+ --tx-petroleum-600: #28657c;
30
+ --tx-petroleum-700: #20556a;
31
+ --tx-petroleum-800: #164e63;
32
+ --tx-petroleum-900: #0b3545;
33
+
34
+ --tx-teal-100: #ccfbf1;
35
+ --tx-teal-200: #99f6e4;
36
+ --tx-teal-300: #5eead4;
37
+ --tx-teal-400: #2dd4bf;
38
+ --tx-teal-500: #14b8a6;
39
+ --tx-teal-600: #0d9488;
40
+ --tx-teal-700: #0f766e;
41
+ --tx-teal-800: #115e59;
42
+ --tx-teal-900: #134e4a;
43
+
44
+ --tx-slate-50: #f8fafc;
45
+ --tx-slate-100: #f1f5f9;
46
+ --tx-slate-200: #e2e8f0;
47
+ --tx-slate-300: #cbd5e1;
48
+ --tx-slate-400: #94a3b8;
49
+ --tx-slate-500: #64748b;
50
+ --tx-slate-600: #475569;
51
+ --tx-slate-700: #334155;
52
+ --tx-slate-800: #1e293b;
53
+ --tx-slate-900: #0f172a;
54
+
55
+ --tx-success-100: #dcfce7;
56
+ --tx-success-300: #86efac;
57
+ --tx-success-500: #22c55e;
58
+ --tx-success-700: #15803d;
59
+ --tx-success-900: #14532d;
60
+ --tx-warning-100: #fef3c7;
61
+ --tx-warning-300: #fcd34d;
62
+ --tx-warning-500: #f59e0b;
63
+ --tx-warning-700: #b45309;
64
+ --tx-warning-900: #78350f;
65
+ --tx-danger-100: #fee2e2;
66
+ --tx-danger-300: #fca5a5;
67
+ --tx-danger-500: #ef4444;
68
+ --tx-danger-700: #b91c1c;
69
+ --tx-danger-900: #7f1d1d;
70
+ --tx-info-100: #e0f2fe;
71
+ --tx-info-300: #7dd3fc;
72
+ --tx-info-500: #0ea5e9;
73
+ --tx-info-700: #0369a1;
74
+ --tx-info-900: #0c4a6e;
75
+
76
+ /* Oscuro: superficies propias, no una inversión del claro. */
77
+ --tx-night-bg: #111c24;
78
+ --tx-night-surface-1: #182630;
79
+ --tx-night-surface-2: #202f3a;
80
+ --tx-night-surface-3: #293b47;
81
+ --tx-night-border: #354957;
82
+ --tx-night-border-strong: #526877;
83
+ --tx-night-text: #f1f5f9;
84
+ --tx-night-text-secondary: #c3d0d8;
85
+ --tx-night-text-muted: #91a4b1;
86
+
87
+ /* ------------------------------------------------------------------------
88
+ Tipografía: serif para el texto y los títulos, sans para la interfaz,
89
+ las tablas y los pies; monoespaciada para código y datos.
90
+ ------------------------------------------------------------------------ */
91
+ --tx-font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
92
+ --tx-font-ui: "Manrope", "Segoe UI", system-ui, sans-serif;
93
+ --tx-font-code: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
94
+
95
+ --tx-size-body: 17px;
96
+ --tx-size-lead: 20px;
97
+ --tx-size-small: 14px;
98
+ --tx-size-caption: 13px;
99
+ --tx-size-code: 0.85em;
100
+ --tx-size-h1: clamp(28px, 2.2vw + 14px, 38px);
101
+ --tx-size-h2: clamp(23px, 1.4vw + 12px, 28px);
102
+ --tx-size-h3: clamp(20px, 0.8vw + 13px, 23px);
103
+ --tx-size-h4: 19px;
104
+ --tx-size-h5: 17px;
105
+ --tx-leading-body: 1.65;
106
+ --tx-leading-heading: 1.25;
107
+ --tx-leading-code: 1.55;
108
+
109
+ /* Espaciado de 4 px. */
110
+ --tx-space-1: 4px;
111
+ --tx-space-2: 8px;
112
+ --tx-space-3: 12px;
113
+ --tx-space-4: 16px;
114
+ --tx-space-5: 20px;
115
+ --tx-space-6: 24px;
116
+ --tx-space-8: 32px;
117
+ --tx-space-10: 40px;
118
+ --tx-space-12: 48px;
119
+ --tx-space-16: 64px;
120
+
121
+ /* Anchos en px: el tema de Zensical agranda el rem en pantallas anchas, y el
122
+ artículo (texto, tablas y código) debe quedarse en unos 70-80 caracteres. */
123
+ --tx-content-max: 720px;
124
+ --tx-figure-max: 640px;
125
+
126
+ --tx-radius: 4px;
127
+ --tx-radius-large: 8px;
128
+ --tx-rule: 1px;
129
+ --tx-motion: 150ms ease-out;
130
+ }
131
+
132
+ /* ==========================================================================
133
+ 2. Marca (lo que personaliza cada web)
134
+ ========================================================================== */
135
+
136
+ :root {
137
+ --tx-brand-primary: var(--tx-petroleum-800);
138
+ --tx-brand-accent: var(--tx-teal-700);
139
+ --tx-brand-primary-dark: #66b7cc;
140
+ --tx-brand-accent-dark: #2cb5a5;
141
+ }
142
+
143
+ /* ==========================================================================
144
+ 3. Semánticas por esquema
145
+ ========================================================================== */
146
+
147
+ :root,
148
+ [data-md-color-scheme="default"] {
149
+ --tx-primary: var(--tx-brand-primary);
150
+ --tx-primary-hover: color-mix(in oklab, var(--tx-brand-primary) 80%, black);
151
+ --tx-primary-soft: color-mix(in oklab, var(--tx-brand-primary) 9%, white);
152
+ --tx-primary-softer: color-mix(in oklab, var(--tx-brand-primary) 5%, white);
153
+ --tx-accent: var(--tx-brand-accent);
154
+ --tx-accent-soft: color-mix(in oklab, var(--tx-brand-accent) 12%, white);
155
+
156
+ --tx-bg: #fff;
157
+ --tx-surface-1: var(--tx-slate-50);
158
+ --tx-surface-2: var(--tx-slate-100);
159
+ --tx-surface-3: var(--tx-slate-200);
160
+ --tx-border: var(--tx-slate-200);
161
+ --tx-border-strong: var(--tx-slate-300);
162
+ --tx-text: var(--tx-slate-900);
163
+ --tx-text-secondary: var(--tx-slate-700);
164
+ --tx-text-muted: var(--tx-slate-600);
165
+ --tx-link: var(--tx-primary);
166
+ --tx-link-hover: var(--tx-accent);
167
+ --tx-focus: var(--tx-accent);
168
+
169
+ --tx-header-bg: var(--tx-brand-primary);
170
+ --tx-header-fg: #fff;
171
+ --tx-header-fg-muted: color-mix(in oklab, white 78%, var(--tx-brand-primary));
172
+ --tx-header-rule: color-mix(in oklab, white 35%, var(--tx-brand-primary));
173
+
174
+ --tx-code-bg: var(--tx-slate-100);
175
+ --tx-code-fg: var(--tx-slate-800);
176
+
177
+ --tx-success-bg: var(--tx-success-100);
178
+ --tx-success-fg: var(--tx-success-900);
179
+ --tx-success-icon: var(--tx-success-700);
180
+ --tx-warning-bg: var(--tx-warning-100);
181
+ --tx-warning-fg: var(--tx-warning-900);
182
+ --tx-warning-icon: var(--tx-warning-700);
183
+ --tx-danger-bg: var(--tx-danger-100);
184
+ --tx-danger-fg: var(--tx-danger-900);
185
+ --tx-danger-icon: var(--tx-danger-700);
186
+ --tx-info-bg: var(--tx-info-100);
187
+ --tx-info-fg: var(--tx-info-900);
188
+ --tx-info-icon: var(--tx-info-700);
189
+ }
190
+
191
+ [data-md-color-scheme="slate"] {
192
+ --tx-primary: var(--tx-brand-primary-dark);
193
+ --tx-primary-hover: color-mix(in oklab, var(--tx-brand-primary-dark) 75%, white);
194
+ --tx-primary-soft: color-mix(in oklab, var(--tx-brand-primary-dark) 18%, var(--tx-night-bg));
195
+ --tx-primary-softer: color-mix(in oklab, var(--tx-brand-primary-dark) 9%, var(--tx-night-bg));
196
+ --tx-accent: var(--tx-brand-accent-dark);
197
+ --tx-accent-soft: color-mix(in oklab, var(--tx-brand-accent-dark) 18%, var(--tx-night-bg));
198
+
199
+ --tx-bg: var(--tx-night-bg);
200
+ --tx-surface-1: var(--tx-night-surface-1);
201
+ --tx-surface-2: var(--tx-night-surface-2);
202
+ --tx-surface-3: var(--tx-night-surface-3);
203
+ --tx-border: var(--tx-night-border);
204
+ --tx-border-strong: var(--tx-night-border-strong);
205
+ --tx-text: var(--tx-night-text);
206
+ --tx-text-secondary: var(--tx-night-text-secondary);
207
+ --tx-text-muted: var(--tx-night-text-muted);
208
+ --tx-link: var(--tx-primary);
209
+ --tx-link-hover: color-mix(in oklab, var(--tx-brand-primary-dark) 70%, white);
210
+ --tx-focus: var(--tx-accent);
211
+
212
+ --tx-header-bg: var(--tx-night-surface-1);
213
+ --tx-header-fg: var(--tx-night-text);
214
+ --tx-header-fg-muted: var(--tx-night-text-secondary);
215
+ --tx-header-rule: var(--tx-night-border-strong);
216
+
217
+ --tx-code-bg: var(--tx-night-surface-2);
218
+ --tx-code-fg: var(--tx-night-text);
219
+
220
+ --tx-success-bg: color-mix(in oklab, var(--tx-success-500) 16%, var(--tx-night-bg));
221
+ --tx-success-fg: var(--tx-success-100);
222
+ --tx-success-icon: var(--tx-success-300);
223
+ --tx-warning-bg: color-mix(in oklab, var(--tx-warning-500) 16%, var(--tx-night-bg));
224
+ --tx-warning-fg: var(--tx-warning-100);
225
+ --tx-warning-icon: var(--tx-warning-300);
226
+ --tx-danger-bg: color-mix(in oklab, var(--tx-danger-500) 16%, var(--tx-night-bg));
227
+ --tx-danger-fg: var(--tx-danger-100);
228
+ --tx-danger-icon: var(--tx-danger-300);
229
+ --tx-info-bg: color-mix(in oklab, var(--tx-info-500) 16%, var(--tx-night-bg));
230
+ --tx-info-fg: var(--tx-info-100);
231
+ --tx-info-icon: var(--tx-info-300);
232
+ }
233
+
234
+ /* ==========================================================================
235
+ 4. Puente con las variables de Zensical
236
+ ========================================================================== */
237
+
238
+ :root,
239
+ [data-md-color-scheme="default"],
240
+ [data-md-color-scheme="slate"] {
241
+ --md-text-font: "Manrope";
242
+ --md-code-font: "JetBrains Mono";
243
+ --md-text-font-family: var(--tx-font-ui);
244
+ --md-code-font-family: var(--tx-font-code);
245
+
246
+ --md-primary-fg-color: var(--tx-primary);
247
+ --md-primary-fg-color--light: var(--tx-primary);
248
+ --md-primary-fg-color--dark: var(--tx-primary-hover);
249
+ --md-primary-bg-color: var(--tx-header-fg);
250
+ --md-accent-fg-color: var(--tx-accent);
251
+ --md-accent-fg-color--transparent: var(--tx-accent-soft);
252
+
253
+ --md-default-bg-color: var(--tx-bg);
254
+ --md-default-fg-color: var(--tx-text);
255
+ --md-default-fg-color--light: var(--tx-text-muted);
256
+ --md-default-fg-color--lighter: var(--tx-border-strong);
257
+ --md-default-fg-color--lightest: var(--tx-border);
258
+
259
+ --md-typeset-color: var(--tx-text);
260
+ --md-typeset-a-color: var(--tx-link);
261
+ --md-typeset-table-color: var(--tx-border);
262
+ --md-typeset-table-color--light: var(--tx-surface-1);
263
+ --md-code-bg-color: var(--tx-code-bg);
264
+ --md-code-fg-color: var(--tx-code-fg);
265
+ --md-admonition-fg-color: var(--tx-text);
266
+ --md-footer-bg-color: var(--tx-bg);
267
+ --md-footer-fg-color: var(--tx-text-secondary);
268
+
269
+ /* Diagramas Mermaid con los colores del tema. */
270
+ --md-mermaid-font-family: var(--tx-font-ui);
271
+ --md-mermaid-node-bg-color: var(--tx-primary-soft);
272
+ --md-mermaid-node-fg-color: var(--tx-primary);
273
+ --md-mermaid-edge-color: var(--tx-text-secondary);
274
+ --md-mermaid-label-bg-color: var(--tx-bg);
275
+ --md-mermaid-label-fg-color: var(--tx-text);
276
+
277
+ /* Sin sombras decorativas: las superficies se separan con líneas. */
278
+ --md-shadow-z1: 0 0 0 var(--tx-rule) var(--tx-border);
279
+ --md-shadow-z2: 0 0 0 var(--tx-rule) var(--tx-border);
280
+ }
281
+
282
+ body {
283
+ font-family: var(--tx-font-ui);
284
+ background-color: var(--tx-bg);
285
+ color: var(--tx-text);
286
+ }
287
+
288
+ :focus-visible {
289
+ outline: 2px solid var(--tx-focus);
290
+ outline-offset: 2px;
291
+ }
292
+
293
+ @media (prefers-reduced-motion: reduce) {
294
+ *,
295
+ *::before,
296
+ *::after {
297
+ transition-duration: 0s !important;
298
+ animation-duration: 0s !important;
299
+ }
300
+ }
301
+
302
+ /* ==========================================================================
303
+ 5. Componentes
304
+ ========================================================================== */
305
+
306
+ /* --- Cabecera: banda editorial ------------------------------------------- */
307
+
308
+ .md-header {
309
+ color: var(--tx-header-fg);
310
+ background-color: var(--tx-header-bg);
311
+ backdrop-filter: none;
312
+ border-bottom: var(--tx-rule) solid var(--tx-header-rule);
313
+ }
314
+
315
+ .md-header__inner {
316
+ min-height: 3.2rem;
317
+ }
318
+
319
+ .md-header .md-header__button,
320
+ .md-header .md-source,
321
+ .md-header .md-header__option .md-icon {
322
+ color: var(--tx-header-fg);
323
+ }
324
+
325
+ .md-header__title {
326
+ height: 3.2rem;
327
+ line-height: 1.2;
328
+ font-family: var(--tx-font-ui);
329
+ }
330
+
331
+ /* Los dos «temas» del título (marca y título de la página, que se alternan al
332
+ desplazarse) ocupan toda la altura de la banda. */
333
+ .md-header__topic {
334
+ inset-block: 0;
335
+ align-items: center;
336
+ }
337
+
338
+ .tx-brand {
339
+ display: flex;
340
+ align-items: center;
341
+ gap: var(--tx-space-4);
342
+ }
343
+
344
+ .tx-brand__name {
345
+ font-weight: 800;
346
+ font-size: 1rem;
347
+ letter-spacing: 0.01em;
348
+ }
349
+
350
+ .tx-brand__description {
351
+ display: -webkit-box;
352
+ max-width: 20rem;
353
+ padding-left: var(--tx-space-4);
354
+ overflow: hidden;
355
+ font-size: 0.55rem;
356
+ font-weight: 500;
357
+ letter-spacing: 0.06em;
358
+ line-height: 1.35;
359
+ text-transform: uppercase;
360
+ white-space: normal;
361
+ color: var(--tx-header-fg-muted);
362
+ border-left: var(--tx-rule) solid var(--tx-header-rule);
363
+ -webkit-line-clamp: 2;
364
+ -webkit-box-orient: vertical;
365
+ }
366
+
367
+ /* Barra de navegación propia bajo la cabecera (extra.techsical.header_nav).
368
+ No es fija: se va al desplazar, como las pestañas de Zensical. */
369
+ .tx-subnav {
370
+ font-family: var(--tx-font-ui);
371
+ background-color: var(--tx-surface-1);
372
+ border-bottom: var(--tx-rule) solid var(--tx-border);
373
+ }
374
+
375
+ .tx-subnav__list {
376
+ display: flex;
377
+ gap: var(--tx-space-6);
378
+ margin-block: 0;
379
+ padding-block: 0;
380
+ overflow-x: auto;
381
+ list-style: none;
382
+ scrollbar-width: none;
383
+ }
384
+
385
+ .tx-subnav__list > li {
386
+ flex-shrink: 0;
387
+ }
388
+
389
+ .tx-subnav__link {
390
+ display: block;
391
+ padding: var(--tx-space-3) 0 calc(var(--tx-space-3) - 2px);
392
+ font-size: var(--tx-size-small);
393
+ font-weight: 600;
394
+ color: var(--tx-text-secondary);
395
+ border-bottom: 2px solid transparent;
396
+ transition: color var(--tx-motion), border-color var(--tx-motion);
397
+ }
398
+
399
+ .tx-subnav__link:is(:hover, :focus-visible) {
400
+ color: var(--tx-primary);
401
+ }
402
+
403
+ .tx-subnav__link--active {
404
+ color: var(--tx-primary);
405
+ border-bottom-color: var(--tx-primary);
406
+ }
407
+
408
+ @media screen and (max-width: 44.9375em) {
409
+ .tx-brand__description {
410
+ display: none;
411
+ }
412
+ }
413
+
414
+ /* --- Menús laterales y migas: interfaz en sans ----------------------------- */
415
+
416
+ .md-nav,
417
+ .md-path,
418
+ .md-search,
419
+ .md-footer,
420
+ .md-tabs {
421
+ font-family: var(--tx-font-ui);
422
+ }
423
+
424
+ .md-nav__link--active,
425
+ .md-nav__item .md-nav__link--active {
426
+ color: var(--tx-primary);
427
+ font-weight: 700;
428
+ }
429
+
430
+ /* El índice lateral envuelve cada entrada en .md-typeset: que siga siendo
431
+ interfaz (sans, tamaño del menú). */
432
+ .md-nav .md-typeset {
433
+ font-family: inherit;
434
+ font-size: inherit;
435
+ line-height: inherit;
436
+ }
437
+
438
+ /* Las migas hacen de antetítulo («Guía · Instalación»), como en prensa. */
439
+ .md-path {
440
+ font-size: var(--tx-size-caption);
441
+ font-weight: 600;
442
+ letter-spacing: 0.04em;
443
+ text-transform: uppercase;
444
+ }
445
+
446
+ /* --- Artículo ------------------------------------------------------------- */
447
+
448
+ .md-content__inner {
449
+ max-width: var(--tx-content-max);
450
+ }
451
+
452
+ /* Sin índice lateral, el artículo (y sus migas) se centran en el espacio libre.
453
+ Zensical fija los márgenes con [dir=ltr] .md-sidebar--primary…: hace falta la
454
+ misma especificidad o más. */
455
+ .md-path {
456
+ max-width: var(--tx-content-max);
457
+ }
458
+
459
+ body .md-main__inner > .md-sidebar--secondary[hidden] ~ .md-content > .md-content__inner,
460
+ body .md-main__inner > .md-sidebar--secondary[hidden] ~ .md-content > .md-path {
461
+ margin-right: auto;
462
+ margin-left: auto;
463
+ }
464
+
465
+ .md-typeset {
466
+ font-family: var(--tx-font-text);
467
+ font-size: var(--tx-size-body);
468
+ line-height: var(--tx-leading-body);
469
+ letter-spacing: normal;
470
+ font-optical-sizing: auto;
471
+ }
472
+
473
+ .md-typeset :is(h1, h2, h3, h4, h5, h6) {
474
+ font-family: var(--tx-font-text);
475
+ font-weight: 700;
476
+ line-height: var(--tx-leading-heading);
477
+ letter-spacing: -0.005em;
478
+ color: var(--tx-text);
479
+ }
480
+
481
+ .md-typeset h1 {
482
+ margin: 0 0 var(--tx-space-4);
483
+ font-size: var(--tx-size-h1);
484
+ letter-spacing: -0.015em;
485
+ }
486
+
487
+ .md-typeset h2 {
488
+ margin: var(--tx-space-12) 0 var(--tx-space-3);
489
+ font-size: var(--tx-size-h2);
490
+ }
491
+
492
+ .md-typeset h3 {
493
+ margin: var(--tx-space-8) 0 var(--tx-space-2);
494
+ font-size: var(--tx-size-h3);
495
+ font-weight: 600;
496
+ }
497
+
498
+ .md-typeset h4 {
499
+ margin: var(--tx-space-6) 0 var(--tx-space-2);
500
+ font-size: var(--tx-size-h4);
501
+ font-weight: 600;
502
+ }
503
+
504
+ .md-typeset :is(h5, h6) {
505
+ margin: var(--tx-space-6) 0 var(--tx-space-2);
506
+ font-size: var(--tx-size-h5);
507
+ font-weight: 600;
508
+ color: var(--tx-text-secondary);
509
+ text-transform: none;
510
+ }
511
+
512
+ .md-typeset :is(p, ul, ol, dl, blockquote) {
513
+ margin-block: 0 var(--tx-space-4);
514
+ }
515
+
516
+ .md-typeset a {
517
+ color: var(--tx-link);
518
+ text-decoration: underline;
519
+ text-decoration-color: color-mix(in oklab, var(--tx-link) 35%, transparent);
520
+ text-decoration-thickness: 1px;
521
+ text-underline-offset: 0.18em;
522
+ }
523
+
524
+ .md-typeset a:is(:hover, :focus-visible) {
525
+ color: var(--tx-link-hover);
526
+ text-decoration-color: currentcolor;
527
+ }
528
+
529
+ .md-typeset .headerlink {
530
+ text-decoration: none;
531
+ }
532
+
533
+ /* Entradilla: primer párrafo con { .lead } (attr_list). */
534
+ .md-typeset .lead {
535
+ margin-bottom: var(--tx-space-8);
536
+ padding-bottom: var(--tx-space-6);
537
+ font-size: var(--tx-size-lead);
538
+ font-style: italic;
539
+ line-height: 1.5;
540
+ color: var(--tx-text-secondary);
541
+ border-bottom: var(--tx-rule) solid var(--tx-border-strong);
542
+ }
543
+
544
+ .md-typeset blockquote {
545
+ padding-left: var(--tx-space-4);
546
+ font-style: italic;
547
+ color: var(--tx-text-secondary);
548
+ border-left: 3px solid var(--tx-border-strong);
549
+ }
550
+
551
+ .md-typeset hr {
552
+ margin-block: var(--tx-space-10);
553
+ border-bottom: var(--tx-rule) solid var(--tx-border-strong);
554
+ }
555
+
556
+ .md-typeset :is(table, .tabular, data, time) {
557
+ font-variant-numeric: tabular-nums;
558
+ }
559
+
560
+ /* --- Código ---------------------------------------------------------------- */
561
+
562
+ .md-typeset code,
563
+ .md-typeset kbd,
564
+ .md-typeset pre {
565
+ font-family: var(--tx-font-code);
566
+ }
567
+
568
+ .md-typeset code {
569
+ font-size: var(--tx-size-code);
570
+ border-radius: var(--tx-radius);
571
+ }
572
+
573
+ .md-typeset pre > code {
574
+ line-height: var(--tx-leading-code);
575
+ border: var(--tx-rule) solid var(--tx-border);
576
+ }
577
+
578
+ /* --- Tablas: todo el ancho del artículo, en sans y con cifras alineadas ---- */
579
+
580
+ .md-typeset__scrollwrap {
581
+ margin-inline: 0;
582
+ }
583
+
584
+ .md-typeset__table {
585
+ display: block;
586
+ padding: 0;
587
+ }
588
+
589
+ .md-typeset table:not([class]) {
590
+ display: table;
591
+ width: 100%;
592
+ font-family: var(--tx-font-ui);
593
+ font-size: var(--tx-size-small);
594
+ line-height: 1.45;
595
+ border: 0;
596
+ border-collapse: collapse;
597
+ border-top: 2px solid var(--tx-text);
598
+ border-bottom: 2px solid var(--tx-text);
599
+ border-radius: 0;
600
+ }
601
+
602
+ .md-typeset table:not([class]) th {
603
+ min-width: 0;
604
+ padding: var(--tx-space-2) var(--tx-space-3);
605
+ font-weight: 700;
606
+ color: var(--tx-text);
607
+ background-color: var(--tx-surface-1);
608
+ border-bottom: var(--tx-rule) solid var(--tx-border-strong);
609
+ }
610
+
611
+ .md-typeset table:not([class]) td {
612
+ padding: var(--tx-space-2) var(--tx-space-3);
613
+ border-top: var(--tx-rule) solid var(--tx-border);
614
+ }
615
+
616
+ .md-typeset table:not([class]) tbody tr:hover {
617
+ background-color: var(--tx-primary-softer);
618
+ }
619
+
620
+ /* --- Figuras: bloque centrado, nunca ampliadas ----------------------------- */
621
+
622
+ .md-typeset img,
623
+ .md-typeset svg:not(.twemoji svg, .md-icon svg, .headerlink svg) {
624
+ height: auto;
625
+ }
626
+
627
+ /* Imagen sola en su párrafo, o dentro de <figure>. */
628
+ .md-typeset p > img:only-child,
629
+ .md-typeset figure img {
630
+ display: block;
631
+ max-width: min(100%, var(--tx-figure-max));
632
+ margin-inline: auto;
633
+ }
634
+
635
+ .md-typeset p:has(> img:only-child) {
636
+ margin-block: var(--tx-space-8);
637
+ }
638
+
639
+ .md-typeset figure {
640
+ display: block;
641
+ margin: var(--tx-space-8) auto;
642
+ text-align: center;
643
+ }
644
+
645
+ .md-typeset figcaption {
646
+ max-width: var(--tx-figure-max);
647
+ margin: var(--tx-space-2) auto 0;
648
+ font-family: var(--tx-font-ui);
649
+ font-size: var(--tx-size-caption);
650
+ font-style: normal;
651
+ line-height: 1.45;
652
+ color: var(--tx-text-muted);
653
+ }
654
+
655
+ /* --- Notas (admonitions): planas, color de estado + icono ----------------- */
656
+
657
+ .md-typeset :is(.admonition, details) {
658
+ --tx-adm-bg: var(--tx-surface-1);
659
+ --tx-adm-fg: var(--tx-text);
660
+ --tx-adm-icon: var(--tx-text-secondary);
661
+ padding: var(--tx-space-1) var(--tx-space-5) var(--tx-space-1);
662
+ font-size: 0.95em;
663
+ color: var(--tx-adm-fg);
664
+ background-color: var(--tx-adm-bg);
665
+ border: 0;
666
+ border-left: 3px solid var(--tx-adm-icon);
667
+ border-radius: 0 var(--tx-radius) var(--tx-radius) 0;
668
+ box-shadow: none;
669
+ }
670
+
671
+ .md-typeset :is(.admonition, details) > :is(.admonition-title, summary) {
672
+ margin-top: var(--tx-space-3);
673
+ font-family: var(--tx-font-ui);
674
+ font-size: var(--tx-size-small);
675
+ font-weight: 700;
676
+ letter-spacing: 0.01em;
677
+ background: none;
678
+ }
679
+
680
+ .md-typeset :is(.admonition, details) > :is(.admonition-title, summary)::before {
681
+ background-color: var(--tx-adm-icon);
682
+ }
683
+
684
+ .md-typeset :is(.admonition, details) > :is(.admonition-title, summary)::after {
685
+ color: var(--tx-adm-icon);
686
+ }
687
+
688
+ .md-typeset :is(.note, .info, .todo) {
689
+ --tx-adm-bg: var(--tx-info-bg);
690
+ --tx-adm-fg: var(--tx-info-fg);
691
+ --tx-adm-icon: var(--tx-info-icon);
692
+ }
693
+
694
+ .md-typeset :is(.tip, .hint, .important, .success, .check, .done) {
695
+ --tx-adm-bg: var(--tx-success-bg);
696
+ --tx-adm-fg: var(--tx-success-fg);
697
+ --tx-adm-icon: var(--tx-success-icon);
698
+ }
699
+
700
+ .md-typeset :is(.warning, .caution, .attention, .question, .help, .faq) {
701
+ --tx-adm-bg: var(--tx-warning-bg);
702
+ --tx-adm-fg: var(--tx-warning-fg);
703
+ --tx-adm-icon: var(--tx-warning-icon);
704
+ }
705
+
706
+ .md-typeset :is(.danger, .error, .failure, .fail, .missing, .bug) {
707
+ --tx-adm-bg: var(--tx-danger-bg);
708
+ --tx-adm-fg: var(--tx-danger-fg);
709
+ --tx-adm-icon: var(--tx-danger-icon);
710
+ }
711
+
712
+ /* Recuadro de datos («Principales datos»): resumen, ejemplo, cita. */
713
+ .md-typeset :is(.abstract, .summary, .tldr, .example, .quote, .cite) {
714
+ --tx-adm-bg: var(--tx-primary-soft);
715
+ --tx-adm-fg: var(--tx-text);
716
+ --tx-adm-icon: var(--tx-primary);
717
+ }
718
+
719
+ /* --- Listas de definiciones ---------------------------------------------- */
720
+
721
+ .md-typeset dl {
722
+ margin-block: var(--tx-space-6);
723
+ }
724
+
725
+ .md-typeset dt {
726
+ margin-top: var(--tx-space-4);
727
+ font-weight: 700;
728
+ color: var(--tx-text);
729
+ }
730
+
731
+ .md-typeset dt:first-child {
732
+ margin-top: 0;
733
+ }
734
+
735
+ .md-typeset dd {
736
+ margin: var(--tx-space-1) 0 0;
737
+ margin-inline-start: 0;
738
+ padding-left: var(--tx-space-4);
739
+ color: var(--tx-text-secondary);
740
+ border-left: 2px solid var(--tx-border-strong);
741
+ }
742
+
743
+ .md-typeset dd > :last-child {
744
+ margin-bottom: 0;
745
+ }
746
+
747
+ /* --- Pestañas (pymdownx.tabbed) -------------------------------------------- */
748
+
749
+ .md-typeset .tabbed-set {
750
+ margin-block: var(--tx-space-6);
751
+ }
752
+
753
+ .md-typeset .tabbed-labels {
754
+ box-shadow: 0 calc(-1 * var(--tx-rule)) var(--tx-border-strong) inset;
755
+ }
756
+
757
+ .md-typeset .tabbed-labels > label {
758
+ font-family: var(--tx-font-ui);
759
+ font-size: var(--tx-size-small);
760
+ font-weight: 600;
761
+ color: var(--tx-text-muted);
762
+ }
763
+
764
+ .md-typeset .tabbed-labels > label:hover {
765
+ color: var(--tx-primary);
766
+ }
767
+
768
+ .js .md-typeset .tabbed-labels::before {
769
+ height: 2px;
770
+ background: var(--tx-primary);
771
+ }
772
+
773
+ .md-typeset .tabbed-content {
774
+ padding-top: var(--tx-space-2);
775
+ }
776
+
777
+ /* --- Listas de tareas (pymdownx.tasklist) ---------------------------------- */
778
+
779
+ .md-typeset .task-list-indicator::before {
780
+ background-color: var(--tx-border-strong);
781
+ }
782
+
783
+ .md-typeset [type="checkbox"]:checked + .task-list-indicator::before {
784
+ background-color: var(--tx-accent);
785
+ }
786
+
787
+ /* --- Pestañas, etiquetas, botones ----------------------------------------- */
788
+
789
+ .md-typeset .tabbed-labels,
790
+ .md-typeset .md-tag,
791
+ .md-typeset .md-button,
792
+ .md-typeset .tabbed-set > label {
793
+ font-family: var(--tx-font-ui);
794
+ }
795
+
796
+ .md-typeset .md-button {
797
+ padding: var(--tx-space-2) var(--tx-space-5);
798
+ font-size: var(--tx-size-small);
799
+ font-weight: 700;
800
+ color: var(--tx-primary);
801
+ text-decoration: none;
802
+ border: var(--tx-rule) solid currentcolor;
803
+ border-radius: var(--tx-radius);
804
+ }
805
+
806
+ .md-typeset .md-button--primary {
807
+ color: var(--tx-bg);
808
+ background-color: var(--tx-primary);
809
+ border-color: var(--tx-primary);
810
+ }
811
+
812
+ .md-typeset .md-button:is(:hover, :focus-visible) {
813
+ color: var(--tx-bg);
814
+ background-color: var(--tx-primary-hover);
815
+ border-color: var(--tx-primary-hover);
816
+ }
817
+
818
+ /* --- Pie: línea fina, copyright y dirección de la web -------------------- */
819
+
820
+ .md-footer {
821
+ border-top: var(--tx-rule) solid var(--tx-border-strong);
822
+ }
823
+
824
+ .md-footer-meta {
825
+ background-color: var(--tx-bg);
826
+ }
827
+
828
+ .md-footer-meta.md-typeset {
829
+ font-family: var(--tx-font-ui);
830
+ font-size: var(--tx-size-caption);
831
+ }
832
+
833
+ .md-copyright,
834
+ .md-copyright a {
835
+ color: var(--tx-text-muted);
836
+ }
837
+
838
+ .tx-footer__url {
839
+ font-weight: 700;
840
+ color: var(--tx-text-secondary);
841
+ }
842
+
843
+ /* --- Portada (template: home.html) ---------------------------------------- */
844
+
845
+ /* En escritorio la portada no lleva menús laterales; en móvil el menú sigue en
846
+ el cajón de navegación. */
847
+ @media screen and (min-width: 76.25em) {
848
+ .md-main__inner:has(.tx-home) > .md-sidebar {
849
+ display: none;
850
+ }
851
+ }
852
+
853
+ .tx-home .md-content__inner {
854
+ max-width: 1120px;
855
+ }
856
+
857
+ @media screen and (min-width: 76.25em) {
858
+ .tx-home .md-content__inner {
859
+ margin-inline: auto;
860
+ }
861
+ }
862
+
863
+ .tx-hero {
864
+ display: grid;
865
+ gap: var(--tx-space-10);
866
+ align-items: center;
867
+ margin: var(--tx-space-8) 0 var(--tx-space-12);
868
+ padding-bottom: var(--tx-space-10);
869
+ border-bottom: var(--tx-rule) solid var(--tx-border-strong);
870
+ }
871
+
872
+ @media screen and (min-width: 60em) {
873
+ .tx-hero--media {
874
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
875
+ }
876
+ }
877
+
878
+ .md-typeset .tx-hero__title {
879
+ margin-bottom: var(--tx-space-4);
880
+ font-size: clamp(34px, 3.2vw + 14px, 52px);
881
+ line-height: 1.12;
882
+ }
883
+
884
+ .md-typeset .tx-hero__lead {
885
+ font-size: var(--tx-size-lead);
886
+ font-style: italic;
887
+ line-height: 1.5;
888
+ color: var(--tx-text-secondary);
889
+ }
890
+
891
+ .tx-hero__actions {
892
+ display: flex;
893
+ flex-wrap: wrap;
894
+ gap: var(--tx-space-3);
895
+ margin-top: var(--tx-space-6);
896
+ }
897
+
898
+ .tx-hero__media {
899
+ display: grid;
900
+ gap: var(--tx-space-4);
901
+ }
902
+
903
+ .tx-hero__media--pair {
904
+ grid-template-columns: repeat(2, minmax(0, 1fr));
905
+ align-items: start;
906
+ }
907
+
908
+ .md-typeset .tx-hero__figure {
909
+ margin: 0;
910
+ }
911
+
912
+ .md-typeset .tx-hero__figure img {
913
+ display: block;
914
+ width: auto;
915
+ max-width: 100%;
916
+ margin-inline: auto;
917
+ border: var(--tx-rule) solid var(--tx-border);
918
+ border-radius: var(--tx-radius-large);
919
+ }
920
+
921
+ /* Rejilla opcional de la portada: <div class="tx-cards" markdown> con listas. */
922
+ .md-typeset .tx-cards > ul {
923
+ display: grid;
924
+ grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
925
+ gap: var(--tx-space-4);
926
+ margin: var(--tx-space-6) 0;
927
+ padding: 0;
928
+ list-style: none;
929
+ }
930
+
931
+ .md-typeset .tx-cards > ul > li {
932
+ margin: 0;
933
+ padding: var(--tx-space-5);
934
+ background-color: var(--tx-surface-1);
935
+ border: var(--tx-rule) solid var(--tx-border);
936
+ border-top: 3px solid var(--tx-primary);
937
+ border-radius: 0 0 var(--tx-radius) var(--tx-radius);
938
+ }
939
+
940
+ .md-typeset .tx-cards > ul > li > :first-child {
941
+ margin-top: 0;
942
+ }
943
+
944
+ .md-typeset .tx-cards > ul > li > :last-child {
945
+ margin-bottom: 0;
946
+ }
947
+
948
+ /* --- Fórmulas (MathJax) ---------------------------------------------------- */
949
+
950
+ .md-typeset .arithmatex {
951
+ overflow-x: auto;
952
+ }
953
+
954
+ .md-typeset div.arithmatex {
955
+ margin-block: var(--tx-space-6);
956
+ }