/* cssplit1 (04-11-2026, Mortimer: velocidad en el móvil): the rules of basc.css that only news.html, news_post.html use, moved here
   in their original order and loaded only there, right after basc.css (app.CSS_AREAS / CSS_PAGE_SPLITS). Edit them here. */
.news-single { max-width: 820px; margin: 48px auto 0; display: grid; gap: 16px; }
@media (max-width: 600px) {
    .news-tabs { width: 100%; }
    .news-single { margin-top: 28px; }
}
.ns-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ns-top-main { display: grid; gap: 8px; min-width: 0; }
.ns-kicker-title { position: relative; margin: 0; padding-bottom: 10px; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 900; letter-spacing: 0.01em; }
.ns-kicker-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--origin), transparent); }
.ns-card { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 26px 30px 24px; border-radius: 22px;
    background: radial-gradient(700px 240px at 0% 0%, color-mix(in srgb, var(--origin) 12%, transparent), transparent 70%),
                linear-gradient(180deg, rgba(20, 10, 42, 0.86), rgba(10, 5, 24, 0.9));
    border: 1px solid color-mix(in srgb, var(--origin) 40%, var(--line)); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.ns-head { display: grid; gap: 10px; }
.ns-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
/* Gallery: 1 = whole image, 2 = side by side, 3 = one big + two, 4 = 2 x 2. Each image opens in the lightbox. */
.ns-gallery { gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ns-gallery a:hover::after, .ns-gallery a:focus-visible::after { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--origin) 70%, transparent); }
.ns-gallery a:hover img { transform: scale(1.03); }
.ns-gallery.news-gallery--3 a:first-child { grid-row: span 2; }
.ns-gallery.news-gallery--3 a:first-child img { aspect-ratio: auto; height: 100%; }
.ns-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ns-more { display: grid; gap: 16px; margin-top: 26px; }
.ns-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
@media (max-width: 600px) {
    .ns-card { padding: 20px 16px 18px; gap: 16px; border-radius: 20px; }
    .ns-title-row { flex-direction: column; gap: 8px; }
    .ns-top { align-items: center; }
    .ns-body { font-size: 1.02rem; line-height: 1.75; }
    .ns-gallery.news-gallery--3 a:first-child { grid-column: span 2; grid-row: auto; }
    .ns-gallery.news-gallery--3 a:first-child img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .ns-gallery a:hover img { transform: none; }
}
@media (max-width: 600px) {
    .news-new { width: 100%; }
    .composer-media { grid-template-columns: repeat(2, 1fr); }
    .news-gallery { grid-template-columns: 1fr; }
}
.nf-main { min-width: 0; }
@media (max-width: 1100px) {
    .nf-layout { grid-template-columns: 1fr; }
    .nf-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .nf-side { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .nf-pager-step { flex: 1; text-align: center; }
}
/* Videos in BASC posts (Mortimer, 18-10-2026) */
.ns-video { display: block; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.nf-sec::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(80% 120% at 0% 50%, #000, transparent 70%); mask-image: radial-gradient(80% 120% at 0% 50%, #000, transparent 70%); }
.nf-sec::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, var(--sec) 30%, color-mix(in srgb, var(--sec) 40%, #fff) 50%, var(--sec) 70%, transparent); opacity: 0.85; }
.nf-sec-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center right; opacity: 0.75; }
.nf-sec.has-banner .nf-sec-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,5,24,0.96) 0%, rgba(10,5,24,0.86) 42%, rgba(10,5,24,0.35) 100%), linear-gradient(0deg, rgba(10,5,24,0.55), transparent 60%); }
.nf-sec-icon::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sec) 38%, transparent), transparent 70%); }
.nf-sec-count { color: #fff; background: color-mix(in srgb, var(--sec) 22%, rgba(0,0,0,0.3)); border: 1px solid color-mix(in srgb, var(--sec) 55%, transparent); }
.nf-sec-link, .nf-sec-back { color: #e2e8f0; background: rgba(0,0,0,0.3); border: 1px solid var(--line-strong); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.nf-sec-tribes { display: grid; grid-template-columns: repeat(5, 54px); gap: 8px; align-self: center; }
@media (max-width: 900px) {
    .nf-sec { grid-template-columns: auto minmax(0, 1fr); }
    .nf-sec-tribes { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .nf-sec { gap: 14px 16px; padding: 20px 18px; border-radius: 22px; }
    .nf-sec-icon { grid-row: span 2; width: 72px; height: 72px; }
    .nf-sec-icon--logo { width: 88px; height: 64px; }
    .nf-sec-title { font-size: 1.85rem; }
    .nf-sec-line { font-size: 0.92rem; }
    .nf-sec-meta { grid-column: 1 / -1; }
    .nf-sec-text { display: contents; }
    .nf-sec-text > .nf-sec-kicker, .nf-sec-text > .nf-sec-title { grid-column: 2; }
    .nf-sec-text > .nf-sec-line, .nf-sec-text > .nf-sec-meta { grid-column: 1 / -1; }
}

/* 2. Tabs and Sources */
.news-tabs { background: rgba(12, 6, 28, 0.72); border-color: var(--line-strong); box-shadow: 0 12px 34px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.news-tabs a { position: relative; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.news-tabs a.news-tab--daos.active .count { background: rgba(0,0,0,0.16); }
.nf-sources a { position: relative; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background 0.2s, transform 0.2s; }
.nf-sources a:hover { transform: translateX(2px); background: color-mix(in srgb, var(--origin) 10%, transparent); }
.nf-sources a.active { background: linear-gradient(90deg, color-mix(in srgb, var(--origin) 24%, transparent), color-mix(in srgb, var(--origin) 6%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--origin) 50%, transparent); }
.nf-sources a.active::before { content: ''; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--origin); box-shadow: 0 0 10px var(--origin); }
.nf-sources i img { width: 24px; height: 24px; object-fit: contain; }
.nf-sources a.active span { color: #fff; background: color-mix(in srgb, var(--origin) 35%, transparent); }
@media (prefers-reduced-motion: reduce) {
    .nf-sec-glow, .nf-sec-icon img { animation: none; }
    .nf-sources a, .nf-sec-tribes a { transition: none; }
    .nf-sources a:hover, .nf-sec-tribes a:hover { transform: none; }
}
.nf-rss svg { width: 14px; height: 14px; }
.nf-rss:focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nf-rss { transition: none; }
}
