/* The "גלה" network: large post cards, the post page with comments and "I made this!" photos, profiles,
   activity, the bell and the small round avatars. Tokens come from theme.css. */
.rc-avatar-sm { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.rc-bell { position: relative; }
.rc-bell-dot, .rc-nav-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--tab-red); box-shadow: 0 0 0 2px var(--bg); }
.rc-bell-dot { top: 10px; left: 10px; }
.rc-nav-dot { top: 6px; left: calc(50% - 16px); z-index: 2; box-shadow: 0 0 0 2px var(--surface); }
.rc-people { margin: 0 0 14px; padding: 2px 0 6px; border-bottom: 1px solid var(--line); }
.rc-people-title { margin: 0; padding: 4px 16px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rc-person { display: flex; width: 100%; align-items: center; gap: 12px; padding: 8px 16px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.rc-person .rc-avatar-sm { width: 44px; height: 44px; font-size: 17px; }
.rc-discover-tabs { flex: none; display: flex; padding: 0 12px; border-bottom: 1px solid var(--line); }

.rc-post { margin: 0 0 18px; background: var(--surface); border-block: 1px solid var(--line); }
.rc-post-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 12px; }
.rc-post-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.rc-post-who:disabled { cursor: default; opacity: 1; }
.rc-post-name { display: block; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-post-when { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-post-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--accent-soft); cursor: pointer; overflow: hidden; }
.rc-post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-post-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 800;
  color: color-mix(in srgb, var(--accent-text) 45%, transparent); }
.rc-post-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.rc-post-act { display: inline-flex; align-items: center; gap: 5px; min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rc-post-meta { margin-inline-start: auto; padding: 0 8px; font-size: 13px; color: var(--muted); }
.rc-post-body { padding: 0 16px 14px; cursor: pointer; }
.rc-post-title { font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.rc-post-caption { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-post-cooked { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); }

.rc-note-warn { margin: 10px 16px 0; padding: 10px 12px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--warm) 18%, var(--surface));
  color: var(--ink); font-size: 14px; line-height: 1.6; }
.rc-recipe-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 32px); margin: 0 16px 6px; padding: 14px 16px;
  border: 0; border-radius: var(--radius-m); background: var(--accent); color: var(--on-accent); font: inherit; text-align: start; cursor: pointer; }
.rc-recipe-open b { display: block; font-size: 16px; }
.rc-recipe-open span span { display: block; font-size: 13px; }
.rc-dp-sec { margin-top: 18px; padding: 0 16px; }
.rc-dp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.rc-dp-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.rc-dp-head span { font-size: 13px; color: var(--muted); }
.rc-dp-empty { padding: 18px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }

.rc-snaps { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rc-snap { position: relative; flex: none; width: 128px; margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.rc-snap img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.rc-snap figcaption { padding: 6px 8px 8px; font-size: 12px; line-height: 1.4; color: var(--ink); }
.rc-snap figcaption bdi { display: block; font-weight: 700; }
.rc-snap figcaption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); }
.rc-snap-more { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #252b24;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rc-snap-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; padding: 12px;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); color: var(--accent-text);
  font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; box-shadow: none; }

.rc-comment { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.rc-thread + .rc-thread { border-top: 1px solid var(--line); }
/* Replies sit under the comment they answer, indented with a line that ties them to it, and with smaller faces. */
.rc-replies { margin-inline-start: 22px; padding-inline-start: 14px; border-inline-start: 2px solid var(--line); }
.rc-reply { padding: 6px 0; }
.rc-reply .rc-avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.rc-comment-reply { margin-top: 2px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rc-replying { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.rc-replying button { padding: 4px 8px; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
.rc-comment-who { flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.rc-comment-meta { font-size: 12px; color: var(--muted); }
.rc-comment-meta bdi { font-weight: 700; color: var(--ink); }
.rc-comment p { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }

.rc-profile-bio { margin: 6px 0 0; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rc-avatar { object-fit: cover; }
.rc-insta { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; padding: 0 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.rc-follow { min-width: 160px; margin-top: 14px; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.rc-follow[data-active="no"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 18px; border-radius: var(--radius-m); overflow: hidden; }
.rc-grid-cell { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--accent-soft); cursor: pointer; overflow: hidden; }
.rc-grid-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-grid-cell span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--accent-text); }

.rc-note { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.rc-note[data-unread="yes"] { background: color-mix(in srgb, var(--sage) 16%, var(--bg)); }
.rc-note-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.rc-note-when { display: block; font-size: 12px; color: var(--muted); }
.rc-note-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }

.rc-form-label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.rc-form-input { width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.rc-form-hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* The profile editor is a sheet; finishing the sign-up shows it as a page of its own over everything, with no
   backdrop to tap away. */
.rc-ded-backdrop { position: absolute; inset: 0; z-index: 67; display: flex; align-items: flex-end; justify-content: center;
  background: var(--scrim); animation: rc-fade .18s cubic-bezier(.23,1,.32,1); }
.rc-ded-backdrop[data-required="yes"] { position: fixed; width: 100%; max-width: 440px; margin: 0 auto; z-index: 95; align-items: center; overflow-y: auto; background: var(--bg); }
.rc-ded-backdrop[data-required="yes"] > .rc-plan { max-height: none; margin: auto 0; padding-top: var(--safe-top, 0px); border-radius: 0; box-shadow: none; background: var(--bg); }
