/* Complementos de guide.css para las calculadoras: resultados, avisos, esquemas e impresión a PDF */
.guide .c-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.guide .c-res { background: #fff; border: 1px solid var(--v-border); border-radius: 8px; padding: 10px 12px; }
.guide .c-res span { display: block; font-size: 0.8rem; color: var(--v-muted); }
.guide .c-res strong { font-size: 1.2rem; }
.guide .c-res small { display: block; font-size: 0.78rem; color: var(--v-muted); margin-top: 2px; }
.guide .c-res.main { border: 2px solid var(--v-accent); }
.guide .c-status { padding: 10px 14px; border-radius: 8px; font-weight: 600; margin: 0 0 14px; }
.guide .c-status.ok { background: #e6f4ea; color: #1a7f37; }
.guide .c-status.warn { background: #fff4e0; color: #9a5b00; }
.guide .c-status.bad { background: #fdecee; color: #cf222e; }
.guide .c-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 6px 0 0; }
.guide .c-small { font-size: 0.82rem; }
.guide .c-mono { font-family: Consolas, "Courier New", monospace; }
.guide .c-chip { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 3px; vertical-align: -0.1em; margin-right: 4px; }
.guide .c-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--v-card); border: 1px solid var(--v-border); }
.guide .c-svgwrap { overflow-x: auto; border: 1px solid var(--v-border); border-radius: 10px; background: #fff; padding: 6px; margin: 0 0 14px; }
.guide .c-svgwrap svg { display: block; max-width: none; }
.guide input[type="text"].c-expr { font-family: Consolas, "Courier New", monospace; }

@media print {
  header, nav, footer, .hero, .c-tools, .v-actions, ins.adsbygoogle, [data-noprint] { display: none !important; }
  body { background: #fff !important; }
  .guide { max-width: none; padding: 0; }
  .guide h2 { break-after: avoid; }
  .guide .v-example, .guide figure, .guide table, .guide .c-res-grid { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Campos numéricos dentro de tablas (espectro de armónicos, matrices de cuadripolos…) */
.guide td input[type="number"], .guide td input[type="text"], .guide td select { width: 5.6em; padding: 4px 6px; border: 1px solid var(--v-border); border-radius: 5px; font: inherit; background: #fff; }
.guide td input[type="text"] { width: 8em; }
.guide td select { width: auto; }
.guide td input:focus, .guide td select:focus { outline: 2px solid var(--v-accent); outline-offset: 1px; }
/* Un fieldset no se estrecha por debajo de su contenido: sin esto, una tabla ancha dentro desborda la página en el móvil */
.guide .v-form fieldset { min-width: 0; }
