/* pc-right-rail.css: the shared right rail + the "fill the width" fix (Waqas 2026-10-21, Product Owner).
   "almost on every page there is empty space on the right hand side. Fix it or put some info there."

   Two treatments, both for wide screens only (>= 1280px). Below 1280px nothing here applies: the rail is
   display:none and every page keeps its own layout on laptops, tablets and phones.

   1. FILL: on the design pages whose main column sits in a flex row (.main-layout) without flex-grow, the column was
      as wide as its content, so the page stopped short of its own right rail and left a gap. It now grows into the
      space it was always given (events-calendar, mentor-match, marketplace: their .fc-content).
   2. RAIL: pages with no right column get one (assets/pc-right-rail.js adds html.pc-rr-on before first paint and the
      <aside id="pc-rr"> once the page has loaded). The main column grows and keeps clear of it. Same look as the
      Leaderboard's rail (.lb-rail): fixed under the sticky top nav, frosted, a hairline on the left.

   Colours come from the page tokens (--card, --border, --text, --muted, --blue ...), so light and dark both follow
   the page; the few literal colours have a html[data-theme="light"] value with AA contrast on the light card. */

/* ── 1. FILL ─────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .main-layout > main.fc-content { flex: 1 1 auto; }
}

/* ── 2. RAIL: the reserved column ─────────────────────────────────────────────────────────────────────────────── */
:root { --pc-rr-w: 280px; }
.pc-rr { display: none; }
@media (min-width: 1280px) {
  html.pc-rr-on:not(.pc-rr-min1600) .pc-rr { display: block; }
  html.pc-rr-on:not(.pc-rr-min1600) .main-layout > main.page-content { flex: 1 1 auto; margin-right: var(--pc-rr-w); }
}
@media (min-width: 1600px) {
  html.pc-rr-on.pc-rr-min1600 .pc-rr { display: block; }
  html.pc-rr-on.pc-rr-min1600 .main-layout > main.page-content { flex: 1 1 auto; margin-right: var(--pc-rr-w); }
}
.pc-rr[hidden], .pc-rr-card[hidden] { display: none !important; }

.pc-rr {
  position: fixed; top: var(--pc-rr-top, 60px); right: 0; bottom: 0; z-index: 50;
  width: var(--pc-rr-w); box-sizing: border-box; overflow-y: auto;
  padding: 16px 14px 80px;
  border-left: 1px solid var(--border, rgba(255,255,255,0.08));
  background: rgba(8,10,18,0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-theme="light"] .pc-rr { background: rgba(237,242,247,0.9); border-left-color: rgba(42,80,120,0.12); }

/* ── cards (the rail's own, and the ones rendered into a page's own rail as .widget) ───────────────────────────── */
.pc-rr .pc-rr-card {
  background: var(--card, rgba(13,26,42,0.85)); border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 12px); padding: 14px; margin: 0 0 14px;
}
.pc-rr-card { color: var(--text, #e8edf5); font-size: 13px; line-height: 1.4; }
.pc-rr-card .pc-rr-title {
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted, #9ca3af); margin: 0 0 12px; line-height: 1.3;
}
.pc-rr-card a { color: var(--text, #e8edf5); text-decoration: none; }
.pc-rr-card a:hover { text-decoration: underline; }
.pc-rr-card a:focus-visible { outline: 2px solid var(--blue, #2a93c1); outline-offset: 2px; border-radius: 4px; }
.pc-rr-card .pc-rr-sub { display: block; font-size: 12px; color: var(--muted, #9ca3af); margin-top: 2px; }
.pc-rr-card .pc-rr-more {
  display: block; margin-top: 12px; text-align: center; font-size: 12px; font-weight: 600; color: var(--blue, #2a93c1);
}
html[data-theme="light"] .pc-rr-card .pc-rr-more { color: #1a6a94; }
.pc-rr-card .pc-rr-ok { color: #4ade80; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
html[data-theme="light"] .pc-rr-card .pc-rr-ok { color: #166534; }
.pc-rr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.pc-rr-card .pc-rr-list { list-style: none; margin: 0; padding: 0; }
.pc-rr-card .pc-rr-list > li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,0.08)); }
.pc-rr-card .pc-rr-list > li:first-child { padding-top: 0; }
.pc-rr-card .pc-rr-list > li:last-child { border-bottom: none; padding-bottom: 0; }
.pc-rr-card .pc-rr-ev-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pc-rr-card .pc-rr-ev-body > a { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

/* Your progress */
.pc-rr-card .pc-rr-prog-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-rr-card .pc-rr-chip {
  display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 999px;
  color: #5cc4ec; background: var(--blue-dim, rgba(42,147,193,0.12)); border: 1px solid var(--blue-border, rgba(42,147,193,0.25));
}
html[data-theme="light"] .pc-rr-card .pc-rr-chip { color: #1a6a94; }
.pc-rr-card .pc-rr-prog-pts { color: var(--muted, #9ca3af); font-size: 12px; }
.pc-rr-card .pc-rr-prog-pts b { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; color: var(--text, #e8edf5); }
.pc-rr-card .pc-rr-prog-rank { margin-left: auto; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; color: var(--muted, #9ca3af); }
.pc-rr-card .pc-rr-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 10px 0 6px; }
html[data-theme="light"] .pc-rr-card .pc-rr-bar { background: rgba(42,80,120,0.14); }
.pc-rr-card .pc-rr-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1a7aaa 0%,#2a93c1 60%,#3aa8da 100%); }
.pc-rr-card .pc-rr-facts { list-style: none; margin: 10px 0 0; padding: 0; }
.pc-rr-card .pc-rr-facts li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0 0; margin-top: 7px; border-top: 1px solid var(--border, rgba(255,255,255,0.08)); font-size: 12px; color: var(--muted, #9ca3af); }
.pc-rr-card .pc-rr-facts b { color: var(--text, #e8edf5); font-weight: 700; }
.pc-rr-card .pc-rr-facts em { font-style: normal; font-weight: 500; color: var(--muted, #9ca3af); }
.pc-rr-card .pc-rr-flame { display: inline-flex; align-items: center; gap: 4px; }
.pc-rr-card .pc-rr-flame svg { color: #f59e0b; }
html[data-theme="light"] .pc-rr-card .pc-rr-flame svg { color: #b45309; }

/* Upcoming events */
.pc-rr-card .pc-rr-date {
  flex: 0 0 38px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--blue-dim, rgba(42,147,193,0.12)); border: 1px solid var(--blue-border, rgba(42,147,193,0.25));
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; line-height: 1; color: var(--text, #e8edf5);
}
.pc-rr-card .pc-rr-date small { font-family: inherit; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5cc4ec; margin-bottom: 2px; }
html[data-theme="light"] .pc-rr-card .pc-rr-date small { color: #1a6a94; }

/* This week's challenge */
.pc-rr-card .pc-rr-ch-title { font-size: 14px; font-weight: 600; color: var(--text, #e8edf5); overflow-wrap: anywhere; }

/* Top members */
.pc-rr-card .pc-rr-top > li { align-items: center; }
.pc-rr-card .pc-rr-rank { flex: 0 0 18px; text-align: center; font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700; color: var(--muted, #9ca3af); }
.pc-rr-card .pc-rr-rank1 { color: #f59e0b; } .pc-rr-card .pc-rr-rank2 { color: #94a3b8; } .pc-rr-card .pc-rr-rank3 { color: #cd7c54; }
html[data-theme="light"] .pc-rr-card .pc-rr-rank1 { color: #92400e; }
html[data-theme="light"] .pc-rr-card .pc-rr-rank2 { color: #475569; }
html[data-theme="light"] .pc-rr-card .pc-rr-rank3 { color: #9a4a26; }
.pc-rr-card .pc-rr-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-rr-card .pc-rr-pts { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--blue, #2a93c1); }
html[data-theme="light"] .pc-rr-card .pc-rr-pts { color: #1a6a94; }

/* Suggested for you */
.pc-rr-card .pc-rr-people > li { align-items: center; }
.pc-rr-card .pc-rr-av {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2a93c1 0%, #1a5a7d 100%);
}

/* Getting started */
.pc-rr-card .pc-rr-steps { margin-top: 10px; }
.pc-rr-card .pc-rr-steps > li { align-items: center; }
.pc-rr-card .pc-rr-tick {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--blue-border, rgba(42,147,193,0.4));
}
.pc-rr-card .pc-rr-done .pc-rr-tick { background: #16a34a; border-color: #16a34a; color: #fff; }
.pc-rr-card .pc-rr-done > span:last-child { color: var(--muted, #9ca3af); }
.pc-rr-card .pc-rr-steps a { font-weight: 600; color: var(--blue, #2a93c1); }
html[data-theme="light"] .pc-rr-card .pc-rr-steps a { color: #1a6a94; }
