/* ═══════════════════════════════════════════════════════════
   Home, solution Overview, and the How it works guides.
   Written for staff who are not technical: big obvious actions,
   plain sections, no version numbers.
   ═══════════════════════════════════════════════════════════ */

/* ── Shared small pieces ─────────────────────────────────────── */
.rm-muted { color: var(--app-text-3); font-size: 0.9rem; }
.rm-more-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem;
  font-size: 0.88rem; font-weight: 600; color: var(--rm-link) !important; text-decoration: none; white-space: nowrap;
}
.rm-more-link:hover { text-decoration: underline; }
.rm-more-link i { transition: transform var(--rm-fast) ease; }
.rm-more-link:hover i { transform: translate3d(2px, 0, 0); }

.rm-invite {
  padding: 1rem 1.15rem; border-radius: var(--rm-r-card);
  border: 1px dashed var(--app-border-2); background: var(--app-white);
}
.rm-invite p { margin: 0; color: var(--app-text-2); font-size: 0.94rem; line-height: 1.55; max-width: var(--rm-measure); }
.rm-invite__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }

/* ── Home: hero actions ──────────────────────────────────────── */
.rm-home-asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0.75rem; width: min(100%, 620px); margin-top: 0.4rem; }
.rm-home-ask {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem;
  border-radius: var(--rm-r-card); border: 1px solid var(--app-border); background: var(--app-white);
  text-decoration: none; color: var(--rm-ink) !important; box-shadow: var(--app-shadow-xs);
  transition: border-color var(--rm-fast) ease, box-shadow var(--rm-fast) ease, transform var(--rm-mid) var(--rm-ease);
}
.rm-home-ask:hover { border-color: var(--ask-color); box-shadow: var(--app-shadow-sm); transform: translate3d(0, -2px, 0); }
.rm-home-ask:focus-visible { outline: 2px solid var(--rm-focus); outline-offset: 2px; }
.rm-home-ask strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.rm-home-ask small { display: block; font-size: 0.82rem; color: var(--app-text-2); margin-top: 0.15rem; }
.rm-home-ask__icon {
  flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--ask-soft); color: var(--ask-color); font-size: 1.2rem;
}
.rm-home-ask--bug { --ask-color: var(--rm-type-bug); --ask-soft: var(--rm-type-bug-soft); }
.rm-home-ask--idea { --ask-color: var(--rm-type-enh); --ask-soft: var(--rm-type-enh-soft); }

/* ── Home: how it works strip ────────────────────────────────── */
.rm-howto {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.15rem; margin-bottom: 2rem;
  border-radius: var(--rm-r-card); background: var(--app-white); border: 1px solid var(--app-border);
}
.rm-howto__steps { flex: 1 1 40rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.75rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.rm-howto__steps li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.88rem; color: var(--app-text-2); line-height: 1.45; }
.rm-howto__steps strong { color: var(--rm-ink); font-weight: 600; }
.rm-howto__n {
  flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--app-teal-50); color: var(--rm-accent-deep); font-weight: 700; font-size: 0.8rem;
}
.rm-howto__end { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.rm-howto__more { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.rm-howto__more:hover { text-decoration: underline; }

/* ── Home: sections ──────────────────────────────────────────── */
.rm-home-section { margin-bottom: 2.5rem; }
.rm-home-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.rm-home-section__head .rm-more-link { margin-top: 0; }
.rm-home-section__title { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; color: var(--rm-ink); margin: 0; }
.rm-home-search { flex: 0 1 18rem; align-self: center; }

.rm-grid--updates { --rm-grid-min: 320px; --rm-grid-cols: 3; align-items: stretch; }
.rm-grid--apps { --rm-grid-min: 280px; --rm-grid-cols: 4; }

/* App tile: icon + name + one-liner, with its own Open link above the stretched card link. */
.rm-app { flex-direction: row; gap: 0.85rem; padding: 1rem 1.05rem; }
.rm-app:hover { border-color: var(--app-border-2); box-shadow: var(--app-shadow-sm); }
.rm-app:hover .rm-app__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rm-app:has(.rm-card__link:focus-visible) { outline: 2px solid var(--rm-focus); outline-offset: 2px; }
.rm-app__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.rm-app__name { font-size: 1rem; font-weight: 600; color: var(--rm-ink); margin: 0 0 0.2rem; line-height: 1.25; }
.rm-app__desc { font-size: 0.85rem; color: var(--app-text-2); line-height: 1.45; margin: 0 0 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-app__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--app-text-3); }
.rm-app__meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.rm-app__meta > span i { color: var(--sol-color, var(--rm-accent-deep)); }
.rm-app .rm-card__open { padding: 0.28rem 0.6rem; font-size: 0.78rem; }

/* ── Solution page ───────────────────────────────────────────── */
/* The banner is decoration; keep it slim so the useful part is above the fold. */
.rm-detail-cover { height: clamp(88px, 9vw, 140px); }
@media (max-width: 640.98px) { .rm-detail-cover { height: 64px; } }
.rm-detail-hero__fact { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--app-text-2); }
.rm-detail-hero__fact i { color: var(--rm-accent-deep); }
.rm-detail-hero__actions .rm-btn--primary i { font-size: 0.85em; }

.rm-overview .rm-section { margin-bottom: 2rem; }
.rm-overview .rm-section__title { font-size: 1.1rem; }
.rm-overview .rm-prose { font-size: 1rem; }
.rm-overview__rail { display: flex; flex-direction: column; }
.rm-panel__note { margin: 0.85rem 0 0; font-size: 0.84rem; line-height: 1.5; }
.rm-section__title small { font-weight: 500; font-size: 0.75rem; }

.rm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.rm-people li { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.rm-people .rm-avatar { width: 34px; height: 34px; font-size: 0.75rem; flex-shrink: 0; }
.rm-people__who { display: flex; flex-direction: column; min-width: 0; font-size: 0.88rem; }
.rm-people__who strong { color: var(--rm-ink); font-weight: 600; }
.rm-people__who a { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Request form hint ───────────────────────────────────────── */
.rm-compose__hint { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--app-text-3); }

/* ── How it works (help) ─────────────────────────────────────── */
.rm-help-list { gap: 0.6rem; }
.rm-help-item { flex-direction: row; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; }
.rm-help-item:hover { border-color: var(--app-border-2); box-shadow: var(--app-shadow-sm); }
.rm-help-item__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--app-teal-50); color: var(--rm-accent-deep); font-size: 1.1rem; }
.rm-help-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.rm-help-item__title { font-size: 1.02rem; font-weight: 600; color: var(--rm-ink); }
.rm-help-item__summary { font-size: 0.88rem; color: var(--app-text-2); line-height: 1.45; }
.rm-help-item__meta { font-size: 0.76rem; color: var(--app-text-3); }
.rm-help-item__go { color: var(--app-text-3); }
.rm-pager { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.rm-pager .rm-muted { margin-right: auto; }

.rm-help-article { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.rm-help-article__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.rm-help-article__summary { font-size: 1.05rem; color: var(--app-text-2); margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--app-border); max-width: var(--rm-measure); }
.rm-help-article .rm-prose h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.rm-help-article .rm-prose ul { padding-left: 1.2rem; }
.rm-help-article .rm-prose li { margin-bottom: 0.35rem; }
.rm-help-article .rm-prose li::marker { color: var(--rm-accent-deep); }
.rm-help-article__foot { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--app-border); font-size: 0.8rem; color: var(--app-text-3); }
.rm-help-article__after { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.25rem; color: var(--app-text-2); font-size: 0.92rem; }
.rm-help-article__after .rm-more-link { margin: 0 0 0 auto; }

@media (max-width: 640.98px) {
  .rm-howto__end { margin-left: 0; }
  .rm-home-search { flex-basis: 100%; }
  .rm-help-article__after .rm-more-link { margin-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html.rm-motion-ready .rm-main :is(.rm-howto, .rm-invite) {
    opacity: 0; transform: translate3d(0, 14px, 0);
    transition: opacity 0.45s var(--rm-ease), transform 0.45s var(--rm-ease);
  }
  /* Same specificity as the hide rule above and later in the cascade, so revealing wins. */
  html.rm-motion-ready .rm-main :is(.rm-howto, .rm-invite).rm-in { opacity: 1; transform: none; }
}
