/* ════════════════════════════════════════════════════════════════
   Research Base — layout.css
   Command bar, page flow, section framing, footer.
   ════════════════════════════════════════════════════════════════ */

/* ── command bar ───────────────────────────────────────────────── */
.rb-commandbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 0.7rem clamp(1rem, 3vw, 2rem);
    background: rgba(10, 18, 28, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--rb-line);
    transition: background .3s ease, border-color .3s ease;
}
.rb-commandbar.is-scrolled { background: rgba(9, 16, 25, 0.9); border-color: var(--rb-line-2); }

.rb-brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.rb-brand__mark {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid rgba(88,210,193,0.4); border-radius: 11px;
    background: radial-gradient(circle at 50% 30%, rgba(88,210,193,0.18), transparent);
    color: var(--rb-teal);
}
.rb-brand__glyph { width: 22px; height: 22px; }
.rb-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.rb-brand__name { font-family: var(--rb-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em; }
.rb-brand__meta { font-size: 0.68rem; color: var(--rb-muted); letter-spacing: 0.04em; }

.rb-nav { display: flex; gap: 0.4rem; }
.rb-nav a {
    font-family: var(--rb-display); font-size: 0.88rem; font-weight: 500;
    color: var(--rb-ink-dim); padding: 0.45rem 0.8rem; border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}
.rb-nav a:hover { color: var(--rb-ink); background: rgba(255,255,255,0.04); }
.rb-nav a.is-current { color: var(--rb-teal); background: rgba(88,210,193,0.08); }

.rb-commandbar__right { display: flex; align-items: center; gap: 0.7rem; }
.rb-status-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--rb-teal);
    box-shadow: 0 0 0 4px rgba(88,210,193,0.16); animation: rb-blink 2.4s ease-in-out infinite;
}

/* ── page flow ─────────────────────────────────────────────────── */
.rb-main { display: block; }

/* hairline separators that read like blueprint folds */
.rb-section + .rb-section { border-top: 1px solid var(--rb-line); }
.rb-section::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
}
.rb-board::before  { background: radial-gradient(80% 60% at 85% 0%, rgba(88,210,193,0.06), transparent 60%); }
.rb-archive::before{ background: radial-gradient(70% 60% at 15% 0%, rgba(156,140,242,0.07), transparent 60%); }
.rb-lab::before    { background: radial-gradient(70% 70% at 80% 50%, rgba(242,178,102,0.06), transparent 60%); }

/* ── footer ────────────────────────────────────────────────────── */
.rb-footer {
    border-top: 1px solid var(--rb-line);
    background: rgba(8, 15, 24, 0.6);
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
    margin-top: 1rem;
}
.rb-footer__inner {
    display: grid; gap: 1.6rem;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
}
.rb-footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.rb-footer__mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rb-line-2); border-radius: 11px; color: var(--rb-teal); }
.rb-footer__brand strong { display: block; font-family: var(--rb-display); font-size: 1.05rem; }
.rb-footer__code { font-size: 0.72rem; color: var(--rb-muted); }
.rb-footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-self: end; }
.rb-footer__nav a { font-family: var(--rb-display); font-size: 0.88rem; color: var(--rb-ink-dim); transition: color .2s ease; }
.rb-footer__nav a:hover { color: var(--rb-teal); }
.rb-footer__note { grid-column: 1 / -1; color: var(--rb-muted); font-size: 0.82rem; border-top: 1px solid var(--rb-line); padding-top: 1.3rem; max-width: 70ch; }
