/*
Theme Name: Neurativa
Theme URI: https://neurativa.net
Description: Tema hijo de Twenty Twenty-Five con la identidad de Neurativa: Cloud, Ink, Wasabi. Bricolage Grotesque + Geist.
Author: Neurativa
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: neurativa
*/

/* ── Марκер васаби: одна фраза в заголовке ─────────────────────────────── */
mark, .nv-mark {
  background: linear-gradient(transparent 52%, var(--wp--preset--color--wasabi) 52%, var(--wp--preset--color--wasabi) 96%, transparent 96%);
  padding: 0 .12em; color: inherit;
}

/* ── Блок «Disponible / Precio» из конвейера ───────────────────────────── */
.nv-disponible {
  background: var(--wp--preset--color--cool-blue);
  border-radius: 12px; padding: .7em 1em; margin: .35em 0;
  font-size: .95em; line-height: 1.5;
}
.nv-disponible + .nv-disponible { margin-top: -.1em; border-top-left-radius: 0; border-top-right-radius: 0; }
.nv-disponible:has(+ .nv-disponible) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.nv-fuente { color: var(--wp--preset--color--muted); font-size: .9em; }
.nv-fuente a { color: inherit; text-decoration-color: var(--wp--preset--color--wasabi); }

/* ── Рубрика над заголовком ────────────────────────────────────────────── */
.nv-kicker, .nv-kicker a {
  font-family: var(--wp--preset--font-family--geist);
  font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wp--preset--color--muted); text-decoration: none;
}

/* ── Карточки новостей ─────────────────────────────────────────────────── */
.nv-card { display: flex; flex-direction: column; gap: .55rem; }
.nv-card .wp-block-post-featured-image img { border-radius: 14px; }
.nv-card .wp-block-post-title { font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; }
.nv-card .wp-block-post-title a { text-decoration: none; }
.nv-card .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--wasabi); text-decoration-thickness: .18em; }
.nv-card .wp-block-post-date { font-family: var(--wp--preset--font-family--geist); font-size: .8rem; color: var(--wp--preset--color--muted); }

/* ── Главная новость ───────────────────────────────────────────────────── */
.nv-hero .wp-block-post-featured-image img { border-radius: 18px; }
.nv-hero .wp-block-post-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; margin-top: .4rem; }
.nv-hero .wp-block-post-title a { text-decoration: none; }
.nv-hero .wp-block-post-title a:hover mark, .nv-hero .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--wasabi); text-decoration-thickness: .12em; }

/* ── Заголовки секций на главной ───────────────────────────────────────── */
.nv-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-top: 2px solid var(--wp--preset--color--ink); padding-top: .8rem; margin-top: 2.5rem; }
.nv-section-title h2 { font-size: 1.1rem; letter-spacing: -.01em; margin: 0; }
.nv-section-title a { font-family: var(--wp--preset--font-family--geist); font-size: .85rem; text-decoration-color: var(--wp--preset--color--wasabi); }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.nv-header { border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent); }
.nv-header .wp-block-site-title a { font-family: var(--wp--preset--font-family--bricolage); font-weight: 800; letter-spacing: -.03em; text-decoration: none; font-size: 1.6rem; }
.nv-header .wp-block-navigation a { font-family: var(--wp--preset--font-family--geist); font-weight: 500; font-size: .95rem; }
.nv-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--wasabi); text-decoration-thickness: .16em; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.nv-footer { border-top: 2px solid var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--geist); font-size: .9rem; }

/* ── Тёмная тема по системной настройке — сдержанно ────────────────────── */
@media (prefers-color-scheme: dark) {
  body.nv-auto-dark { --wp--preset--color--cloud: #0C1B2A; --wp--preset--color--ink: #F3F1EC; --wp--preset--color--cool-blue: #16283A; --wp--preset--color--muted: #9AA6B2; }
}

/* ── Чтение ────────────────────────────────────────────────────────────── */
.wp-block-post-content p { max-width: 68ch; }
.wp-block-post-content a { text-decoration-color: var(--wp--preset--color--wasabi); text-decoration-thickness: .14em; text-underline-offset: .12em; }
.wp-block-post-content h2 { margin-top: 2rem; letter-spacing: -.02em; }
.wp-block-post-content pre, .wp-block-code { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--cloud); border-radius: 12px; padding: 1rem 1.2rem; }
