/* K27 standard row/section component.
 *
 * ONE format for every section — Apps, People, Board, Field, Comms, Pinned —
 * so new sections inherit it instead of being hand-rolled.
 *
 * Pattern chosen: the "shelf" (header above, tiles scrolling beneath). It is the
 * format used by the App Store, Apple TV, Netflix, Spotify and Google Play, so it
 * is already familiar to anyone. See the spec for why this beat a leading
 * title-cell inside the scroll row on a 390px phone.
 */

.k27row{margin:15px 0 4px}

/* Header doubles as the expand/collapse control — the whole bar is the hit area,
   not just the chevron. */
.k27row-h{display:flex;align-items:center;gap:9px;width:100%;text-align:left;
  background:none;border:0;padding:8px 2px;cursor:pointer;-webkit-tap-highlight-color:transparent;
  min-height:44px}
.k27row-h .rh-ic{flex:none;width:26px;height:26px;border-radius:8px;background:var(--navy-deep);
  color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1}
.k27row-h .rh-t{font-family:var(--display);font-weight:700;font-size:15px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--navy);white-space:nowrap}
.k27row-h .rh-rule{flex:1;height:1px;background:var(--line);min-width:10px}
.k27row-h .rh-n{font-family:var(--mono);font-size:9px;font-weight:800;letter-spacing:.05em;
  color:var(--smoke);white-space:nowrap}
.k27row-h .rh-cv{flex:none;font-size:13px;font-weight:900;color:var(--columbia-deep);
  transition:transform .2s ease}
.k27row.collapsed .rh-cv{transform:rotate(-90deg)}
.k27row-h:active .rh-ic{transform:scale(.94)}

/* Body: horizontally swipeable rail. Collapsing hides it entirely. */
.k27row-b{position:relative}
.k27row.collapsed .k27row-b{display:none}
.k27row-rail{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;padding:2px 0 9px;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#b9aa83 transparent}
.k27row-rail::-webkit-scrollbar{height:4px}
.k27row-rail::-webkit-scrollbar-thumb{background:#b9aa83;border-radius:2px}
.k27row-rail>*{flex:0 0 auto;scroll-snap-align:start}
/* The fade is what stops this repeating Build 8's invisible-rail mistake. */
.k27row-b.more::after{content:"";position:absolute;top:0;right:0;bottom:9px;width:24px;
  pointer-events:none;background:linear-gradient(to right,rgba(231,219,190,0),var(--wall))}

/* People tiles */
.pr-tile{width:84px;display:flex;flex-direction:column;align-items:center;gap:6px;
  text-decoration:none;background:var(--card);border:1px solid var(--line-soft);border-radius:14px;
  padding:11px 6px 9px;box-shadow:0 2px 8px rgba(10,35,81,.07);cursor:pointer;
  -webkit-tap-highlight-color:transparent}
.pr-tile .pr-av{width:44px;height:44px;border-radius:50%;background:var(--navy-deep);color:var(--gold);
  display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:700;
  font-size:18px;letter-spacing:.02em}
.pr-tile .pr-nm{font-family:var(--mono);font-size:9px;font-weight:800;letter-spacing:.03em;
  text-transform:uppercase;color:var(--navy);text-align:center;line-height:1.15}
.pr-tile .pr-sub{font-family:var(--mono);font-size:7.5px;letter-spacing:.03em;color:var(--smoke)}
.pr-tile.unset{border-style:dashed;opacity:.82}
.pr-tile.unset .pr-av{background:#e6ecf4;color:var(--smoke)}
.pr-tile:active{transform:scale(.97)}
