/* Help & support and Resource Hub, ops look. Loaded after the pages' own css. Theme tokens only. */

.sp-page, .rh-page {
  --ox-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ox-edge: color-mix(in srgb, var(--primary) 32%, var(--line));
  --ox-glow: color-mix(in srgb, var(--primary) 18%, transparent);
  --ox-card: color-mix(in srgb, var(--card-bg, var(--surface)) 92%, var(--bg, #000));
}

/* hero cards (the shared plain page header and the support hero) */
.rh-page > .ph, .sp-page > .sp-hero, .sp-page > .sp-head {
  position: relative; overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.5rem); border: 1px solid var(--ox-edge); border-radius: 16px;
  background: radial-gradient(70% 140% at 0% 0%, var(--ox-glow), transparent 60%), var(--ox-card);
}
.rh-page > .ph { margin-bottom: 0; align-items: center; }
.rh-page > .ph::before, .sp-page > .sp-hero::before, .sp-page > .sp-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary)), transparent 85%); }
.rh-page > .ph > *, .sp-page > .sp-hero > *, .sp-page > .sp-head > * { position: relative; }
.rh-page .ph-eyebrow, .rh-kicker, .sp-kicker { font-family: var(--ox-mono); font-weight: 600; letter-spacing: 0.12em; }
.rh-page .ph-eyebrow::before, .rh-kicker::before, .sp-kicker::before { content: "// "; color: var(--primary); }
.rh-page .ph h1, .sp-page .sp-hero h1, .sp-page .sp-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; }

/* ============================ SUPPORT ============================ */
.sp-card { position: relative; border-radius: 14px; background: var(--ox-card); box-shadow: none; }
.sp-card::before, .sp-card::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--ox-edge); transition: border-color 0.2s, width 0.2s, height 0.2s; }
.sp-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 14px; }
.sp-card::after { right: 0; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 14px; }
.sp-card:hover::before, .sp-card:hover::after { border-color: var(--primary); width: 22px; height: 22px; }
.sp-section-title { font-family: var(--ox-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.sp-section-title { justify-content: flex-start; gap: 0.5rem; }
.sp-section-title::before { content: "//"; color: var(--primary); }
.sp-section-title > :last-child:not(:first-child) { margin-left: auto; }
.sp-row { transition: background 0.15s; }
.sp-row:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.sp-row-num, .sp-row-time, .sp-row-meta, .sp-status, .sp-chip, .sp-compose-hint, .sp-new-dot { font-family: var(--ox-mono); }
.sp-row-num { font-weight: 600; }
.sp-status, .sp-chip { font-size: 0.7rem; letter-spacing: 0.04em; }
.sp-convo-head .sp-kicker { color: var(--text-soft); }
.sp-compose-hint kbd { font-family: var(--ox-mono); border-radius: 5px; }
.sp-cat { border-radius: 12px; transition: border-color 0.15s, transform 0.15s; }
.sp-cat:hover { border-color: var(--ox-edge); transform: translateY(-1px); }
.sp-tips, .sp-about { border-radius: 14px; }

/* ============================ RESOURCE HUB ============================ */
.rh-filter-panel, .rh-filters > section, .rh-panel { position: relative; border-radius: 14px; }
.rh-filters h2, .rh-result-head .rh-kicker { font-family: var(--ox-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.rh-filters h2::before { content: "// "; color: var(--primary); }
.rh-total, .rh-source, .rh-type, .rh-tags span { font-family: var(--ox-mono); }
.rh-type { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rh-tags span { border-radius: 6px; font-size: 0.72rem; }
.rh-card { position: relative; border-radius: 14px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.rh-card:hover { border-color: var(--ox-edge); transform: translateY(-2px); box-shadow: 0 16px 34px -24px var(--ox-glow); }
.rh-search-input { font-family: var(--ox-mono); font-size: 0.86rem; }
.rh-featured { font-family: var(--ox-mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.rh-url { font-family: var(--ox-mono); }
.rh-detail-list dt { font-family: var(--ox-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .sp-row, .sp-cat, .rh-card, .sp-card::before, .sp-card::after { transition: none; }
  .sp-cat:hover, .rh-card:hover { transform: none; }
}
