/* NLauncher — home page strip for the latest featured news post (#nlb). Data: /api/news, fallback is the static markup.
 * Light by default, dark under html[data-theme="dark"]. Versioned filename: the front proxy caches /assets/* — copy to .v2 to change. */
.nlb { --b-card: #fff; --b-ink: #0B0B0F; --b-ink2: #4A4F5A; --b-mute: #8A909C; --b-line: rgba(11,11,15,.08); --b-acc: #2E6CF6; --b-acc2: #1E56D6;
  --b-acc-soft: rgba(46,108,246,.1); --b-acc-tx: #1E56D6; --b-hover: rgba(11,11,15,.06); --b-shadow: 0 18px 40px -30px rgba(11,11,15,.55);
  max-width: 1340px; margin: 18px auto 0; padding: 0 24px; font-family: Onest, system-ui, sans-serif; }
html[data-theme="dark"] .nlb { --b-card: #14151C; --b-ink: #F2F3F6; --b-ink2: #B4B8C2; --b-mute: #8A909C; --b-line: rgba(255,255,255,.09); --b-acc: #4C82FF; --b-acc2: #2E6CF6;
  --b-acc-soft: rgba(76,130,255,.14); --b-acc-tx: #93B8FF; --b-hover: rgba(255,255,255,.08); --b-shadow: 0 18px 44px -26px rgba(0,0,0,.9); }
.nlb[hidden] { display: none !important; }
.nlb *, .nlb *::before, .nlb *::after { box-sizing: border-box; }
.nlb-in { display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 10px; border-radius: 18px; background: var(--b-card); border: 1px solid var(--b-line); box-shadow: var(--b-shadow); }
.nlb-th { flex: none; display: block; width: 128px; border-radius: 11px; overflow: hidden; background: #0B1220; }
.nlb-th img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.nlb-tx { flex: 1 1 auto; min-width: 0; }
.nlb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.nlb-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--b-acc-soft); color: var(--b-acc-tx); font: 700 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.nlb-tag i { width: 8px; height: 8px; border-radius: 2px; background: var(--b-acc); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 0 rgba(0,0,0,.24); }
.nlb-date { font-size: 12.5px; color: var(--b-mute); }
.nlb-t { display: block; color: var(--b-ink); font-weight: 800; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlb a.nlb-t:hover { color: var(--b-acc); }
.nlb-h { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--b-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlb-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; background: var(--b-acc); color: #fff !important; font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 30px -18px rgba(46,108,246,.95); transition: background .16s ease, transform .16s ease; }
.nlb-go:hover { background: var(--b-acc2); color: #fff !important; transform: translateY(-1px); }
.nlb-go svg { flex: none; }
.nlb-x { flex: none; width: 36px; height: 36px; margin-left: -6px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--b-mute); cursor: pointer; transition: background .16s ease, color .16s ease; }
.nlb-x:hover { background: var(--b-hover); color: var(--b-ink); }
.nlb a:focus-visible, .nlb button:focus-visible { outline: 2px solid var(--b-acc); outline-offset: 2px; }
@media (max-width: 760px) {
  .nlb { margin-top: 12px; padding: 0 16px; }
  .nlb-in { display: grid; grid-template-columns: 84px minmax(0, 1fr) 32px; grid-template-areas: "th tx x" "go go go"; gap: 10px 12px; padding: 10px; border-radius: 16px; }
  .nlb-th { grid-area: th; width: 84px; align-self: start; border-radius: 9px; }
  .nlb-tx { grid-area: tx; }
  .nlb-x { grid-area: x; width: 32px; height: 32px; margin: 0; align-self: start; }
  .nlb-go { grid-area: go; justify-content: center; height: 40px; }
  .nlb-date { display: none; }
  .nlb-t { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .nlb-h { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (prefers-reduced-motion: reduce) { .nlb-go:hover { transform: none; } }
