/* === Base compartida de Master Widgets === */
/*
 * Este archivo debe mantenerse pequeno y transversal.
 * Solo define variables base, tipografias y reset local del shell.
 *
 * Los estilos visibles de cada widget viven en:
 * - assets/css/mw-news-widget/mw-news-widget.css
 * - assets/css/mw-documents-widget/mw-documents-library.css
 * - assets/css/mw-news-grid-widget/mw-news-grid.css
 * - assets/css/mw-taxonomy-stacked-widget/mw-taxonomy-stacked.css
 */
.nm-widget-shell {
    --nm-ink: #2c3544;
    --nm-muted: #727f91;
    --nm-line: #e5ebf2;
    --nm-soft: #f2f5f9;
    --nm-accent: #0f274e;
    --nm-link: #ff4e45;
    --nm-content-width: 860px;
    --nm-card-radius: 0px;
    --nm-card-frame-gap: clamp(0px, calc(var(--nm-card-radius) * 0.34), 12px);
    --nm-font: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
    color: var(--nm-ink) !important;
}

/* Tipografias configurables desde el widget. */
.nm-widget-shell.nm-typography-worksans {
    --nm-font: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

.nm-widget-shell.nm-typography-montserrat {
    --nm-font: Montserrat, sans-serif;
}

.nm-widget-shell.nm-typography-newsreader {
    --nm-font: 'Newsreader', Georgia, serif;
}

.nm-widget-shell.nm-typography-system {
    --nm-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Reset local del widget para no depender del tema activo. */
.nm-widget-shell,
.nm-widget-shell * {
    box-sizing: border-box !important;
    font-family: var(--nm-font) !important;
}

/* Permite que Font Awesome conserve su propia fuente dentro del widget. */
.nm-widget-shell .fa,
.nm-widget-shell .fa::before,
.nm-widget-shell .fa::after {
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: normal !important;
}
