/* ==========================================================================
   NovaLandia 3.0 theme ("Bone")
   Palette from VAAK's bone accent (cmdr-nova/VAAK api/assets/app/vaak-app.css).
   Loaded after the legacy main.css: the :root block below also re-points the
   legacy variables so older pages pick up the Bone palette.
   ========================================================================== */

:root {
  --nl-bg: #101010;
  --nl-bg-2: #121212;
  --nl-panel: #1a1a1a;
  --nl-panel-2: #141414;
  --nl-line: #2a2a2a;
  --nl-line-2: #3a3936;
  --nl-text: #f2f2f2;
  --nl-text-2: #cfcac0;
  --nl-prose: #e6e2d8;
  --nl-muted: #8a8a8a;
  --nl-faint: #6a6760;
  --nl-bone: #d4cfc4;
  --nl-bone-hi: #ece8df;
  --nl-bone-dim: #a8a397;
  --nl-glow: #1a1916;
  --nl-max: 1240px;
  --nl-gutter: 24px;
  --nl-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nl-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --nl-retro: "VT323", "JetBrains Mono", monospace;
  --nl-serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* legacy main.css variables, re-pointed to Bone */
  --body-txt: var(--nl-text-2);
  --button-bgcolor: var(--nl-bone);
  --button-bgcolor-hover: var(--nl-bone-hi);
  --desc-bg-color: var(--nl-panel);
  --tag-bg-color: var(--nl-bg-2);
  --desc-border-color: var(--nl-line);
  --feed-text: var(--nl-bone);
  --primary-color: var(--nl-bone);
  --excerpt-text: var(--nl-muted);
  --author-bg: var(--nl-panel);
  --author-border-color: var(--nl-line);
  --author-dropshadow-color: transparent;
  --link-container-color: var(--nl-panel);
  --drop-shadow: transparent;
  --post-link-text: var(--nl-bone);
  --waifu-txt: var(--nl-bone);
  --masto-avies: var(--nl-bone);
  --button-txt: var(--nl-bone-hi);
  --btn-bg: var(--nl-panel);
  --read-text: var(--nl-bone);
}

/* ---------- base ---------- */
html { background: var(--nl-bg); color-scheme: dark; }
body.nl3 {
  margin: 0;
  min-height: 100vh;
  color: var(--nl-text);
  font-family: var(--nl-sans);
  font-size: 16px;
  line-height: 1.55;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 3px),
    radial-gradient(1200px 600px at 10% -10%, var(--nl-glow) 0%, var(--nl-bg) 45%);
  background-color: var(--nl-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* undo the legacy sidebar layout from main.css */
body.nl3 { display: block !important; max-width: none !important; padding: 0 !important; margin: 0 !important; gap: 0; height: auto; justify-content: initial; align-items: initial; }
body.nl3 footer.nl-footer { min-width: 0; max-width: none; padding: 0; letter-spacing: normal; word-spacing: normal; }
body.nl3 > main { display: block; width: 100%; }
body.nl3 a { color: var(--nl-bone); text-decoration: none; }
body.nl3 a:hover { color: var(--nl-bone-hi); }
body.nl3 :focus-visible { outline: 2px solid var(--nl-bone); outline-offset: 2px; }
body.nl3 img { max-width: 100%; height: auto; }
.nl-wrap { max-width: var(--nl-max); margin: 0 auto; padding-left: var(--nl-gutter); padding-right: var(--nl-gutter); box-sizing: border-box; }
.nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-kicker { margin: 0; font-family: var(--nl-mono); font-size: 13px; color: var(--nl-bone-dim); letter-spacing: .12em; text-transform: uppercase; }
.nl-mono { font-family: var(--nl-mono); }
.nl-retro { font-family: var(--nl-retro); }
.nl-muted { color: var(--nl-muted); }
.nl-h2 { margin: 0; font-size: 48px; line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.nl-h3 { margin: 0; font-size: 28px; letter-spacing: -.02em; font-weight: 700; }
.nl-section { padding: 88px 0; }
.nl-band { background: var(--nl-bg-2); border-top: 1px solid var(--nl-line); border-bottom: 1px solid var(--nl-line); }
.nl-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.nl-section-head > div { display: flex; flex-direction: column; gap: 10px; }
.nl-section-head p.nl-lede { margin: 0; max-width: 440px; color: var(--nl-muted); font-size: 15px; }

/* ---------- buttons ---------- */
.nl-btn, .nl-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 2px;
  font-family: var(--nl-sans); font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; box-sizing: border-box;
}
body.nl3 .nl-btn { background: var(--nl-bone); color: var(--nl-bg); border: 0; }
body.nl3 .nl-btn:hover { background: var(--nl-bone-hi); color: var(--nl-bg); }
body.nl3 .nl-ghost { background: transparent; color: var(--nl-text); border: 1px solid var(--nl-line-2); font-weight: 500; }
body.nl3 .nl-ghost:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-btn--sm, .nl-ghost--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.nl-input {
  min-height: 48px; padding: 0 14px; box-sizing: border-box;
  background: var(--nl-bg); color: var(--nl-text); border: 1px solid var(--nl-line-2); border-radius: 0;
  font-family: var(--nl-mono); font-size: 14px;
}
.nl-input:focus { outline: 2px solid var(--nl-bone); outline-offset: 2px; }

/* ---------- ticker + header ---------- */
.nl-ticker { border-bottom: 1px solid var(--nl-line); background: var(--nl-bg-2); font-family: var(--nl-mono); font-size: 12px; color: var(--nl-muted); letter-spacing: .04em; }
.nl-ticker .nl-wrap { display: flex; gap: 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.nl-ticker strong { color: var(--nl-bone); font-weight: 400; }
.nl-ticker strong { flex-shrink: 0; }
.nl-ticker .nl-wrap { flex-wrap: nowrap; align-items: center; }
.nl-ticker__track { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.nl-ticker__run { display: inline-flex; gap: 24px; }
.nl-ticker__track.is-scrolling .nl-ticker__run { padding-right: 24px; }
.nl-ticker__track.is-scrolling { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.nl-ticker__track.is-scrolling .nl-ticker__run { animation: nl-ticker var(--nl-ticker-s, 40s) linear infinite; }
.nl-ticker__track.is-scrolling:hover .nl-ticker__run, .nl-ticker__track.is-scrolling:focus-within .nl-ticker__run { animation-play-state: paused; }
.nl-ticker__eternal b { color: var(--nl-bone); font-weight: 400; }
@keyframes nl-ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .nl-ticker__track.is-scrolling .nl-ticker__run { animation: none; }
  .nl-ticker__track { overflow-x: auto; }
}
.nl-header .nl-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
body.nl3 .nl-logo { display: flex; align-items: baseline; gap: 10px; color: var(--nl-text); }
.nl-logo__mark { font-family: var(--nl-retro); font-size: 34px; color: var(--nl-bone); line-height: 1; }
.nl-logo__word { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.nl-logo__word span { color: var(--nl-bone-dim); }
.nl-nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--nl-mono); font-size: 14px; }
body.nl3 .nl-nav a { color: var(--nl-text-2); }
body.nl3 .nl-nav a:hover, body.nl3 .nl-nav a[aria-current="page"] { color: var(--nl-bone); }

/* ---------- hero (home) ---------- */
.nl-hero .nl-wrap { padding-top: 72px; padding-bottom: 56px; display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.nl-hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.nl-hero__title { margin: 0; font-size: 104px; line-height: .92; font-weight: 700; letter-spacing: -.045em; }
.nl-hero__title span { color: var(--nl-bone); }
.nl-hero__handle { margin-top: -8px; font-family: var(--nl-mono); font-size: 16px; }
.nl-hero__bio { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--nl-text-2); }
.nl-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nl-hero__figure { flex: 1 1 300px; display: flex; justify-content: center; }
.nl-hero__figure figure { margin: 0; padding: 14px; border: 1px solid var(--nl-line); background: var(--nl-panel); display: flex; flex-direction: column; gap: 10px; }
body.nl3 .nl-hero__figure img { width: 280px; height: 280px; object-fit: cover; display: block; }
.nl-hero__figure figcaption { font-family: var(--nl-mono); font-size: 12px; color: var(--nl-muted); display: flex; justify-content: space-between; }

/* ---------- status strip ---------- */
.nl-status .nl-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nl-status__item { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--nl-mono); min-width: 0; }
.nl-status__name { font-size: 12px; color: var(--nl-muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-status__state { font-size: 15px; color: var(--nl-text); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nl-status__dot { width: 8px; height: 8px; background: var(--nl-faint); display: inline-block; flex-shrink: 0; }
[data-state="online"] .nl-status__dot { background: var(--nl-bone); }
[data-state="offline"] .nl-status__dot { background: transparent; border: 1px solid var(--nl-muted); box-sizing: border-box; }
[data-state="checking"] .nl-status__dot { animation: nl-blink 1s steps(2) infinite; }
[data-state="degraded"] .nl-status__dot { background: linear-gradient(90deg, var(--nl-bone) 50%, transparent 50%); border: 1px solid var(--nl-bone); box-sizing: border-box; }

/* link preview card under a VAAK note (/api/ap-link-preview.php) */
.nl-note__card { display: flex; gap: 12px; margin-top: 10px; border: 1px solid var(--nl-line, var(--nl-faint)); padding: 10px; color: inherit; text-decoration: none; min-width: 0; }
.nl-note__card:hover { border-color: var(--nl-bone); }
body.nl3 .nl-note__card img { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.nl-note__card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nl-note__card-provider { font-family: var(--nl-mono); font-size: 11px; color: var(--nl-muted); text-transform: uppercase; letter-spacing: .06em; }
.nl-note__card-title { font-weight: 600; overflow-wrap: anywhere; }
.nl-note__card-desc { font-size: 13px; color: var(--nl-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.nl-status__item--link { color: inherit; text-decoration: none; }
a.nl-status__item--link:hover .nl-status__name, a.nl-status__item--link:focus-visible .nl-status__name { color: var(--nl-bone); }
a.nl-status__item--link:focus-visible { outline: 1px solid var(--nl-bone); outline-offset: 2px; }
.nl-status__metric { font-size: 12px; color: var(--nl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes nl-blink { 50% { opacity: .2; } }

/* ---------- feed + brain juice ---------- */
.nl-split { display: flex; gap: 56px; flex-wrap: wrap; }
.nl-split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nl-split__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nl-feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nl-feed-head h2 { margin: 0; font-size: 40px; letter-spacing: -.03em; font-weight: 700; }
.nl-feed-head h2 span { color: var(--nl-bone); }
.nl-note { border: 1px solid var(--nl-line); background: var(--nl-panel); padding: 20px 22px; display: flex; gap: 16px; transition: border-color .15s ease, transform .15s ease; }
.nl-note:hover { border-color: var(--nl-bone); }
body.nl3 .nl-note__avatar { width: 44px; height: 44px; object-fit: cover; flex-shrink: 0; align-self: flex-start; }
.nl-note__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.nl-note__meta { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.nl-note__meta b { color: var(--nl-text); font-weight: 600; }
body.nl3 .nl-note__meta a { color: var(--nl-muted); }
.nl-note__text { font-size: 17px; line-height: 1.5; color: var(--nl-text); overflow-wrap: anywhere; }
.nl-note__text p { margin: 0 0 .6em; } .nl-note__text p:last-child { margin: 0; }
.nl-note__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.nl-note__media img, .nl-note__media video { width: 100%; max-height: 360px; object-fit: cover; border: 1px solid var(--nl-line); display: block; }
.nl-note__media video { object-fit: contain; background: #000; }
.nl-note__media audio { width: 100%; grid-column: 1 / -1; }
.nl-note__vidlink { position: relative; display: block; min-height: 120px; background: #000; border: 1px solid var(--nl-line); color: var(--nl-bone); text-decoration: none; }
.nl-note__vidlink img { border: 0; opacity: .75; }
.nl-note__vidlink span { position: absolute; inset: auto 10px 10px auto; padding: 4px 10px; background: rgba(0,0,0,.75); font-family: var(--nl-mono, monospace); font-size: 13px; }
.nl-note__cw { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-bone-dim); }
.nl-note__stats { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); display: flex; gap: 18px; }
.nl-feed-empty { font-family: var(--nl-mono); font-size: 14px; color: var(--nl-muted); border: 1px dashed var(--nl-line-2); padding: 20px; }
.nl-ascii-rule { margin: 0; font-family: var(--nl-retro); font-size: 20px; color: var(--nl-bone-dim); }
body.nl3 .nl-postlink { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px dashed var(--nl-line); color: var(--nl-text); }
.nl-postlink__date { font-family: var(--nl-mono); font-size: 12px; color: var(--nl-muted); }
.nl-postlink__title { font-size: 18px; font-weight: 500; line-height: 1.35; }
body.nl3 .nl-postlink:hover .nl-postlink__title { color: var(--nl-bone); }

/* ---------- cards ---------- */
.nl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.nl-grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
body.nl3 .nl-card { border: 1px solid var(--nl-line); background: var(--nl-panel); padding: 26px; display: flex; flex-direction: column; gap: 14px; color: var(--nl-text); transition: border-color .15s ease, transform .15s ease; box-sizing: border-box; }
body.nl3 a.nl-card:hover { border-color: var(--nl-bone); transform: translateY(-2px); color: var(--nl-text); }
.nl-card--portal { min-height: 260px; justify-content: space-between; gap: 20px; }
.nl-card__tag { font-family: var(--nl-retro); font-size: 22px; color: var(--nl-bone); }
.nl-card__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.nl-card__text { font-size: 15px; line-height: 1.5; color: var(--nl-text-2); margin: 0; }
.nl-card__cta { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-bone); }
body.nl3 .nl-card--product { padding: 0; gap: 0; }
.nl-card__cover { height: 170px; border-bottom: 1px solid var(--nl-line); display: flex; align-items: center; justify-content: center; font-family: var(--nl-retro); font-size: 22px; color: var(--nl-faint); background: repeating-linear-gradient(45deg, #161616 0, #161616 10px, #121212 10px, #121212 20px); overflow: hidden; }
body.nl3 .nl-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.nl-card__cover { position: relative; }
.nl-card__badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border: 1px solid var(--nl-bone); background: var(--nl-bg, #101010); color: var(--nl-bone); font-family: var(--nl-mono, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nl-grid--solo { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  body.nl3 .nl-grid--solo .nl-card--product { display: grid; grid-template-columns: 3fr 2fr; }
  body.nl3 .nl-grid--solo .nl-card__cover { height: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--nl-line); }
  body.nl3 .nl-grid--solo .nl-card__inner { display: flex; flex-direction: column; justify-content: center; }
}
.nl-card__inner { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.nl-card__buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nl-price { font-family: var(--nl-mono); font-size: 18px; color: var(--nl-text); }
.nl-dashed { border: 1px dashed var(--nl-line-2); padding: 28px; display: flex; gap: 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 16px; }
.nl-dashed__copy { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; }
.nl-dashed__copy h3 { margin: 0; font-size: 22px; }
.nl-dashed__copy p { margin: 0; color: var(--nl-muted); font-size: 15px; }
.nl-inline-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 380px; margin: 0; }
.nl-inline-form .nl-input { flex: 1 1 220px; }
.nl-form-msg { margin: 0; font-family: var(--nl-mono); font-size: 14px; color: var(--nl-bone); flex: 1 1 100%; }
.nl-form-msg[hidden] { display: none; }

/* music */
.nl-artists { display: flex; gap: 16px; flex-wrap: wrap; }
.nl-artist { flex: 1 1 420px; min-width: 0; border: 1px solid var(--nl-line); background: var(--nl-panel); padding: 26px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.nl-artist__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nl-artist__head h3 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.nl-artist__about { margin: -6px 0 0; color: var(--nl-muted); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.nl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.nl3 .nl-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--nl-line-2); color: var(--nl-text); font-size: 14px; font-family: var(--nl-mono); }
body.nl3 .nl-chip:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-artist__links { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--nl-mono); font-size: 13px; }
.nl-vault { border: 1px solid var(--nl-bone); padding: 24px 26px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 16px; }
.nl-vault__copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 360px; }
.nl-vault__copy b { font-size: 20px; }

/* ---------- footer ---------- */
.nl-footer { border-top: 1px solid var(--nl-line); background: var(--nl-bg-2); margin-top: 0; }
.nl-footer .nl-wrap { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.nl-footer pre { margin: 0; font-family: var(--nl-retro); font-size: 18px; line-height: 1.1; color: var(--nl-bone-dim); background: none; border: 0; padding: 0; }
.nl-badges { display: flex; gap: 8px; flex-wrap: wrap; }
body.nl3 .nl-badge { width: 88px; height: 31px; box-sizing: border-box; border: 1px solid var(--nl-line-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--nl-retro); font-size: 16px; color: var(--nl-text-2); background: var(--nl-panel); }
body.nl3 .nl-badge:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-footer__fine { margin: 0; font-family: var(--nl-mono); font-size: 12px; color: var(--nl-muted); }
.nl-webrings { border-top: 1px dashed var(--nl-line); }
.nl-webrings .webring-stack { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; }
.nl-webrings .webring-card, .nl-webrings .webring-card p { margin: 0; }
.nl-webrings .fur-innie { display: inline-flex; gap: 10px; }
.nl-webrings .webring-card p { display: inline; }
.nl-webrings .nl-wrap { padding-top: 20px; padding-bottom: 20px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; font-family: var(--nl-mono); font-size: 12px; color: var(--nl-muted); }

/* ---------- page header (portal / generic) ---------- */
.nl-pagehead .nl-wrap { padding-top: 64px; padding-bottom: 72px; display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-end; }
.nl-pagehead--top .nl-wrap { align-items: flex-start; }
.nl-pagehead__copy { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.nl-pagehead__title { margin: 0; font-size: 96px; line-height: .92; font-weight: 700; letter-spacing: -.045em; }
.nl-pagehead__title span { color: var(--nl-bone); }
.nl-pagehead__title--md { font-size: 84px; }
.nl-pagehead__lede { margin: 0; max-width: 600px; font-size: 19px; line-height: 1.55; color: var(--nl-text-2); }
.nl-panel { flex: 1 1 320px; border: 1px solid var(--nl-line); background: var(--nl-panel); font-family: var(--nl-mono); font-size: 14px; }
.nl-panel__head { padding: 12px 16px; border-bottom: 1px solid var(--nl-line); color: var(--nl-muted); display: flex; justify-content: space-between; }
.nl-panel__row { padding: 12px 16px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--nl-line); }
.nl-panel__row:last-child { border-bottom: 0; }
.nl-panel__row span:first-child { color: var(--nl-muted); }
.nl-steps { counter-reset: nlstep; }
.nl-step__n { font-family: var(--nl-retro); font-size: 44px; color: var(--nl-bone); line-height: 1; }
.nl-step h3 { margin: 0; font-size: 22px; }
.nl-uri { border: 1px dashed var(--nl-line-2); padding: 22px 26px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-family: var(--nl-mono); margin-top: 16px; }
.nl-uri code { font-size: 18px; color: var(--nl-bone); overflow-wrap: anywhere; background: none; border: 0; padding: 0; }
.nl-callout { border: 1px solid var(--nl-bone-dim); background: var(--nl-panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 340px; box-sizing: border-box; }
.nl-callout h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.nl-callout p { margin: 0; color: var(--nl-text-2); font-size: 15px; }
.nl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.nl-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--nl-text-2); }
.nl-list li::before { content: "▹"; font-family: var(--nl-mono); color: var(--nl-bone); flex-shrink: 0; }
.nl-list--dash li::before { content: "—"; color: var(--nl-muted); }
.nl-list strong { color: var(--nl-text); font-weight: 600; }

/* ---------- post ---------- */
.nl-progress { height: 3px; background: var(--nl-panel); position: sticky; top: 0; z-index: 50; }
.nl-progress__fill { height: 3px; width: 0; background: var(--nl-bone); transition: width .1s linear; }
.nl-posthead .nl-wrap { padding-top: 48px; padding-bottom: 40px; }
.nl-posthead__inner { max-width: 860px; display: flex; flex-direction: column; gap: 20px; }
.nl-crumbs { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-bone-dim); letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 12px; flex-wrap: wrap; }
body.nl3 .nl-crumbs a { color: var(--nl-bone-dim); }
.nl-posthead__title { margin: 0; font-size: 72px; line-height: .98; font-weight: 700; letter-spacing: -.04em; }
.nl-posthead__desc { margin: 0; font-size: 20px; line-height: 1.5; color: var(--nl-text-2); max-width: 680px; }
.nl-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 8px; font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); }
body.nl3 .nl-byline img { width: 40px; height: 40px; object-fit: cover; }
body.nl3 .nl-byline a.p-author { color: var(--nl-text); }
.nl-postbody .nl-wrap { display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-start; border-top: 1px solid var(--nl-line); padding-bottom: 80px; }
.nl-prose { flex: 999 1 560px; min-width: 0; max-width: 720px; padding-top: 40px; font-family: var(--nl-serif); font-size: 21px; line-height: 1.7; color: var(--nl-prose); overflow-wrap: break-word; }
.nl-prose > * { max-width: 100%; }
.nl-prose p, .nl-prose ul, .nl-prose ol, .nl-prose blockquote, .nl-prose pre, .nl-prose figure, .nl-prose table { margin: 0 0 1.3em; }
.nl-prose h1, .nl-prose h2, .nl-prose h3, .nl-prose h4 { font-family: var(--nl-sans); color: var(--nl-text); letter-spacing: -.02em; line-height: 1.15; margin: 1.6em 0 .6em; }
.nl-prose h2 { font-size: 34px; } .nl-prose h3 { font-size: 26px; } .nl-prose h4 { font-size: 21px; }
.nl-prose strong { color: var(--nl-text); }
body.nl3 .nl-prose a { color: var(--nl-bone); text-decoration: underline; text-decoration-color: #5a5853; text-underline-offset: 3px; }
body.nl3 .nl-prose a:hover { color: var(--nl-bone-hi); text-decoration-color: var(--nl-bone); }
.nl-prose ul, .nl-prose ol { padding-left: 1.3em; }
.nl-prose li { margin: 0 0 .45em; }
.nl-prose ul li::marker { color: var(--nl-bone-dim); content: "▹  "; }
.nl-prose blockquote { padding: 18px 22px; border: 1px dashed var(--nl-line-2); background: var(--nl-panel-2); font-family: var(--nl-mono); font-size: 15px; line-height: 1.6; color: var(--nl-text-2); }
.nl-prose blockquote p:last-child { margin: 0; }
.nl-prose code { font-family: var(--nl-mono); font-size: .8em; background: var(--nl-panel); border: 1px solid var(--nl-line); padding: .1em .35em; }
.nl-prose pre { font-family: var(--nl-mono); font-size: 14px; line-height: 1.55; background: var(--nl-panel-2); border: 1px solid var(--nl-line); padding: 16px 18px; overflow-x: auto; }
.nl-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.nl-prose img, .nl-prose video, .nl-prose iframe { max-width: 100%; height: auto; border: 1px solid var(--nl-line); display: block; }
.nl-prose hr { border: 0; border-top: 1px dashed var(--nl-line-2); margin: 2em 0; }
.nl-prose table { border-collapse: collapse; font-family: var(--nl-sans); font-size: 15px; display: block; overflow-x: auto; }
.nl-prose th, .nl-prose td { border: 1px solid var(--nl-line); padding: 8px 10px; text-align: left; }
.nl-side { flex: 1 1 280px; min-width: 0; padding-top: 40px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; font-family: var(--nl-mono); font-size: 13px; }
.nl-side__label { color: var(--nl-muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; display: block; margin-bottom: 10px; }
body.nl3 .nl-tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--nl-line-2); color: var(--nl-text-2); }
body.nl3 .nl-tag:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-side__box { border: 1px solid var(--nl-line); background: var(--nl-panel); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.nl-side__box p { margin: 0; color: var(--nl-muted); font-family: var(--nl-sans); font-size: 14px; line-height: 1.5; }
.nl-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-tools button { font-family: var(--nl-mono); font-size: 13px; min-height: 36px; padding: 0 12px; background: transparent; color: var(--nl-text-2); border: 1px solid var(--nl-line-2); cursor: pointer; }
.nl-tools button:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-replies .nl-wrap { padding-top: 56px; padding-bottom: 56px; }
.nl-prevnext { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-family: var(--nl-mono); font-size: 14px; }

/* fediverse comments include, restyled */
body.nl3 .fediverse-comments-panel { max-width: 760px; background: none; border: 0; padding: 0; margin: 0; }
body.nl3 .fediverse-comments-title { font-family: var(--nl-sans); font-size: 28px; letter-spacing: -.02em; color: var(--nl-text); margin: 0 0 6px; }
body.nl3 .fediverse-comments-kicker { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); margin: 0 0 16px; }
body.nl3 .fediverse-comments-kicker code { color: var(--nl-bone); background: none; }
body.nl3 .fediverse-comments-list > * { border-color: var(--nl-line) !important; background: var(--nl-panel) !important; color: var(--nl-text-2); }

/* ---------- clearance (support pages keep support-pages.js wiring) ---------- */
body.nl3 .support-page { max-width: var(--nl-max); margin: 0 auto; padding: 56px var(--nl-gutter) 80px; box-sizing: border-box; }
body.nl3 .support-panel, body.nl3 .clearance-panel { background: var(--nl-panel); border: 1px solid var(--nl-line); border-radius: 0; box-shadow: none; color: var(--nl-text-2); }
body.nl3 .support-page h1, body.nl3 .support-page h2 { font-family: var(--nl-sans); color: var(--nl-text); letter-spacing: -.03em; }
body.nl3 .support-page .btn-primary, body.nl3 .support-page .subscribe-btn { background: var(--nl-bone); color: var(--nl-bg); border: 0; border-radius: 2px; }
body.nl3 .support-page .btn-secondary { background: transparent; color: var(--nl-text); border: 1px solid var(--nl-line-2); border-radius: 2px; }
body.nl3 .support-page input[type="email"] { background: var(--nl-bg); color: var(--nl-text); border: 1px solid var(--nl-line-2); border-radius: 0; font-family: var(--nl-mono); }
body.nl3 .clearance-kicker { font-family: var(--nl-mono); color: var(--nl-bone-dim); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }

body.nl3 .support-btn, body.nl3 .support-btn.primary { background: var(--nl-bone); color: var(--nl-bg); border: 0; border-radius: 2px; animation: none; box-shadow: none; font-family: var(--nl-sans); font-weight: 700; min-height: 48px; }
body.nl3 .support-btn:hover { background: var(--nl-bone-hi); color: var(--nl-bg); transform: none; }
body.nl3 .support-page a, body.nl3 .manage-page a, body.nl3 .clearance-page a { color: var(--nl-bone); }
body.nl3 .support-page .price, body.nl3 .manage-page .price { color: var(--nl-text); font-family: var(--nl-sans); }
body.nl3 .support-btn:focus-visible, body.nl3 .email-form input:focus-visible { outline-color: var(--nl-bone); }
body.nl3 .success-message, body.nl3 .info-message { border-color: var(--nl-bone-dim) !important; color: var(--nl-text-2) !important; background: var(--nl-panel) !important; }
body.nl3 .home-button-container { display: none; }

/* ---------- legacy pages (layout: page / note / log / toot …) ---------- */
body.nl3 .nl-legacy { padding: 48px 0 80px; }
body.nl3 .nl-legacy #main, body.nl3 .nl-legacy table, body.nl3 .nl-legacy td { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.nl3 .nl-legacy table:first-child { width: 100%; }
body.nl3 .nl-legacy .read-title { display: block; font-family: var(--nl-sans); font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--nl-text); margin: 0 0 32px; }
body.nl3 .nl-legacy h1, body.nl3 .nl-legacy h2, body.nl3 .nl-legacy h3 { font-family: var(--nl-sans); color: var(--nl-text); letter-spacing: -.02em; }
body.nl3 .nl-legacy p, body.nl3 .nl-legacy li { color: var(--nl-text-2); }

/* ---------- responsive (viewport + container) ---------- */
@media (max-width: 760px) {
  :root { --nl-gutter: 16px; }
  .nl-header .nl-wrap { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
  .nl-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .nl-nav::-webkit-scrollbar { display: none; }
  body.nl3 .nl-nav a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--nl-line); background: var(--nl-bg-2); }
  .nl-hero .nl-wrap, .nl-pagehead .nl-wrap { padding-top: 32px; padding-bottom: 48px; }
  .nl-hero__title { font-size: 48px; }
  .nl-pagehead__title, .nl-pagehead__title--md { font-size: 44px; }
  .nl-posthead__title { font-size: 40px; }
  .nl-hero__figure, .nl-hide-sm { display: none !important; }
  .nl-section { padding: 56px 0; }
  .nl-h2, .nl-feed-head h2 { font-size: 32px; }
  .nl-card, .nl-artist, .nl-callout { padding: 20px; }
  .nl-prose { font-size: 18px; }
  .nl-side { position: static; }
  body.nl3 .nl-legacy .read-title { font-size: 40px; }
}

/* ---- Legacy page color pass: the old cyan/lime accents, re-skinned to Bone ---- */
body.nl3 .nl-legacy :is(.about-hero, .about-card, .bookmark-card, .disco-hero, .disco-cycle, .blogroll-card, .podroll-card,
  .book-universe, .book-item, .gallery-toolbar, .waifu, .sims-hero, .sims-section, .sl-hero, .sl-section,
  .slh-hero, .slh-section, .slh-guide, .debian-hero, .debian-section, .debian-video-wrap, .debian-app-col,
  .ap-hero, .ap-section, .ap-card, details, .ft-hero, .ft-section, .wd-hero, .wd-section, .wd-tool-card) { border-color: var(--nl-line-2) !important; }
body.nl3 .nl-legacy :is(.gallery-action-btn, .gallery-page-btn, .sims-action-btn, .sl-action-btn, .debian-action-btn) { border-color: var(--nl-bone-dim) !important; }
body.nl3 .nl-legacy :is(.gallery-action-btn, .gallery-page-btn, .sims-action-btn, .sl-action-btn, .debian-action-btn):is(:hover, :focus-visible) { border-color: var(--nl-bone) !important; }
body.nl3 .nl-legacy :is(.debian-note, .ap-note, .ft-note, .wd-note, .debian-update) { border-color: var(--nl-line-2) !important; border-left-color: var(--nl-bone) !important; }
body.nl3 .nl-legacy code { border-color: var(--nl-line-2) !important; }
body.nl3 .nl-complex-shot { display: block; width: 100%; height: auto; border: 1px solid var(--nl-line); margin: 0 0 22px; image-rendering: pixelated; }
body.nl3 .nl-split > .nl-callout { align-self: start; }

/* ---- Music: one card per project, banner on top ---- */
body.nl3 .nl-artist--music { padding: 0; gap: 0; overflow: hidden; }
.nl-artist__banner { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--nl-line); background: #000; }
.nl-artist__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.nl-buylist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nl-line); }
.nl-buyrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nl-line); }
body.nl3 .nl-buyrow__title { flex: 1; min-width: 0; color: var(--nl-text); font-size: 17px; font-weight: 500; }
body.nl3 .nl-buyrow__title:hover { color: var(--nl-bone); }
.nl-vault--inline { margin-top: 0; padding: 18px 20px; }
.nl-vault--inline .nl-vault__copy { flex-basis: 220px; }
.nl-vault--inline .nl-vault__copy b { font-size: 17px; }
.nl-vault__buy { display: flex; gap: 14px; align-items: center; }
@media (max-width: 640px) { .nl-artist__body { padding: 20px; } }
.nl-shots { display: grid; grid-template-columns: 1fr 1.9fr; gap: 12px; margin-top: 24px; align-items: start; }
.nl-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--nl-line); image-rendering: pixelated; }
.nl-shots .nl-shots__wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .nl-shots { grid-template-columns: 1fr; } }
body.nl3 .nl-split > .nl-split__side { align-self: start; } body.nl3 .nl-split__side > .nl-callout { flex: 0 0 auto; }
body.nl3 .nl-studio-shot { max-width: 760px; margin: 0; }

/* ---- Post sidebar: reply from your fediverse account ---- */
.nl-reply { display: flex; gap: 8px; margin-top: 4px; }
body.nl3 .nl-reply input { flex: 1; min-width: 0; background: var(--nl-bg); border: 1px solid var(--nl-line); color: var(--nl-text); font-family: var(--nl-mono); font-size: 14px; padding: 9px 10px; border-radius: 0; }
body.nl3 .nl-reply input:focus { outline: none; border-color: var(--nl-bone); }
body.nl3 .nl-reply .nl-btn { flex: none; }
body.nl3 .nl-side__box .nl-reply__msg { color: var(--nl-bone); font-family: var(--nl-mono); font-size: 13px; word-break: break-all; }
body.nl3 .nl-side__box .nl-reply__alt { font-size: 13px; }
body.nl3 .nl-reply__copy { background: none; border: 0; padding: 0; font: inherit; color: var(--nl-text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.nl3 .nl-reply__copy:hover { color: var(--nl-bone); }

/* ---- VAAK feed: full-size image viewer ---- */
body.nl3 .nl-note__zoom { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
body.nl3 .nl-note__zoom:focus-visible { outline: 2px solid var(--nl-bone); outline-offset: 2px; }
html.nl-lightbox-open { overflow: hidden; }
.nl-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .94); color: var(--nl-text); }
.nl-lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.nl-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.nl-lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); }
body.nl3 .nl-lightbox__img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border: 1px solid var(--nl-line); cursor: default; }
.nl-lightbox__cap { font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); max-width: 70ch; text-align: center; }
.nl-lightbox__cap:empty { display: none; }
body.nl3 .nl-lightbox__btn { position: absolute; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--nl-line-2); background: var(--nl-panel); color: var(--nl-text); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
body.nl3 .nl-lightbox__btn:hover, body.nl3 .nl-lightbox__btn:focus-visible { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-lightbox__close { top: 16px; right: 16px; }
.nl-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.nl-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.nl-lightbox__btn[hidden] { display: none !important; }
body.nl3 .nl-lightbox__orig { position: absolute; bottom: 16px; right: 16px; font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); }
body.nl3 .nl-lightbox__orig:hover { color: var(--nl-bone); }
@media (max-width: 640px) { .nl-lightbox__prev, .nl-lightbox__next { top: auto; bottom: 16px; transform: none; } .nl-lightbox__next { right: auto; left: 72px; } }

/* ---- Footer webrings: pages that still load the legacy main.css get its
   sidebar webring card styles (column stack, Hotline glow, Fur Ring bevels).
   Undo them so every page matches the homepage row. ---- */
body.nl3 .nl-webrings .webring-stack { flex-direction: row; }
body.nl3 .nl-webrings .webring-card { width: auto; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; }
body.nl3 .nl-webrings .webring-inline { font-size: inherit; letter-spacing: 0; color: inherit; }
body.nl3 .nl-webrings .hotline { display: inline-flex; gap: 10px; padding: 0; background: none; box-shadow: none; position: static; font: inherit; color: inherit; }
body.nl3 .nl-webrings .hotline::before, body.nl3 .nl-webrings .hotline::after { content: none; display: none; }
body.nl3 .nl-webrings .hotline a { padding: 0; border-radius: 0; font-weight: inherit; text-shadow: none; color: var(--nl-text-2); }
body.nl3 .nl-webrings .fur-wrapper { width: auto; border: 0; text-align: left; display: inline-flex; gap: 10px; align-items: center; }
body.nl3 .nl-webrings .fur-wrapper p { border: 0; padding: 0; }
body.nl3 .nl-webrings .fur-innie a { flex: none; padding: 0; border: 0; }

/* ---- Back-to-top button: Bone on every page (legacy main.css made it a green pill,
   NovaLandia 3.0 pages left it unstyled in the footer) ---- */
body.nl3 #back-to-top-btn { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: 10px 14px; border: 1px solid var(--nl-line-2); border-radius: 0; background: var(--nl-panel); color: var(--nl-text); font-family: var(--nl-mono); font-size: 13px; box-shadow: none; opacity: 1; cursor: pointer; }
body.nl3 #back-to-top-btn:hover, body.nl3 #back-to-top-btn:focus-visible { border-color: var(--nl-bone); color: var(--nl-bone); }

/* ---- Shop: buy messages + download page ---- */
body.nl3 .nl-buy__msg { flex-basis: 100%; margin: 6px 0 0; font-family: var(--nl-mono); font-size: 13px; color: var(--nl-bone); }
body.nl3 .nl-buy__msg:empty { display: none; }
body.nl3 .nl-dl { flex: 0 1 420px; align-self: start; min-width: 0; max-width: 100%; box-sizing: border-box; }
body.nl3 .nl-dl__name { font-size: 20px; }
body.nl3 .nl-dl__name:empty, body.nl3 .nl-dl__meta:empty { display: none; }
body.nl3 .nl-dl__note { margin: 0; color: var(--nl-muted); font-size: 14px; line-height: 1.5; }
body.nl3 .nl-dl .nl-btn { align-self: flex-start; }

/* Phones: webring rows wrap instead of pushing the page sideways. */
body.nl3 .nl-webrings .webring-stack, body.nl3 .nl-webrings .webring-card,
body.nl3 .nl-webrings .fur-wrapper, body.nl3 .nl-webrings .fur-innie { min-width: 0; max-width: 100%; flex-wrap: wrap; }
body.nl3 .nl-webrings .nl-wrap > * { min-width: 0; max-width: 100%; }
/* Safety net: nothing may widen the page (clip keeps sticky headers working). */
html, body.nl3 { overflow-x: clip; }

/* ETERNAL page: live version line under the cover. */
.nl-eternal-ver { margin: 10px 0 0; font-size: 13px; color: var(--nl-muted); letter-spacing: .04em; }
.nl-studio-blurb { margin: 10px 0 0; max-width: 46ch; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.01em; color: var(--nl-bone-hi); }

/* ---------- search page, footer follow, home side widgets ---------- */
.nl-search { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.nl-search__row, .nl-follow__row { display: flex; gap: 10px; flex-wrap: wrap; }
body.nl3 .nl-search__row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 14px; box-sizing: border-box; background: var(--nl-bg); color: var(--nl-text); border: 1px solid var(--nl-line-2); border-radius: 0; font-family: var(--nl-mono); font-size: 16px; }
.nl-follow { display: flex; flex-direction: column; gap: 6px; flex: 1 1 300px; max-width: 460px; min-width: 0; margin: 0; }
.nl-follow .nl-side__label { margin-bottom: 0; text-transform: none; letter-spacing: .02em; }
.nl-follow .nl-input { flex: 1 1 200px; min-width: 0; font-size: 16px; }
.nl-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
body.nl3 .nl-tagcloud .nl-tag { min-height: 30px; padding: 0 10px; font-family: var(--nl-mono); font-size: 13px; }
.nl-side__more { font-size: 13px; color: var(--nl-muted); align-self: flex-start; }
.nl-side__more:hover { color: var(--nl-bone); }
.nl-radio { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--nl-line-2); color: var(--nl-text); text-decoration: none; }
.nl-radio:hover { border-color: var(--nl-bone); }
.nl-radio__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nl-bone); flex: 0 0 auto; animation: nl-radio-pulse 2.4s ease-in-out infinite; }
.nl-radio__text { display: flex; flex-direction: column; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.nl-radio__text span { color: var(--nl-muted); font-family: var(--nl-mono); font-size: 12px; }
@keyframes nl-radio-pulse { 50% { opacity: .3; } }
.nl-lastlisten { display: flex; gap: 12px; align-items: center; }
.nl-lastlisten[hidden] { display: none; }
.nl-lastlisten__art { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--nl-line-2); flex: 0 0 auto; }
.nl-lastlisten__art[hidden] { display: none; }
.nl-lastlisten__info { display: flex; flex-direction: column; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.nl-lastlisten__info span { color: var(--nl-muted); }
.nl-lastlisten__when { font-size: 12px; }
.nl-roster__mode { color: var(--nl-bone-dim); }
.nl-roster__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nl-roster__list li { display: flex; align-items: center; gap: 10px; font-family: var(--nl-mono); font-size: 14px; color: var(--nl-text-2); min-width: 0; overflow-wrap: anywhere; }
.nl-roster__avatar { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--nl-line-2); display: grid; place-items: center; color: var(--nl-bone-dim); overflow: hidden; }
.nl-roster__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-roster__placeholder, .nl-roster__more { color: var(--nl-muted); }
.nl-roster__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--nl-muted); }
body.nl3 .nl-roster__refresh { background: none; border: 1px solid var(--nl-line-2); color: var(--nl-text-2); font-family: var(--nl-mono); font-size: 12px; padding: 4px 10px; min-height: 30px; cursor: pointer; }
body.nl3 .nl-roster__refresh:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
.nl-roster.is-checking .nl-roster__refresh { opacity: .5; }
.nl-haunt__frame { position: relative; isolation: isolate; width: 100%; max-width: 230px; aspect-ratio: 230 / 336; margin: 0 auto; overflow: hidden; border: 1px solid var(--nl-bone-dim); background: #080b0c; box-sizing: border-box; animation: nl-haunt-breathe 14s steps(1, end) infinite; }
.nl-haunt__frame img, .nl-haunt__frame canvas { display: block; width: 100%; height: auto; margin: 0; }
.nl-haunt__frame.is-loading img { opacity: 0; }
.nl-haunt__frame::before { position: absolute; z-index: 2; inset: 0; pointer-events: none; content: ''; mix-blend-mode: multiply; background: linear-gradient(to bottom, transparent 49%, rgba(2,9,10,.17) 50%), radial-gradient(ellipse at center, transparent 47%, rgba(0,0,0,.47) 100%); background-size: 100% 4px, 100% 100%; }
.nl-haunt__frame::after { position: absolute; z-index: 3; top: -18%; left: 0; right: 0; height: 12%; pointer-events: none; content: ''; opacity: 0; background: linear-gradient(to bottom, transparent, rgba(230,220,190,.14), transparent); }
.nl-haunt__static { position: absolute; z-index: 4; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .025; background-image: repeating-radial-gradient(circle at 37% 42%, rgba(230,220,190,.12) 0 1px, transparent 1px 4px); }
.nl-haunt__frame.is-awake { border-color: var(--nl-bone); }
.nl-haunt__frame.is-awake canvas { animation: nl-haunt-slip .26s steps(2, end) infinite; filter: contrast(1.04) saturate(.88); }
.nl-haunt__frame.is-awake::after { opacity: 1; animation: nl-haunt-scan .7s linear infinite; }
.nl-haunt__frame.is-awake .nl-haunt__static { opacity: .1; animation: nl-haunt-static .19s steps(2, end) infinite; }
@keyframes nl-haunt-breathe { 0%, 91%, 94%, 100% { border-color: var(--nl-bone-dim); } 92% { border-color: var(--nl-bone); } 93% { border-color: var(--nl-line); } }
@keyframes nl-haunt-slip { 0%, 100% { transform: translateX(0); } 33% { transform: translateX(-1px); } 66% { transform: translateX(1px); } }
@keyframes nl-haunt-scan { to { transform: translateY(980%); } }
@keyframes nl-haunt-static { 0%, 100% { transform: translate(0); } 50% { transform: translate(-2px, 1px); } }
@media (prefers-reduced-motion: reduce) { .nl-haunt__frame, .nl-haunt__frame.is-awake canvas, .nl-haunt__frame.is-awake::after, .nl-haunt__frame.is-awake .nl-haunt__static, .nl-radio__dot { animation: none; } }
.nl-roster-page__status { color: var(--nl-muted); font-size: 13px; margin: 0 0 18px; }
.nl-roster-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.nl-roster-card { border: 1px solid var(--nl-line); background: var(--nl-panel); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.nl-roster-card__avatar { width: 96px; height: 96px; border: 1px solid var(--nl-line-2); display: grid; place-items: center; font-size: 32px; color: var(--nl-bone-dim); overflow: hidden; }
.nl-roster-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-roster-card__name { font-family: var(--nl-mono); font-size: 14px; color: var(--nl-text); overflow-wrap: anywhere; }
@media (max-width: 420px) { .nl-roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nl-roster-card__avatar { width: 72px; height: 72px; } }
.nl-tagpage, .nl-tagindex { display: flex; flex-direction: column; gap: 16px; }
.nl-tagpage > *, .nl-tagindex > * { width: 100%; max-width: 860px; box-sizing: border-box; }
.nl-tagpage > .nl-ghost { width: auto; }
.nl-tagpage .nl-ghost { align-self: flex-start; margin-top: 12px; }
.nl-tagcat { border: 1px solid var(--nl-line); background: var(--nl-panel); }
.nl-tagcat summary { cursor: pointer; padding: 16px 18px; font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.nl-tagcat summary::-webkit-details-marker { display: none; }
.nl-tagcat summary::after { content: "[+]"; font-family: var(--nl-mono); font-size: 14px; color: var(--nl-muted); }
.nl-tagcat[open] summary::after { content: "[-]"; }
.nl-tagcat summary:hover { color: var(--nl-bone); }
.nl-tagcat .nl-tagcloud { list-style: none; margin: 0; padding: 0 18px 18px; }
.nl-tagcat .nl-tagcloud li { margin: 0; padding: 0; }
.nl-tag__n { color: var(--nl-muted); margin-left: 6px; font-size: 12px; }
/* ---------- search page ---------- */
.nl-searchpage { display: flex; flex-direction: column; gap: 14px; }
.nl-searchpage > * { width: 100%; max-width: 860px; box-sizing: border-box; }
.nl-searchpage .nl-search { margin: 0 0 6px; }
#search-filters { display: flex; flex-wrap: wrap; gap: 8px; }
body.nl3 .search-filter-btn { background: transparent; color: var(--nl-text-2); border: 1px solid var(--nl-line-2); border-radius: 0; padding: 0 12px; min-height: 36px; font-family: var(--nl-mono); font-size: 13px; cursor: pointer; box-shadow: none; }
body.nl3 .search-filter-btn:hover:not(:disabled) { border-color: var(--nl-bone); color: var(--nl-bone); }
body.nl3 .search-filter-btn.active { background: var(--nl-bone); border-color: var(--nl-bone); color: var(--nl-bg); }
body.nl3 .search-filter-btn:disabled { opacity: .4; cursor: default; }
body.nl3 #search-results { display: flex; flex-direction: column; gap: 12px; }
body.nl3 #search-results > p.date { margin: 4px 0; font-family: var(--nl-mono); font-size: 13px; color: var(--nl-muted); }
body.nl3 .search-result-item { border: 1px solid var(--nl-line); border-radius: 0; background: var(--nl-panel); padding: 20px; margin: 0; box-shadow: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.nl3 .search-result-item h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
body.nl3 .search-result-item h2 a { color: var(--nl-text); text-decoration: none; }
body.nl3 .search-result-item h2 a:hover { color: var(--nl-bone); }
body.nl3 .search-result-item p { margin: 0; color: var(--nl-text-2); font-size: 15px; line-height: 1.6; letter-spacing: normal; overflow-wrap: anywhere; }
body.nl3 .search-result-item p.date { font-family: var(--nl-mono); font-size: 12px; color: var(--nl-muted); text-transform: none; }
body.nl3 .search-result-item mark { background: var(--nl-bone); color: var(--nl-bg); padding: 0 2px; }
body.nl3 .search-result-item .tags { display: flex; flex-wrap: wrap; gap: 6px; }
body.nl3 .search-result-item .tags span { border: 1px solid var(--nl-line-2); border-radius: 0; background: transparent; color: var(--nl-text-2); font-family: var(--nl-mono); font-size: 12px; padding: 3px 8px; }
body.nl3 .search-result-item .small-link { color: var(--nl-muted); font-family: var(--nl-mono); font-size: 12px; text-decoration: none; }
body.nl3 .search-result-item .small-link:hover { color: var(--nl-bone); }
body.nl3 #search-pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--nl-mono); color: var(--nl-muted); }
body.nl3 .search-page-link { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 8px; box-sizing: border-box; border: 1px solid var(--nl-line-2); border-radius: 0; color: var(--nl-text-2); background: transparent; text-decoration: none; font-size: 13px; }
body.nl3 .search-page-link:hover { border-color: var(--nl-bone); color: var(--nl-bone); }
body.nl3 .search-page-link.active { background: var(--nl-bone); border-color: var(--nl-bone); color: var(--nl-bg); }
.nl-badges--row { flex: 1 1 100%; }
.nl-footer .nl-footer__fine { flex: 1 1 100%; margin-bottom: -12px; }
