/*
 * Lamari Diarios · Sistema tipográfico global v1.40.96 · Manrope
 * Referencia visual: legibilidad del Bar De Mou con una identidad más moderna.
 * Mantiene la escala propia de héroes/banners y no toca fuentes de iconos.
 */
:root {
  --kd-font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kd-type-body: 14px;
  --kd-type-ui: 14px;
  --kd-type-meta: 12px;
  --kd-type-small: 12px;
  --kd-type-card-title: 18px;
  --kd-type-section-title: 24px;
  --kd-type-line: 1.55;
  --kd-type-line-compact: 1.35;
}

/* Una única familia tipográfica para la interfaz pública. */
html body,
body button,
body input,
body textarea,
body select,
body option {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-body);
  line-height: var(--kd-type-line);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Los elementos semánticos de texto heredan la misma familia sin alterar iconos. */
body :where(p, a, label, li, dt, dd, th, td, figcaption, blockquote, cite, time, small, strong, b, em) {
  font-family: var(--kd-font-ui);
}


/* Manrope se fuerza en todos los elementos textuales de la interfaz.
 * No se aplica de forma indiscriminada a span/i/svg para no romper icon fonts. */
body :where(
  h1, h2, h3, h4, h5, h6,
  p, a, button, label, li, dt, dd, th, td,
  figcaption, blockquote, cite, time, small, strong, b, em,
  input, textarea, select, option
) {
  font-family: var(--kd-font-ui) !important;
}

/* Texto corriente: misma densidad y altura de línea en todas las secciones. */
body :where(p, li, dt, dd, td, th, figcaption, blockquote) {
  line-height: var(--kd-type-line);
}

body :where(small, time) {
  font-size: var(--kd-type-meta) !important;
  line-height: var(--kd-type-line-compact) !important;
}

/* Controles y acciones: misma escala que los filtros/buscador del foro. */
body :where(button, input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  font-size: var(--kd-type-ui) !important;
  line-height: var(--kd-type-line-compact) !important;
}

body :where(.button, .btn, [role="button"]):not(.kd-topbar-icon-button):not(.kd-grow-nav-toggle):not(.kd-grow-sidebar-close) {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-ui) !important;
  line-height: var(--kd-type-line-compact) !important;
}

/* Navegación principal: elimina la mezcla 10/11/12/13 px que había entre bloques. */
body .kd-grow-menu-item {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-ui) !important;
  font-weight: 600 !important;
}
body .kd-grow-menu-item.is-active {
  font-weight: 700 !important;
}
body .kd-grow-following h2,
body .kd-grow-following-empty,
body .kd-grow-following-member,
body .kd-grow-sidebar-footer a,
body .kd-topbar-account-heading span {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-small) !important;
  line-height: var(--kd-type-line-compact) !important;
}
body .kd-grow-menu-badge,
body .kd-topbar-badge {
  font-family: var(--kd-font-ui) !important;
  font-size: 10px !important;
}
body .kd-topbar-search input,
body .kd-topbar-create,
body .kd-topbar-login,
body .kd-topbar-account-heading strong,
body .kd-topbar-account-menu > a {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-ui) !important;
}

/* Bar De Mou = referencia del cuerpo tipográfico global. */
body .kd-bar-tabs a,
body .kd-bar-tabs button,
body .kd-bar-sort,
body .kd-bar-search input,
body .kd-bar-search button,
body .kd-bar-topic-title,
body .kd-bar-topic-last strong,
body .kd-bar-sidebar p,
body .kd-bar-sidebar li,
body .kd-bar-compose label,
body .kd-bar-replies > header a {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-ui) !important;
  line-height: var(--kd-type-line-compact) !important;
}
body .kd-bar-topic-number span,
body .kd-bar-topic-last span,
body .kd-bar-single-topic header p,
body .kd-bar-reply-list time,
body .kd-bar-compose small,
body .kd-bar-active-summary {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-meta) !important;
  line-height: var(--kd-type-line-compact) !important;
}
body .kd-bar-single-content,
body .kd-bar-reply-list p,
body .kd-forum-post-content,
body .kd-forum-quote-content {
  font-family: var(--kd-font-ui) !important;
  font-size: 15px !important;
  line-height: 1.68 !important;
}

/* Componentes de contenido del plugin: escala uniforme para texto y metadatos. */
body :where(
  .kd-card p,
  .kd-card li,
  .kd-directory-card p,
  .kd-profile-card p,
  .kd-company-card p,
  .kd-seed-card p,
  .kd-breeder-card p,
  .kd-growshop-card p,
  .kd-nutrient-card p,
  .kd-equipment-card p,
  .kd-question-card p,
  .kd-contest-card p,
  .kd-diary-card p
) {
  font-size: var(--kd-type-body) !important;
  line-height: var(--kd-type-line) !important;
}

/* Normaliza los textos auxiliares más pequeños sin convertirlos en microtexto. */
body :where(
  .kd-meta,
  .kd-card-meta,
  .kd-topic-meta,
  .kd-post-meta,
  .kd-profile-meta,
  .kd-directory-meta,
  .kd-date,
  .kd-time,
  .kd-caption,
  .kd-helper,
  .kd-hint
) {
  font-family: var(--kd-font-ui) !important;
  font-size: var(--kd-type-meta) !important;
  line-height: var(--kd-type-line-compact) !important;
}

/* Títulos equivalentes usan pesos coherentes; no se cambia su tamaño para
 * conservar la jerarquía especial de héroes y cabeceras de cada sección. */
body :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--kd-font-ui) !important;
  text-wrap: balance;
}
body :where(h1, h2) { font-weight: 700; }
body :where(h3, h4, h5, h6) { font-weight: 600; }

/* Excepciones intencionadas: iconos y creatividades mantienen su identidad. */
body :where(.kd-promo-stage-mark, .kd-sponsored-section-hero-label, .kd-ad-slot-copy > span) {
  font-size: inherit;
  line-height: inherit;
}

@media (max-width: 782px) {
  :root {
    --kd-type-body: 14px;
    --kd-type-ui: 14px;
    --kd-type-meta: 12px;
  }
}
