/* NEXUS - cards and head of the conditions hub (patologias.html / en/conditions.html). Loaded after styles.css by the two hub pages only.
   Each card shows a common myth about the condition under its title; "coming soon" cards get a quiet placeholder so every card has the same shape. */
.lib-grid .article-title { min-height: 0; }
.lib-grid .article-pillar-icons { margin-top: auto; }
.lib-grid .article-meta { margin-top: 0; }
.lib-grid .myth { margin: 0 20px 14px; padding: 12px 14px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.lib-grid .myth .m-front { display: flex; flex-direction: column; gap: 7px; }
.lib-grid .myth .m-k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.lib-grid .myth .m-q { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.4; font-weight: 400; color: var(--text); }
.lib-grid .m-time { font-size: 12px; color: var(--text-faint); }
.lib-grid .article-card.is-soon .myth { border-style: dashed; }
.lib-grid .article-card.is-soon .myth .m-k { color: var(--text-faint); }
.lib-grid .myth .sk { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); }
.lib-grid .myth .sk + .sk { width: 62%; }

/* the green glow of the page head used to stop at a hard line where the next section starts: carry it on and fade it out */
.lib-hub { background: linear-gradient(to bottom, var(--bg-cool) 0, rgba(12, 19, 16, .62) 70px, rgba(12, 19, 16, .26) 170px, rgba(12, 19, 16, .08) 280px, transparent 380px); }

/* published / coming soon / all: the visitor lands on the published articles and can switch */
.lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.lib-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-dim); font: 500 13px var(--font-body); cursor: pointer; transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease); }
.lib-tab:hover { color: var(--text); border-color: var(--text-faint); }
.lib-tab.is-active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.lib-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lib-tab-n { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: rgba(243, 238, 227, .08); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.lib-tab.is-active .lib-tab-n { background: var(--accent); color: var(--bg); }
.lib-item.is-zero { opacity: .45; }
.lib-empty[hidden] { display: none; }

@media (max-width: 480px) { .lib-tabs { gap: 6px; } .lib-tab { padding: 8px 12px; gap: 6px; font-size: 12.5px; } }
