/* Home by role (ROADMAP GRP-33): the spotlight, "Are you in?", "Coming up",
   "Plan something" and "Groups". Cards wear a group's look through
   [data-look]: the stripe is --part-stripe and the tile is --pink, which a
   theme sets. */

:root {
  --rh-dark: #0B1F3A;
  --rh-on-dark: #FDEFF4;
  --rh-stripe-default: linear-gradient(90deg, #FF6F91 0 55%, #F47B20 55% 72%, #A6CFEA 72% 100%);
}

.rh { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.rh-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rh-stripe { display: block; height: 8px; background: var(--part-stripe, var(--rh-stripe-default)); }
.rh-note { font-size: 14px; color: var(--muted); }
.rh-kicker { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.rh-cat { display: inline-flex; color: var(--brand); }

/* Spotlight */
.rh-spot { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
/* The whole card opens the plan: the title's link covers it, the buttons sit above. */
.rh-spot-link { color: inherit !important; text-decoration: none; }
.rh-spot-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rh-spot-actions { position: relative; z-index: 1; }
.rh-spot-body { padding: 18px; display: grid; gap: 14px; }
.rh-spot-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rh-spot-title { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rh-venue { font-size: 15px; color: var(--muted); }
.rh-spot-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh-spot-meta .r-chip { margin-right: 0; }
.rh-going { font-size: 13px; font-weight: 700; color: var(--muted); }
.rh-spot-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rh-spot-actions .rh-btn:only-child { grid-column: 1 / -1; }
.rh-btn { min-height: 48px; width: 100%; box-sizing: border-box; }
.rh-tile { min-width: 84px; align-self: start; border-radius: 20px; background: var(--pink); color: var(--on-pink); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.rh-tile-day { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.rh-tile-time { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.rh-spot:not(.has-photo) .rh-spot-body { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.rh-spot:not(.has-photo) .rh-spot-actions { grid-column: 1 / -1; }

.rh-spot.has-photo { background: var(--rh-dark); color: var(--rh-on-dark); border-color: var(--rh-dark); }
.rh-spot-photo { position: relative; background: var(--f3-bg); }
.rh-spot-photo img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.rh-when { position: absolute; left: 14px; top: 14px; padding: 7px 14px; border-radius: 999px; background: var(--pink); color: var(--on-pink); font-size: 14px; font-weight: 800; }
.rh-spot.has-photo .rh-kicker, .rh-spot.has-photo .rh-venue, .rh-spot.has-photo .rh-going { color: var(--rh-on-dark); opacity: 0.85; }
.rh-spot.has-photo .rh-cat { color: var(--rh-on-dark); }
.rh-spot.has-photo .r-stack { --ring: var(--rh-dark); }
.rh-spot.has-photo .button:not(.primary) { background: transparent; border-color: var(--rh-on-dark); color: var(--rh-on-dark); }

/* Are you in? */
.rh-answers, .rh-ups, .rh-cards, .rh-rows { display: flex; flex-direction: column; gap: 14px; }
.rh-ups, .rh-rows { gap: 8px; }
.rh-answer { border-radius: 24px; background: var(--card); border: 1px solid var(--card-line); overflow: hidden; }
.rh-answer-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rh-answer-title { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.rh-answer-title a { color: var(--text) !important; text-decoration: none; }

/* Coming up */
.rh-up { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text) !important; text-decoration: none; }
.rh-up .r-chip { flex: none; margin-right: 0; white-space: nowrap; }
.rh-up.is-on .r-nx-date { background: var(--pink); color: var(--on-pink); }
.rh-up-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rh-up-title { font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.rh-up-sub { font-size: 14px; color: var(--muted); }

/* Plan something */
.rh-card { border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.rh-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rh-card-id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--text) !important; text-decoration: none; }
.rh-card-name { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.rh-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh-streak { display: inline-flex; align-items: center; gap: 3px; flex: none; color: var(--orange); font-size: 15px; }
.rh-card-head .rh-chatbtn { flex: none; }
.rh-streak b { font-weight: 800; color: var(--text); }
.rh-last { min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-last b { color: var(--text); font-weight: 700; }
.rh-chatbtn { flex: none; }

/* Groups */
.rh-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 12px 10px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.rh-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--pink); }
.rh-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text) !important; text-decoration: none; }
.rh-row .r-gmark { width: 44px; height: 44px; font-size: 15px; }
.rh-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rh-row-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.rh-row-line { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.rh-state { font-weight: 700; color: var(--text); }
.rh-state.is-on { color: var(--link); }
.rh-suggest { grid-column: 1 / -1; margin-left: 56px; font-size: 13px; font-weight: 700; color: var(--link); }
.rh-row.is-muted, .rh-card.is-muted { opacity: 0.8; }

@media (min-width: 900px) {
  .rh { max-width: 720px; gap: 36px; }
  .rh-spot-title { font-size: 34px; }
  .rh-spot-body { padding: 24px; }
  .rh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .rh-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
}
