/*
 * The feed layout and its side column (D39).
 * Phone: one column; the side blocks come between the lead story and the
 * list. Wide screen (1100px+): the feed on one side, the blocks beside it,
 * staying in view while the list scrolls.
 */
.feed-layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "side" "list";
}
.feed-head { grid-area: head; }
.feed-side { grid-area: side; display: grid; gap: 12px; margin-top: 12px; align-content: start; }
.feed-list { grid-area: list; }

@media (min-width: 1100px) {
  .feed-layout {
    grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "head side" "list side";
  }
  .feed-side { position: sticky; top: 116px; align-self: start; max-height: calc(100vh - 132px); overflow-y: auto; }
}

.side-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; position: relative; }
.side-block h2 { font-size: 1rem; margin: 0 0 6px; }
.rank-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.rank-list li::marker { color: var(--honey); font-weight: 800; }
.rank-list a { text-decoration: none; font-weight: 600; line-height: 1.35; }
.rank-list a:hover { text-decoration: underline; }
.rank-list small { display: block; color: var(--text-2); font-size: 0.8rem; }

.invite { background: var(--cream); border-color: transparent; }
.invite-head { display: flex; gap: 8px; align-items: center; }
.invite-head h2 { margin: 0; }
.invite p { margin: 6px 0 10px; font-size: 0.9rem; color: var(--text-2); }
.invite-close { position: absolute; top: 6px; inset-inline-end: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--text-2); border-radius: 8px; cursor: pointer; }
