/* HPC-19 part D: Skool-style section styles (colours only from tokens.css)
   11 the member profile (heatmap, memberships, contributions, the right card), 12 the settings page with a left menu,
   13 the chat and bell panels, 14 Discover and the create pitch. Loaded by the community base (all four s19 files) and
   by the root templates of sections 12 and 14 themselves. */

/* ---- 13: the chat and bell panels (inside the top bar's .dd-menu) ---------------------------------------- */
.s19-panel { width: min(360px, calc(100vw - 48px)); max-height: min(70vh, 560px); overflow-y: auto; overflow-x: hidden; }
.bell-menu .s19-panel { width: auto; max-height: none; overflow: visible; }
.s19-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) var(--s-1) var(--s-2); }
.s19-panel-title { margin: 0; font-size: var(--fs-16); }
.dd-menu .s19-panel .btn, .s19-panel .btn { width: auto; min-height: 36px; padding: 0 var(--s-3); }
.dd-menu .s19-panel form { margin: 0; }
.s19-group + .s19-group { border-top: var(--bw) solid var(--line); margin-top: var(--s-2); padding-top: var(--s-2); }
.s19-group-head { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); padding: 0 var(--s-1); font-size: var(--fs-14); color: var(--ink-2); }
.s19-group-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.s19-list { list-style: none; margin: 0; padding: 0; }
.dd-menu .s19-item a, .s19-item a { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 48px; padding: var(--s-2); border-radius: var(--r-ctl);
  color: var(--ink); text-decoration: none; height: auto; }
.s19-item a:hover { background: var(--surface); text-decoration: none; }
.s19-item.is-unread a { background: var(--sky-tint); }
.s19-text { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; line-height: var(--lh-tight); }
.s19-line { overflow-wrap: anywhere; }
.s19-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s19-item .when { font-size: var(--fs-13); color: var(--ink-2); }
.s19-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-1); flex: none; }
.s19-kind { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--surface); color: var(--sky-ink); }
.s19-dot { width: 8px; height: 8px; margin-top: 6px; flex: none; border-radius: 50%; background: var(--sky-deep); }
.s19-empty { margin: 0; padding: var(--s-3) var(--s-2); }
.s19-panel-foot { border-top: var(--bw) solid var(--line); margin-top: var(--s-2); padding: var(--s-2) var(--s-1) 0; }
.dd-menu .s19-panel-foot a { min-height: 40px; width: auto; display: inline-flex; color: var(--sky-ink); }

/* ---- 11: the member profile ---------------------------------------------------------------------------- */
.s19-prof { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.s19-prof-side, .s19-prof-main { min-width: 0; }
.s19-heat-card .split { flex-wrap: wrap; }
.s19-prof-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-content: start; }
.s19-prof-main > .card { margin: 0; }
@media (min-width: 900px) {
  .s19-prof { grid-template-columns: minmax(0, var(--feed-w)) var(--side-w); gap: var(--s-5); align-items: start; }
  .s19-prof-side { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--topbar-h) + 64px); }
  .s19-prof-main { grid-column: 1; grid-row: 1; }
}
.s19-h2 { margin: 0 0 var(--s-3); font-size: var(--fs-18); }
.s19-pcard { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.s19-pcard-photo .av-xl, .av-xl { width: 128px; height: 128px; }
.av-xl .av-ini { font-size: var(--fs-36); }
.av-xl .av-lv { min-width: 30px; height: 30px; font-size: var(--fs-14); line-height: 26px; right: 2px; bottom: 2px; }
.s19-pcard-name { margin: var(--s-1) 0 0; font-size: var(--fs-22); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.s19-pcard-handle { color: var(--ink-2); font-size: var(--fs-14); }
.s19-pcard-handle a { color: var(--sky-ink); }
.s19-pcard-bio { margin: 0; overflow-wrap: anywhere; }
.s19-pcard-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--fs-14); color: var(--ink-2); }
.s19-pcard-facts li { display: flex; align-items: center; justify-content: center; gap: var(--s-1); }
.s19-online { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); display: inline-block; }
.s19-pcard-counts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: var(--s-2) 0 0; padding: var(--s-3) 0;
  border-top: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); }
.s19-pcard-counts > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.s19-pcard-counts > div + div { border-left: var(--bw) solid var(--line); }
.s19-pcard-counts dt { font-size: var(--fs-13); color: var(--ink-2); }
.s19-pcard-counts dd { margin: 0; font-size: var(--fs-18); font-weight: 700; }
.s19-pcard-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); width: 100%; }
.s19-pcard-actions form { margin: 0; }
.s19-pcard-actions .btn { min-height: 44px; }
.s19-pcard-level { width: 100%; text-align: left; }

/* the activity heatmap: 53 week columns of 7 days; a phone shows the newest 26 weeks */
.s19-heat { margin-top: var(--s-1); }
.s19-heat-months, .s19-heat-grid { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 2px; }
.s19-heat-months { font-size: var(--fs-13); color: var(--ink-2); margin-bottom: var(--s-1); min-height: 1.2em; }
.s19-heat-months span { grid-column: var(--c) / span 4; grid-row: 1; white-space: nowrap; }
.s19-heat-grid { grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
.hm { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--surface); outline: var(--bw) solid color-mix(in srgb, var(--line) 70%, transparent); outline-offset: -1px; }
.hm-1 { background: color-mix(in srgb, var(--sky) 35%, var(--bg)); }
.hm-2 { background: color-mix(in srgb, var(--sky) 55%, var(--bg)); }
.hm-3 { background: var(--sky); }
.hm-4 { background: var(--sky-deep); }
.hm.is-future { visibility: hidden; }
.s19-heat-key { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: var(--s-2); }
.s19-heat-key .hm { width: 12px; height: 12px; }
.s19-heat-key span:first-child { margin-right: var(--s-1); } .s19-heat-key span:last-child { margin-left: var(--s-1); }
@media (max-width: 639px) {
  .s19-heat-months, .s19-heat-grid { grid-template-columns: repeat(26, minmax(0, 1fr)); }
  .s19-heat-grid .is-old, .s19-heat-months .is-old { display: none; }
  .s19-heat-months span { grid-column: var(--cm) / span 4; }
}

.s19-mships { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.s19-mship { display: flex; flex-direction: column; height: 100%; border: var(--bw) solid var(--line); border-radius: var(--r-card); overflow: hidden; color: var(--ink); }
.s19-mship:hover { text-decoration: none; border-color: var(--sky); }
.s19-mship-cover { aspect-ratio: 16 / 7; background: var(--sky-tint); overflow: hidden; }
.s19-mship-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s19-mship-body { display: flex; flex-direction: column; gap: 2px; padding: var(--s-2) var(--s-3) var(--s-3); }

.s19-pills { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px 2px var(--s-2); scrollbar-width: none; }
.s19-pills::-webkit-scrollbar { display: none; }
.s19-pill { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); font-size: var(--fs-14); white-space: nowrap; }
.s19-pill:hover { text-decoration: none; background: var(--surface); }
.s19-pill[aria-current="page"] { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--bg); }
.s19-pills-sm .s19-pill { min-height: 36px; padding: 0 var(--s-3); }
@media (pointer: coarse) { .s19-pills-sm .s19-pill { min-height: 44px; } }

.s19-contribs { list-style: none; margin: 0; padding: 0; }
.s19-contrib { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-top: var(--bw) solid var(--line); }
.s19-contrib:first-child { border-top: 0; }
.s19-contrib-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--sky-tint); color: var(--sky-ink); }
.s19-contrib-body { min-width: 0; flex: 1; }
.s19-contrib-title { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.s19-contrib-text { margin: 2px 0; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---- 12: settings with a left menu (root site, My account) ------------------------------------------------ */
.s19-acct-wrap { padding-top: var(--s-6); padding-bottom: var(--s-8); max-width: 1080px; }
.s19-acct-h1 { margin: 0 0 var(--s-4); }
.s19-acct { display: grid; gap: var(--s-4); }
.s19-acct-menu ul { list-style: none; margin: 0; padding: var(--s-2); background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-card); }
.s19-acct-menu a { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-ctl); color: var(--ink); }
.s19-acct-menu a:hover { background: var(--surface); text-decoration: none; }
.s19-acct-menu a[aria-current="page"] { background: var(--sky-tint); color: var(--sky-ink); font-weight: 600; }
.s19-acct-menu a span { flex: 1; }
.s19-chev { color: var(--ink-2); }
.s19-acct-body { min-width: 0; }
.s19-acct-h2 { margin: 0 0 var(--s-3); font-size: var(--fs-22); }
.s19-acct-back { display: none; align-items: center; gap: var(--s-1); min-height: 44px; margin-bottom: var(--s-2); }
.s19-acct-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .s19-acct-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
@media (min-width: 760px) {
  .s19-acct { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .s19-acct-menu { position: sticky; top: var(--s-4); }
  .s19-chev { display: none; }
}
@media (max-width: 759px) {
  .s19-acct:not(.is-chosen) .s19-acct-body { display: none; }  /* /account with no tab: the menu is the page */
  .s19-acct.is-chosen .s19-acct-menu { display: none; }
  .s19-acct.is-chosen .s19-acct-back { display: inline-flex; }
  .s19-acct-menu a { min-height: 52px; }
}
.s19-dock-list { padding: 0; }
.s19-dock-list ul, .s19-site-list, .s19-rules { list-style: none; margin: 0; padding: 0; }
.s19-dock-row, .s19-site-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4);
  border-top: var(--bw) solid var(--line); }
.s19-dock-row:first-child, .s19-site-list li:first-child { border-top: 0; }
.s19-site-list { padding: 0; }
.s19-site-list li > .mem { flex: 1 1 200px; min-width: 0; color: var(--ink); }
.s19-dock-name { flex: 1 1 200px; min-width: 0; color: var(--ink); }
.s19-dock-name b { overflow-wrap: anywhere; }
.s19-dock-row.is-hidden .s19-dock-name { color: var(--ink-2); }
.s19-dock-tags { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.s19-dock-btns { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-left: auto; }
.s19-dock-btns .icon-btn, .s19-dock-btns .btn { min-height: 44px; min-width: 44px; }
.s19-dock-btns .icon-btn[disabled] { opacity: .4; cursor: default; }
.s19-rules li { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-1) 0; }
.s19-theme { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.s19-theme legend { font-weight: 600; margin-bottom: var(--s-2); padding: 0; }

/* ---- 14: Discover and the create pitch (root site) ------------------------------------------------------ */
.s19-disc-hero { padding: var(--s-6) 0 var(--s-4); text-align: center; }
.s19-disc-band { margin: 0 0 var(--s-5); }
.s19-disc-band img { aspect-ratio: 3 / 1; border-radius: var(--r-card); }
@media (min-width: 760px) { .s19-disc-band img { aspect-ratio: 6 / 1; } }
.s19-disc-title { margin: 0; font-size: clamp(var(--fs-28), 6vw, 3rem); line-height: var(--lh-tight); letter-spacing: -0.01em; }
.s19-disc-sub { margin: var(--s-2) 0 var(--s-4); color: var(--ink-2); }
.s19-disc-search { display: flex; align-items: center; gap: var(--s-2); max-width: 640px; margin: 0 auto; padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4);
  background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-menu); }
.s19-disc-search:focus-within { border-color: var(--sky); }
.s19-disc-search .ic { color: var(--ink-2); flex: none; }
.s19-disc-search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 44px; padding: 0; box-shadow: none; }
.s19-disc-search input:focus { outline: none; }
.s19-disc-search .btn { border-radius: var(--r-pill); min-height: 44px; flex: none; }
.s19-disc-body { padding-bottom: var(--s-8); }
.s19-disc-body .s19-pills { justify-content: flex-start; margin-bottom: var(--s-4); }
@media (min-width: 1000px) { .s19-disc-body .s19-pills { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.s19-disc-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .s19-disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .s19-disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.s19-disc-grid .cc { margin: 0; height: 100%; }
.s19-rating { display: inline-flex; align-items: center; gap: 2px; }
.s19-rating .ic { color: var(--sun); fill: var(--sun); }

.s19-pitch-hero { padding: var(--s-7) 0 var(--s-5); text-align: center; }
.s19-pitch-lead { max-width: 640px; margin: var(--s-3) auto var(--s-4); font-size: var(--fs-18); color: var(--ink-2); }
.s19-pitch-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.s19-pitch-cta .btn { min-height: 48px; }
.s19-pitch-body { padding-bottom: var(--s-8); }
.s19-pitch-h2 { margin: var(--s-6) 0 var(--s-4); font-size: var(--fs-22); text-align: center; }
.s19-pitch-grid, .s19-pitch-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .s19-pitch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s19-pitch-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .s19-pitch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.s19-pitch-grid li, .s19-pitch-steps li { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); background: var(--card);
  border: var(--bw) solid var(--line); border-radius: var(--r-card); }
.s19-pitch-grid .ic { color: var(--sky-ink); margin-bottom: var(--s-1); }
.s19-pitch-grid span, .s19-pitch-steps span { color: var(--ink-2); font-size: var(--fs-14); }
.s19-pitch-steps { counter-reset: s19step; }
.s19-pitch-steps li::before { counter-increment: s19step; content: counter(s19step); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--sky-tint); color: var(--sky-ink); font-weight: 700; margin-bottom: var(--s-1); }
.s19-pitch-end { margin-top: var(--s-6); text-align: center; }
.s19-pitch-end h2 { margin-top: 0; }
