/* manuals page styles (migrated). Shared tokens live in sierra.css */



html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--ground);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  background: var(--ink);
  padding: 0 24px;
  border-bottom: 2px solid var(--rr);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 0;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-back {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.75);
  text-decoration: none; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 5px;
}
.topbar-back:hover { color: rgba(255,255,255,0.75); }
.topbar-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
}
.topbar-brand span { color: var(--rr-text); }

/* ── Page header ── */
.page-header {
  background: var(--ink);
  padding: 0 24px;
  position: relative;
}
.page-header::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rr) 0%, transparent 55%);
}
.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 0 44px;
}
.page-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--rr-pale);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.page-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; color: #fff;
  line-height: 1; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.page-sub {
  font-size: 14px; color: rgba(255,255,255,0.5);
  max-width: 480px; line-height: 1.65;
}

/* ── Content ── */
.content {
  max-width: 1240px; margin: 0 auto;
  padding: 32px 28px 72px;
}
@media (max-width: 600px) { .content { padding: 24px 16px 56px; } }
@media (max-width: 820px) { .content { padding: 28px 20px 64px; } }

/* ── Section labels ── */
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; margin-top: 32px;
}
.section-label:first-child { margin-top: 0; }
.section-icon { font-size: 18px; }
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.01em;
}
.section-rule { flex: 1; height: 1px; background: var(--rule); }

/* ── Resource cards ── */
.resource-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }

.resource-card {
  background: var(--ground-raised);
  border: 1px solid var(--rule);
  border-radius: 1px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.15s;
}
.resource-card:hover { border-color: var(--rule-rr); }
.resource-card.muted { opacity: 0.55; }
.resource-card.muted:hover { border-color: var(--rule); opacity: 0.65; }

.res-icon {
  width: 40px; height: 40px;
  border-radius: 1px;
  display: flex; align-items: center;
  justify-content: center; font-size: 18px;
  flex-shrink: 0;
  background: var(--rr-glow);
  border: 1px solid var(--rule-rr);
}
.res-icon.amber { background: rgba(184,107,26,0.08); border-color: rgba(184,107,26,0.22); }
.res-icon.crimson { background: rgba(158,45,30,0.07); border-color: rgba(158,45,30,0.18); }
.res-icon.wa { background: rgba(37,211,102,0.07); border-color: rgba(37,211,102,0.2); }
.res-icon.reddit { background: rgba(255,69,0,0.07); border-color: rgba(255,69,0,0.18); }
.res-icon.grey { background: var(--ground-mid); border-color: var(--rule); }

.res-body { flex: 1; min-width: 0; }
.res-title {
  font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 2px; line-height: 1.3;
}
.res-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.res-badge {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 6px;
  border-radius: 1px; margin-top: 4px;
  display: inline-block;
}
.res-badge.official { background: var(--rr-glow); color: var(--rr-text); border: 1px solid var(--rule-rr); }
.res-badge.community { background: rgba(184,107,26,0.08); color: var(--amber); border: 1px solid rgba(184,107,26,0.22); }
.res-badge.soon { background: var(--ground-mid); color: var(--text-faint); border: 1px solid var(--rule); }

.res-actions { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Buttons — match PDI exactly ── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 1px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: none; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.btn-rr { background: var(--rr-deep); color: #fff; }
.btn-rr:hover { background: var(--rr-deep); }
.btn-ghost {
  background: transparent; color: var(--rr-text);
  border: 1px solid var(--rule-rr);
}
.btn-ghost:hover { background: var(--rr-glow); }
.btn-wa-sm { background: var(--wa); color: #fff; }
.btn-wa-sm:hover { opacity: 0.88; }
.btn-reddit-sm { background: var(--reddit); color: #fff; }
.btn-reddit-sm:hover { opacity: 0.88; }
.btn-disabled {
  background: transparent; color: var(--text-faint);
  border: 1px solid var(--rule); cursor: not-allowed;
}

/* ── Note block ── */
.note-block {
  background: var(--rr-glow);
  border: 1px solid var(--rule-rr);
  border-radius: 1px;
  padding: 13px 16px;
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; margin-top: 20px;
}
.note-block a { color: var(--rr-text); text-decoration: none; }
.note-block a:hover { text-decoration: underline; }

/* ── Footer ── */
.page-footer {
  background: var(--ink);
  padding: 22px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.35);
}
.footer-text a { color: rgba(255,255,255,0.5); text-decoration: none; }
.bmc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFDD00; color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 7px 16px; border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .resource-card { flex-wrap: wrap; }
  .res-actions { width: 100%; justify-content: flex-start; }
}
