/* Members page v4 (flag MembersV4): "Today in {city}". Design: docs/design/pages-h/S_Members_v4.html.
   Loaded after members.css (phone tab bar, shared bits). Tokens from tokens.css. */
.t4-defs{position:absolute;width:0;height:0;overflow:hidden}
.t4{display:flex;flex-direction:column;gap:40px;padding-block:28px 64px}

.t4-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.t4-head h1{margin:0;font-family:var(--font-display);font-style:italic;font-weight:400;font-size:64px;line-height:1.02;letter-spacing:-.02em;color:var(--ink)}
.t4-stats{margin:10px 0 0;display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--ink-muted)}
.t4-total{color:var(--ink);font-weight:600}
.t4-live{display:inline-flex;align-items:center;gap:7px;color:var(--live);font-weight:600}
.t4-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
/* Selects: no browser arrow; the ChevronDown icon (Ui/Icons.cs) drawn thin in ink. */
.t4-city,.t4-sheet select{appearance:none;-webkit-appearance:none;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
  background:var(--surface) no-repeat calc(100% - 18px) 50% / 16px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a0a19' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
.t4-city{box-sizing:border-box;height:48px;width:240px;max-width:100%;padding:0 46px 0 20px;border:1.5px solid var(--ink);border-radius:var(--radius-pill);
  color:var(--ink);font:600 15px/1 var(--font-sans)}
.t4-city:hover{background-color:var(--surface-soft)}
.t4-city:focus-visible{outline:3px solid var(--accent-tint-border);outline-offset:2px}
.t4-city option,.t4-sheet select option{color:var(--ink);background:var(--surface);font-weight:400}
.cg-body a.t4-searchbtn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border-radius:var(--radius-pill);border:1.5px solid var(--border);background:var(--surface);color:var(--ink);font:600 15px var(--font-sans)}

.t4-band{display:flex;flex-direction:column;gap:16px;scroll-margin-top:16px}
.t4-bandhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:2px solid var(--ink);padding-top:14px}
.t4-bandhead h2{margin:0;font-size:22px;font-weight:600;color:var(--ink);display:flex;align-items:center;gap:10px}
.t4-bandhead p{margin:2px 0 0;font-size:14px;color:var(--ink-muted)}
.t4-bandhead a{font-weight:600;min-height:44px;display:inline-flex;align-items:center}

/* Faces */
.t4-faces{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
.cg-body a.t4-face{display:flex;flex-direction:column;gap:8px;color:var(--ink)}
.t4-face strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t4-face .t4-sub{font-size:13px;color:var(--ink-muted);margin-top:-6px}
.t4-pic{position:relative;display:block;aspect-ratio:1/1;border-radius:var(--radius-l);overflow:hidden}
.t4-face:hover .t4-pic,.t4-face:focus-visible .t4-pic{outline:3px solid var(--accent-tint-border);outline-offset:2px}

/* Avatars: a drawn face under the photo, so a photo that fails to load still leaves a person. */
.t4-pic svg,.t4-av svg{position:absolute;inset:0;width:100%;height:100%}
.t4-pic svg{top:auto;height:86%;width:86%;left:7%}
.t4-real{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.t4-skin{fill:var(--t4-skin,#f6d7c3)}.t4-hair{fill:var(--t4-hair,#3d0f24)}.t4-shirt{fill:var(--t4-shirt,#fff);opacity:.9}.t4-cap{fill:var(--t4-cap,#2a1e3a)}
.t4-sh1{--t4-shirt:#ffffff;--t4-cap:#3d0f24}.t4-sh2{--t4-shirt:#b7d3c6;--t4-cap:#2a4b40}.t4-sh3{--t4-shirt:#c9c1e8;--t4-cap:#2a1e3a}.t4-sh4{--t4-shirt:#f2c9a8;--t4-cap:#5a2a1a}
.t4-g1{background:#f5d6df}.t4-g2{background:#e9def3}.t4-g3{background:#d8eae1}
.t4-g4{background:#dce7f4}.t4-g5{background:#fbe1cd}.t4-g6{background:#ebe4d1}
.t4-s1{--t4-skin:#f6d7c3}.t4-s2{--t4-skin:#f1c9a5}.t4-s3{--t4-skin:#e0ac85}.t4-s4{--t4-skin:#b9785a}.t4-s5{--t4-skin:#7a4a30}
.t4-h1{--t4-hair:#3d0f24}.t4-h2{--t4-hair:#5a2a1a}.t4-h3{--t4-hair:#1d1d1d}
.t4-h4{--t4-hair:#2a1e3a}.t4-h5{--t4-hair:#c9a26b}.t4-h6{--t4-hair:#9a9a9a}

/* Guest view: a fuller face mosaic with a "+N more" tile; the city's places and events; a closing join line. */
.t4-faces--guest{grid-template-columns:repeat(6,minmax(0,1fr))}
.t4-faces--guest li:nth-child(n+7){display:list-item}
.t4-moretile a{display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1/1;border-radius:var(--radius-l);background:var(--panel);text-align:center}
.cg-body .t4-moretile a{color:var(--on-panel)}
.t4-moretile span{font-family:var(--font-display);font-style:italic;font-size:40px;line-height:1}
.t4-moretile small{font-size:13px;opacity:.85;margin-top:4px}
.t4-gcards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.t4-gcards--events{grid-template-columns:repeat(3,minmax(0,1fr))}
.cg-body .t4-gcards a{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;padding:16px 18px;border-radius:var(--radius-l);border:1px solid var(--border);background:var(--surface);color:var(--ink)}
.t4-gcards b{font-size:17px;font-weight:600}.t4-gcards span{font-size:13px;color:var(--ink-muted)}
.t4-gcards time{font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--ink-caption)}
.t4-guestend{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;color:var(--ink-muted)}
.t4-guestend p{margin:0}.t4-guestend b{color:var(--ink)}
@media (max-width:1000px){.t4-faces--guest{grid-template-columns:repeat(4,minmax(0,1fr))}.t4-gcards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.t4-gcards,.t4-gcards--events{grid-template-columns:minmax(0,1fr)}.t4-moretile span{font-size:28px}}
/* Guest view: the join panel (dark, like the home members box). */
.t4-guestcta{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding:28px 32px;border-radius:var(--radius-xl);background:var(--panel);color:var(--on-panel)}
.t4-guestcta__tx{flex:1 1 420px;min-width:0}
.t4-guestcta h2{margin:0 0 8px;font-family:var(--font-display);font-style:italic;font-weight:400;font-size:40px;line-height:1.08;color:inherit}
.t4-guestcta p{margin:0 0 12px;opacity:.9}
.t4-guestcta ul{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px;font-size:14px;opacity:.85}
.t4-guestcta li::before{content:"\2713\00a0";color:var(--live-dot)}
.t4-guestcta__act{display:flex;flex-direction:column;gap:10px;flex:0 0 auto}
.cg-body .t4-guestcta__act .cg-btn--soft{background:transparent;color:var(--on-panel);border:1.5px solid currentColor}
@media (max-width:720px){.t4-guestcta{padding:22px 20px}.t4-guestcta h2{font-size:30px}.t4-guestcta__act{flex:1 1 100%}}
.t4-promptline{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 20px;border-radius:var(--radius-l);background:var(--surface-warm)}
.t4-promptline p{margin:0;color:var(--ink)}.t4-promptline p span{color:var(--ink-muted)}

/* Directory */
.t4-dirbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.t4-find{position:relative;flex:1 1 280px;max-width:420px}
.t4-find .cg-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--ink-muted)}
.t4-find input{width:100%;box-sizing:border-box;min-height:48px;padding:0 16px 0 44px;border:1.5px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);font:16px var(--font-sans);color:var(--ink)}
.t4-filterbtn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border:1.5px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font:600 15px var(--font-sans);cursor:pointer}
.t4-filterbtn b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:var(--ink);color:var(--surface);font-size:12px}
#t4-results{display:flex;flex-direction:column;gap:14px}
/* Loading: the list fades and a bar runs along its top edge; the status line says "Loading members…". */
#t4-results{position:relative}
#t4-results[aria-busy="true"] .t4-rows,#t4-results[aria-busy="true"] .t4-none{opacity:.45;transition:opacity .15s}
#t4-results[aria-busy="true"]::before{content:"";position:absolute;left:0;right:0;top:-8px;height:3px;border-radius:2px;
  background:linear-gradient(90deg,transparent 0,var(--accent) 50%,transparent 100%) 0 0/40% 100% no-repeat,var(--accent-tint);
  animation:t4-load 1s linear infinite}
#t4-results[aria-busy="true"] .t4-count{color:var(--ink);font-weight:600}
#t4-more[aria-busy="true"]{opacity:.7;pointer-events:none}
@keyframes t4-load{from{background-position:-40% 0,0 0}to{background-position:140% 0,0 0}}
@media (prefers-reduced-motion:reduce){#t4-results[aria-busy="true"]::before{animation:none;background:var(--accent)}}
.t4-applied{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.cg-body a.t4-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:var(--radius-pill);background:var(--surface-soft);color:var(--ink);font-size:14px;font-weight:600}
.cg-body a.t4-suggest{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:56px;padding:10px 18px;border-radius:var(--radius-l);background:var(--surface-warm);color:var(--ink);font-size:16px}
.t4-suggest small{margin-left:auto;font-size:14px;font-weight:600;color:var(--link)}
.t4-count{margin:0;font-size:13px;color:var(--ink-caption)}
.t4-none{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border-radius:var(--radius-l);border:1px dashed var(--border)}
.t4-none p{margin:0;color:var(--ink-muted)}.t4-none strong{color:var(--ink)}
.t4-rows{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
.cg-body a.t4-row{display:flex;gap:14px;align-items:center;min-height:76px;padding:12px 4px;border-top:1px solid var(--surface-divider);color:var(--ink)}
.cg-body a.t4-row:hover{background:var(--surface-warm)}
.t4-av{position:relative;flex:none;width:52px;height:52px;border-radius:50%;overflow:hidden}
.t4-row__tx{display:flex;flex-direction:column;min-width:0;flex:1}
.t4-row__tx strong{font-size:16px}
.t4-row__tx span{font-size:13px;color:var(--ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t4-row__when{flex:none;font-size:13px;color:var(--ink-caption)}
.t4-row__when.is-on{color:var(--live);font-weight:600}
.t4-more{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:8px}
.t4-privacy{margin:0;font-size:13px;color:var(--ink-caption)}

/* Filters sheet: centred on wide screens, a bottom sheet on phones. */
dialog.t4-sheet{box-sizing:border-box;width:calc(100vw - 32px);max-width:440px;max-height:calc(100vh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);color:var(--ink)}
.t4-sheet::backdrop{background:rgba(40,8,24,.45)}
.t4-sheet h2{margin:0 0 18px;font-size:22px;font-weight:600}
.t4-sheet fieldset{border:0;margin:0 0 20px;padding:0;min-width:0;display:flex;flex-direction:column;gap:4px}
.t4-sheet legend{font-weight:600;margin-bottom:8px;padding:0}
.t4-sheet label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}
.t4-sheet select{max-width:100%;min-width:96px;min-height:44px;padding:0 36px 0 14px;border:1.5px solid var(--border);border-radius:var(--radius-m);
  font:15px var(--font-sans);color:var(--ink);background-position:calc(100% - 12px) 50%}
.t4-sheet input[type=radio],.t4-sheet input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;margin:0}
/* Quick filters on the page: activity pills, the age slider, the photo toggle. */
.t4-quick{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:4px}
.t4-when{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0;min-width:0}
.t4-pill{position:relative;display:inline-flex}
.t4-pill input{position:absolute;opacity:0;width:1px;height:1px}
.t4-pill span{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 16px;border-radius:var(--radius-pill);border:1.5px solid var(--border);
  background:var(--surface);color:var(--ink);font:600 14px var(--font-sans);cursor:pointer;user-select:none}
@media (hover:hover){.t4-pill span:hover{background:var(--surface-soft)}}
.t4-pill input:checked + span{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.t4-pill input:focus-visible + span{outline:3px solid var(--accent-tint-border);outline-offset:2px}
.t4-pill--toggle input:checked + span::before{content:"\2713";font-weight:700}
.t4-age{display:flex;align-items:center;gap:14px;min-width:260px;flex:0 1 340px}
.t4-age__label{flex:none;font-weight:600;font-size:14px;color:var(--ink);min-width:86px}
.t4-age__label output{font-weight:400;color:var(--ink-muted)}
.t4-age__track{--lo:0%;--hi:100%;position:relative;flex:1;height:44px}
.t4-age__track::before{content:"";position:absolute;left:0;right:0;top:50%;height:4px;margin-top:-2px;border-radius:2px;
  background:linear-gradient(to right,var(--border) var(--lo),var(--accent) var(--lo),var(--accent) var(--hi),var(--border) var(--hi))}
.t4-age__track input{position:absolute;left:0;top:0;width:100%;height:44px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.t4-age__track input::-webkit-slider-runnable-track{background:none;height:44px}
.t4-age__track input::-moz-range-track{background:none}
.t4-age__track input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:26px;height:26px;margin-top:9px;border-radius:50%;
  background:var(--surface);border:2px solid var(--accent);box-shadow:0 1px 4px rgba(61,15,36,.25);cursor:grab}
.t4-age__track input::-moz-range-thumb{pointer-events:auto;width:22px;height:22px;border-radius:50%;background:var(--surface);border:2px solid var(--accent);cursor:grab}
.t4-age__track input:focus-visible::-webkit-slider-thumb{outline:3px solid var(--accent-tint-border);outline-offset:2px}
.t4-sheet__act{display:flex;gap:10px;justify-content:space-between;border-top:1px solid var(--surface-divider);padding-top:16px}
.t4-sheet__close{position:absolute;top:14px;right:14px;width:44px;height:44px;border:0;border-radius:50%;background:var(--surface-soft);color:var(--ink);font:400 28px/1 var(--font-sans);cursor:pointer}

@media (max-width:1000px){
  .t4-faces{grid-template-columns:repeat(6,minmax(0,1fr))}
  .t4-faces li:nth-child(n+7){display:none}
}
@media (max-width:720px){
  .t4{gap:32px;padding-block:18px 40px}
  .t4-head h1{font-size:42px}
  .t4-tools{width:100%;flex-wrap:nowrap}.t4-city{flex:1 1 0;min-width:0;width:100%;max-width:none}
  .t4-faces{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
  .t4-faces li:nth-child(n+7){display:list-item}
  .t4-face strong{font-size:13px}
  .t4-face .t4-sub{font-size:12px}
  .t4-rows{grid-template-columns:minmax(0,1fr)}
  .t4-find{max-width:none;flex:1 1 0;min-width:0}
  .t4-filterbtn{flex:none;padding:0 16px}
  .t4-quick{gap:12px}
  .t4-age{flex:1 1 100%;min-width:0}
  .t4-age__track input::-webkit-slider-thumb{width:30px;height:30px;margin-top:7px}
  dialog.t4-sheet{width:100vw;max-width:none;margin:auto 0 0 0;border-radius:var(--radius-xl) var(--radius-xl) 0 0;max-height:88vh}
}
