/* Look pass: Clubhouse pages and lists, post page, You, Create, photo editor, Huddle, Family, Watch and the light-mode gold.
   Loaded after social-system.css, so these rules win without a stronger selector. Tokens only, no gradients, no scrims, no glows.
   Items 9, 10, 11, 12, 15, 17, 18, 19, 20, 21, 22, 23 and 25 of docs/SOCIAL-DESIGN-REVIEW.md. */

/* ---- 9. Clubhouse page: topic tabs on their own row, the format filter on its own 44px row below ---- */
.sc-club-topicbar { flex-wrap:wrap; gap:0; }
.sc .sc-club-topicbar > .sc-tabs:not(.sc-formats) { flex:1 1 100%; width:100%; border-bottom:0; }
.sc-club-topicbar > .sc-club-show { flex:1 1 100%; display:flex; align-items:center; min-height:44px; padding-block:6px; border-top:1px solid var(--shot-border); }
.sc-club-show .sc-select { width:100%; max-width:none; display:flex; justify-content:space-between; gap:12px; }
.sc-club-show .sc-select select { width:auto; flex:1 1 auto; max-width:60%; }

/* ---- 10. Clubhouse header: 16:9 cover, 72px crest overlapping by half, buttons beside the crest, one left edge on desktop ---- */
.sc-clubhead .sc-club-banner { height:auto; aspect-ratio:16 / 9; }
.sc-clubhead .sc-club-bar { align-items:flex-end; gap:12px; margin-top:-36px; padding-inline:14px; }
.sc-clubhead .sc-club-crest { width:72px; height:72px; font-size:22px; }
.sc-clubhead .sc-club-actions { flex:1 1 auto; flex-wrap:nowrap; justify-content:flex-end; padding-bottom:0; }
.sc-clubhead .sc-club-actions > .w-btn:first-child:not(.sc-club-manage-btn) { flex:1 1 auto; }
.sc-clubhead .sc-club-hint { margin:8px 0 0; padding-inline:14px; text-align:left; }
.sc-clubhead .w-btn { box-shadow:none; }
.sc-club-show .sc-select select { flex:0 1 220px; }
@media (min-width:768px) {
  .sc-room.sc-clubhead,.sc-club-topicbar,.sc .sc-live-strip { width:100%; max-width:720px; margin-inline:auto; }
  .sc-clubhead .sc-club-banner { height:auto; aspect-ratio:3 / 1; }
  .sc-clubhead .sc-club-actions > .w-btn:first-child:not(.sc-club-manage-btn) { flex:0 0 auto; min-width:120px; }
}

/* ---- 12. Clubhouses list: a card grid. Cover, crest, name, one line, one pill. A red dot and "Live" when a Huddle is on. ---- */
.sc .sc-spaces.sc-directory { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
@media (min-width:768px) { .sc .sc-spaces.sc-directory { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); } }
.sc .sc-directory > .sc-space.sc-cover { position:relative; display:grid; grid-template-columns:minmax(0,1fr); align-content:start; align-items:start; gap:0; min-height:0;
  padding:0; border:1px solid var(--shot-border); border-radius:14px; background:var(--shot-surface); color:var(--shot-text); overflow:hidden; }
.sc .sc-directory > .sc-space.sc-cover[hidden] { display:none; }
.sc .sc-directory > .sc-space.sc-cover::before,.sc .sc-directory > .sc-space.sc-cover::after { content:none; display:none; background:none; }
.sc .sc-directory > .sc-space.sc-cover > img { position:static; z-index:auto; display:block; width:100%; height:auto; aspect-ratio:16 / 9; border-radius:0; box-shadow:none; object-fit:cover; }
.sc-directory .sc-space-crest { position:relative; z-index:1; display:block; width:44px; height:44px; margin:-22px 0 0 12px; border-radius:50%; overflow:hidden;
  background:var(--shot-surface); box-shadow:0 0 0 3px var(--shot-surface), 0 0 0 5px var(--shot-purple,#6b00db); }
.sc-directory .sc-space-crest img { position:static; display:block; width:100%; height:100%; object-fit:cover; }
.sc-directory .sc-space-live { position:absolute; top:8px; left:8px; display:inline-flex; align-items:center; gap:6px; min-height:24px; padding:0 8px; border-radius:999px;
  background:#111; color:#fff; font-size:var(--fs-caption,12px); font-weight:700; line-height:1; }
.sc-directory .sc-space-live .sc-live-mark { width:8px; height:8px; }
.sc .sc-directory > .sc-space.sc-cover > div { gap:4px; padding:8px 12px 12px; justify-items:start; }
.sc .sc-directory > .sc-space.sc-cover strong { color:var(--shot-text); font-size:15px; line-height:1.25; letter-spacing:-.01em; overflow-wrap:anywhere; }
.sc .sc-directory > .sc-space.sc-cover > div > span:not(.sc-room-badges) { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  color:var(--shot-text-secondary); font-size:13px; line-height:1.35; }
.sc .sc-directory > .sc-space.sc-cover small { display:none; }
.sc .sc-directory > .sc-space.sc-cover .sc-room-badges { order:3; display:flex; margin-top:2px; }
.sc-directory .sc-room-badges span:not(.sc-club-access):not(.sc-badge-partner) { display:none; }
.sc-directory .sc-room-badges span { padding:4px 8px; border-radius:999px; background:var(--shot-surface-elevated); color:var(--shot-text); font-size:12px; }

/* ---- 11. Near you: one 56px row. Set town opens the box and the towns. On Explore it is a single link to the Clubhouses page. ---- */
.sr-near.sr-near--row { display:block; padding:0; border:1px solid var(--shot-border); border-left-width:1px; border-radius:12px; background:var(--shot-surface); }
.sr-near--row > summary,.sr-near--link { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; padding:6px 8px 6px 14px;
  list-style:none; cursor:pointer; color:var(--shot-text); text-decoration:none; }
.sr-near--row > summary::-webkit-details-marker { display:none; }
.sr-near--link { margin:var(--s3,12px) 0; border:1px solid var(--shot-border); border-radius:12px; background:var(--shot-surface); }
.sr-near-title { display:flex; align-items:center; gap:10px; min-width:0; font-weight:700; font-size:var(--fs-body,16px); }
.sr-near-title svg { flex:none; width:20px; height:20px; color:var(--status-upcoming-text); }
.sr-near-set { flex:none; display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:0 16px; border-radius:8px;
  background:var(--shot-teal); color:#000; font-weight:700; font-size:var(--fs-small,14px); }
.sr-near--row > summary:focus-visible,.sr-near--link:focus-visible { outline:2px solid var(--status-upcoming-text); outline-offset:2px; }
.sr-near--row[open] > summary { border-bottom:1px solid var(--shot-border); }
.sr-near--row[open] > :not(summary) { margin:12px 14px; }
.sr-near--row[open] > .sr-chips { margin-bottom:14px; }

/* ---- 15. Post page: the reply box is pinned to the bottom of the screen for the whole page, Report sits in each reply's overflow button,
   and the page is tall enough that the box sits at the foot even with two replies. The Replies panel dissolves into the thread so the box can pin
   against the thread, not against a short panel. ---- */
.sc-thread:has(> .sc-panel[aria-label="Replies"]) { display:flex; flex-direction:column; gap:14px; min-height:calc(100svh - 300px); }
.sc-thread > .sc-panel[aria-label="Replies"] { display:contents; }
.sc-thread > .sc-panel[aria-label="Replies"] > h2 { margin:0; padding-top:12px; border-top:1px solid var(--shot-border); }
.sc-thread > .sc-panel[aria-label="Replies"] > [data-act="social:reply-start"] { order:99; position:sticky; bottom:8px; z-index:2; margin-top:auto; width:100%; min-height:56px;
  justify-content:space-between; padding:0 6px 0 16px; border:1px solid var(--shot-border); border-radius:999px; background:var(--shot-surface-elevated); color:var(--shot-text-secondary); box-shadow:none; font-weight:600; }
.sc-thread > .sc-panel[aria-label="Replies"] > [data-act="social:reply-start"]::after { content:"\2192" / ""; display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:50%;
  background:var(--shot-teal); color:#000; font-size:20px; font-weight:700; }
.scr-report svg { width:20px; height:20px; }
.scr-report:hover { text-decoration:none; }

/* ---- 17. Watch (13 to 15) and the under-13 view: a hero clip, then a two-column grid. Same clips, same reach, only the layout changes. ---- */
.sc .sc-watch-library { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; max-width:860px; }
@media (min-width:768px) { .sc .sc-watch-library { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.sc .sc-watch-library > .sc-post { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; align-items:start; gap:6px 4px; padding:0; border:0; border-radius:0; background:transparent; }
.sc .sc-watch-library > .sc-post > .sc-clip { grid-column:1 / -1; margin:0; }
.sc .sc-watch-library > .sc-post .sc-preview-frame { aspect-ratio:3 / 4; border-radius:12px; }
/* The sport sits on the picture as a flat chip; the Report control stays beside the title with a visible word. */
.sc .sc-watch-library > .sc-post > .sc-watch-context { display:contents; }
.sc .sc-watch-library > .sc-post .sc-watch-context > .sc-permission { position:absolute; top:8px; left:8px; z-index:2; margin:0; padding:4px 8px; border-radius:999px; background:#111; color:#fff; font-size:12px; font-weight:700; line-height:1.2; }
.sc .sc-watch-library > .sc-post > h3 { grid-column:1; margin:0; font-size:14px; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sc .sc-watch-library > .sc-post .sc-watch-context > button { grid-column:2; grid-row:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; width:auto; min-width:44px; min-height:44px; padding:2px 4px;
  font-size:12px; font-weight:700; line-height:1.2; margin-top:-8px; }
.sc .sc-watch-library > .sc-post .sc-watch-context > button svg { width:18px; height:18px; }
.sc .sc-watch-library > .sc-post .sc-watch-context > button::after { content:"Report"; }
.sc .sc-watch-library > .sc-post > .sc-clip figcaption,.sc .sc-watch-library > .sc-post > .sc-copy { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* The first clip is today's pick: full width, 4:5, with its description and what to look for. */
.sc .sc-watch-library > .sc-post:first-child { grid-column:1 / -1; gap:8px 8px; }
.sc .sc-watch-library > .sc-post:first-child .sc-preview-frame { aspect-ratio:4 / 5; }
.sc .sc-watch-library > .sc-post:first-child > h3 { font-size:20px; }
.sc .sc-watch-library > .sc-post:first-child > .sc-copy { position:static; grid-column:1 / -1; width:auto; height:auto; margin:0; overflow:visible; clip:auto; white-space:normal; }
.sc .sc-watch-library > .sc-post:first-child > .sc-clip figcaption { position:static; width:auto; height:auto; margin:6px 0 0; overflow:visible; clip:auto; white-space:normal; }
@media (min-width:768px) { .sc .sc-watch-library > .sc-post:first-child .sc-preview-frame { aspect-ratio:16 / 9; } }

/* The lock card is a strip, not a block. */
.sc .sf-lock[data-sf-lock] { display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; padding:10px 14px; min-height:56px; }
.sc .sf-lock[data-sf-lock] > .sf-lock-what { flex:1 1 auto; font-size:15px; }
.sc .sf-lock[data-sf-lock="never"] > .sc-copy { order:3; flex:1 1 100%; margin:0; font-size:13px; line-height:1.4; }
.sc .sf-lock[data-sf-lock] > .sf-lock-tag { flex:none; font-size:13px; }
/* My team for an under-13: the "not switched on" card and the "ask my parent" card read as one. */
.sc > .sc-panel:not(.sf-lock) + .sf-lock[data-sf-lock="team"] { margin-top:-14px; padding-top:0; border:0; border-radius:0 0 16px 16px; }
.sc > .sc-panel:has(+ .sf-lock[data-sf-lock="team"]) { padding-bottom:0; border-radius:16px 16px 0 0; }
.sc > .sc-panel + .sf-lock[data-sf-lock="team"] > .sf-lock-what { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- 18. You: 140px cover, 80px avatar overlapping by half, three equal one-line stats, Posts as a grid, 24px between sections ---- */
.sc-brand-cover { height:140px; }
.sc-brand-body > .sc-avatar { width:80px; height:80px; margin-top:-40px; }
.sc .sc-brand-stats > div { min-width:0; }
.sc .sc-brand-stats dt { white-space:nowrap; }
.sc-creator-layout { display:grid; gap:24px; align-content:start; }
.sc-creator-layout > .sc-brand,.sc-creator-layout > .sp-hl,.sc-creator-layout > .sx-pinned,.sc-creator-layout > .sc-tiles,.sc-creator-layout > .sc-brand-feature { margin-block:0; }
.sc-creator-layout > .sp-hl,.sc-creator-layout > .sx-pinned { padding-block:0; border-bottom:0; }
.sc-creator-layout > .sc-you-tabs { margin-top:0; }
.sc-creator-layout > .sc-river { margin:0; }

/* ---- 19. Create sheet: Shot, Photo, Sideline Shot and Story as a 2x2 block of tiles; the club tasks sit below as compact rows ---- */
.sc-create { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.sc-create > .sc-create-row:nth-of-type(-n+4) { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; justify-items:center; align-content:center; gap:6px; min-height:88px; padding:10px 8px;
  border:1px solid var(--shot-border); border-radius:14px; background:var(--shot-surface-elevated); text-align:center; }
.sc-create > .sc-create-row:nth-of-type(-n+4) .sc-create-icon { width:44px; height:44px; }
.sc-create > .sc-create-row:nth-of-type(-n+4) .sc-create-icon svg { width:28px; height:28px; }
.sc-create > .sc-create-row:nth-of-type(-n+4) strong { font-size:15px; }
.sc-create > .sc-create-row:nth-of-type(-n+4) small { display:none; }
.sc-create > .sc-create-row:nth-of-type(-n+4)[data-sc-needs] small { display:block; }
.sc-create-group { grid-column:1 / -1; margin:12px 0 0; color:var(--shot-text-secondary); font-size:var(--fs-caption,12px); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.sc-create > .sc-create-row:nth-of-type(n+5) { grid-column:1 / -1; min-height:52px; padding-block:4px; }
.sc-create > .sc-create-row:nth-of-type(n+5) small { display:none; }

/* ---- 20. Photo editor: editing and details read as two separate surfaces; the Post button keeps its colour when off and says why ---- */
.se-details,.se-pub { margin-top:var(--s3,12px); padding:var(--s4,16px); border:1px solid var(--shot-border); border-radius:14px; background:var(--shot-surface); }
.se-details .se-meta { padding-top:0; border-top:0; }
.se-pub { border-top:1px solid var(--shot-border); }
.se-pubbar .se-btn--primary:disabled { opacity:.5; background:var(--shot-teal); border-color:var(--shot-teal); color:#000; }
.se-pubbar:has(button[data-se-publish]:disabled):has([data-se-pubrights]:not(:checked)) > [data-se-pubstatus]:empty { display:block; margin:0; color:var(--shot-text-secondary); font-size:.75rem; }
.se-pubbar:has(button[data-se-publish]:disabled):has([data-se-pubrights]:not(:checked)) > [data-se-pubstatus]:empty::before { content:"Tick the box to turn on Post."; }

/* ---- 21. Huddle gate: the room stays on screen and the Code sits at the foot as a bottom sheet with a full-width "I'm in" ---- */
.sch-room > [data-sch-region="gate"] { order:20; position:sticky; bottom:0; z-index:4; margin:auto calc(-1 * var(--s3,12px)) 0; }
.sch-room .sch-gate { gap:var(--s2,8px); padding:var(--s2,8px) var(--s4,16px) var(--s3,12px); border:1px solid var(--shot-border); border-bottom:0; border-radius:20px 20px 0 0;
  background:var(--shot-surface-elevated); justify-items:stretch; }
.sch-room .sch-gate::before { content:""; justify-self:center; width:36px; height:4px; margin-bottom:var(--s1,4px); border-radius:2px; background:var(--shot-border); }
.sch-room .sch-code { gap:var(--s2,8px); }
.sch-room .sch-code > .sch-h { color:var(--shot-text); font-family:var(--font-heading); font-size:var(--fs-lg,18px); letter-spacing:0; text-transform:none; }
.sch-room .sch-code > .sc-copy { display:none; }
.sch-room .sch-code .scr-code-rules { gap:var(--s2,8px); max-height:calc(100svh - 360px); overflow-y:auto; }
.sch-room .sch-code .scr-code-rules li { grid-template-columns:28px minmax(0,1fr); align-items:start; }
.sch-room .sch-code .scr-code-rules li::before { content:none; }
.sch-rule-i { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--shot-surface); color:var(--accent-purple-text); }
.sch-rule-i svg { width:16px; height:16px; }
.sch-room .sch-code .scr-code-rules strong { font-size:14px; line-height:1.3; }
.sch-room .sch-code .scr-code-rules p { margin:0; font-size:13px; line-height:1.35; }
.sch-room .sch-code > .w-btn { width:100%; min-height:52px; justify-self:stretch; justify-content:center; box-shadow:none; }
.sch-room .sch-gate > .sch-quiet { margin:0; text-align:center; }
.sch-sheet .sch-rule-i { display:none; }
.sch-sheet .scr-code-rules li { grid-template-columns:28px minmax(0,1fr); }

/* ---- 22. Huddle room: title at the left edge, a talking ring that pulses in 1.2s (still when motion is reduced), a proper control bar ---- */
.sch-head { grid-template-columns:minmax(0,1fr); gap:0; }
.sch-head > .sch-back { margin-left:-10px; }
.sch-person[data-speaking] .sch-pic::after { border-width:2px; opacity:.9; }
@media (prefers-reduced-motion:no-preference) { .sch-person[data-speaking] .sch-pic::after { animation-duration:1.2s; } }
@media (prefers-reduced-motion:reduce) { .sch-person[data-speaking] .sch-pic::after { animation:none; opacity:1; } }
.sch-bar-row { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--s2,8px); }
.sch-bar .sch-ctls { display:flex; flex-wrap:wrap; gap:var(--s2,8px); width:100%; }
.sch-bar .sch-ctl { flex:1 1 96px; flex-direction:row; justify-content:center; gap:var(--s2,8px); min-height:56px; font-size:var(--fs-small,14px); white-space:nowrap; }
.sch-bar .sch-ctl[data-act="huddle:leave"] { border:2px solid var(--shot-live); background:transparent; color:var(--shot-text); }
.sch-bar .sch-reacts { display:flex; justify-content:space-between; gap:var(--s2,8px); }

/* ---- 23. Family: one status line with a dot, four stat tiles, the permissions as an icon row, the sentences folded away ---- */
.sx-week { border-left-width:1px; gap:var(--s3,12px); }
.sx-week .sx-status { display:flex; align-items:center; gap:8px; margin:0; font-size:var(--fs-body,16px); font-weight:700; color:var(--shot-text); }
.sx-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--shot-gold); }
.sx-status[data-quiet="1"] .sx-dot { background:var(--shot-teal); }
.sx-week-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--s2,8px); }
.sx-week-list li { align-content:start; gap:0; padding:10px 12px; border-radius:12px; background:var(--shot-surface); }
.sx-n { font:700 24px/1.2 var(--font-heading,Poppins,sans-serif); color:var(--shot-text); }
.sx-week-list li strong { color:var(--shot-text-secondary); font-size:12px; font-weight:600; }
.sx-week-list li[data-n="0"] > span { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.sx-week-list li:not([data-n="0"]) > span { margin-top:4px; font-size:12px; line-height:1.35; }
.sf-perms { display:flex; flex-wrap:wrap; gap:var(--s2,8px); margin:0; padding:0; list-style:none; }
.sf-perms li { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; border-radius:999px; background:var(--shot-surface-elevated); color:var(--shot-text); font-size:13px; font-weight:600; }
.sf-perms li svg { flex:none; width:16px; height:16px; }
.sf-perms li[data-on="1"] svg { color:var(--status-upcoming-text); }
.sf-perms li[data-on="0"] { color:var(--shot-text-secondary); }
.sf-can { border-top:1px solid var(--shot-border); }
.sf-can summary { display:flex; align-items:center; min-height:44px; font-weight:700; cursor:pointer; }
.sf-can summary:focus-visible { outline:2px solid var(--shot-teal); outline-offset:2px; }
.sf-can[open] > .sc-review-queue { margin-bottom:var(--s2,8px); }
.sf-kid > .sc-actions > .w-btn--primary-teal { flex:1 1 100%; width:100%; justify-content:center; min-height:44px; }

/* ---- 25. Gold as text: a darker gold for light and mixed (the same text-safe amber the status tokens use), unchanged in dark ----
   --status-past-text already has a dark value (the brand gold) and a light value (#7A5600, 5.5:1 on cream), and Mixed re-scopes it with the reading
   surface, so gold text takes it by name here. Gold fills (buttons, rings, the dot) keep --shot-gold. */
.sc { --shot-gold-text:var(--status-past-text); }
.sc .sc-post-top .sc-action[data-act="social:person"],
.sc .sc-post-people a { color:var(--shot-gold-text); }
