/* HPC-19: the Skool-style frame (SKOOL-PARITY-SPEC sections 1-2). Colours only from tokens.css. */

/* ---- the tabs: the current one underlined ---- */
.nav-tabs .c-tabs .tabs a { font-weight: 600; }
.nav-tabs .c-tabs .tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--sky); }

/* ---- the dock: one square per community, far left (wide screens only; phones use the switcher) ---- */
.sk-dock { display: none; }
@media (min-width: 1100px) {
  .sk-dock {
    display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
    position: fixed; left: 0; top: var(--topbar-h); bottom: 0; width: 64px; z-index: 20;
    padding: var(--s-3) 0; background: var(--surface); border-right: var(--bw) solid var(--line); overflow-y: auto;
  }
  .sk-dock a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); color: var(--ink-2); }
  .sk-dock a:hover, .sk-dock a:focus-visible { background: var(--sky-tint); }
  .sk-dock a[aria-current="true"] { box-shadow: 0 0 0 2px var(--sky); }
  .sk-dock .logo-sq { width: 40px; height: 40px; }
  .sk-dock .dot { position: absolute; top: -2px; right: -2px; }
  .sk-dock-add { border: var(--bw) dashed var(--line); }
  .has-dock .c-top, .has-dock .c-tabs, .has-dock .c-shell, .has-dock .preview-banner, .has-dock .ro-bar { margin-left: 64px; }
}

/* ---- the account menu's head ---- */
.sk-menu-who { display: flex; flex-direction: column; padding: 4px 8px 6px; max-width: 260px; }
.sk-menu-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the feed: composer, event banner, category pills, sort ---- */
.sk-composer { padding: var(--s-3); }
.sk-composer .composer-open { display: flex; align-items: center; gap: var(--s-3); width: 100%; border: 0; background: none; padding: 0; cursor: text; }
.sk-composer .fake { flex: 1; text-align: left; padding: 10px 14px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); }
.sk-banner {
  display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0; padding: 10px var(--s-3);
  border-radius: var(--r-card); background: var(--sky-tint); color: var(--sky-ink); font-weight: 600; text-decoration: none;
}
.sk-banner span { flex: 1; min-width: 0; }
.sk-banner:hover, .sk-banner:focus-visible { text-decoration: underline; }
.sk-pills-row { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0; }
.sk-pills { display: flex; gap: var(--s-2); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sk-pills::-webkit-scrollbar { display: none; }
.sk-pills > a, .sk-pill-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 36px; padding: 6px 14px;
  border-radius: var(--r-pill); background: var(--card); border: var(--bw) solid var(--line); color: var(--ink); font-size: var(--fs-14); text-decoration: none;
}
.sk-pills > a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.sk-pills > a:hover, .sk-pill-btn:hover { border-color: var(--sky); }
.sk-pill-btn { cursor: pointer; }
@media (min-width: 760px) { .sk-pills > a.sk-pill-more { display: none; } }
@media (max-width: 759px) { .sk-more-cats { display: none; } }
.sk-sort .dd-menu { right: 0; left: auto; }
.sk-sort .dd-menu a[aria-current="true"] { font-weight: 700; }

/* ---- post cards ---- */
.sk-post .post-head { margin-bottom: var(--s-2); }
.sk-post-body { display: flex; gap: var(--s-3); align-items: flex-start; }
.sk-post-text { flex: 1; min-width: 0; }
.sk-post h2 { font-size: var(--fs-18); font-weight: 700; margin: 0 0 4px; line-height: var(--lh-tight); }
.sk-post h2 a { color: var(--ink); }
.sk-post .excerpt { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--ink-2); }
.sk-post .thumb { flex: 0 0 auto; width: 120px; height: 84px; margin: 0; border-radius: var(--r-ctl); overflow: hidden; position: relative; }
.sk-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .sk-post .thumb { width: 84px; height: 64px; } }
.sk-post .post-foot { flex-wrap: wrap; row-gap: 6px; }
.sk-post .av-stack { margin-left: var(--s-2); }
.sk-last { color: var(--sky-ink); white-space: nowrap; }
.pinned-label { margin-bottom: var(--s-2); color: var(--ink-2); font-size: var(--fs-13); font-weight: 600; }

/* ---- numbered pages ---- */
.sk-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: var(--s-4) 0; }
.sk-pager a, .sk-pager span.cur, .sk-pager span.off, .sk-pager .gap {
  display: inline-flex; align-items: center; gap: 4px; min-width: 40px; min-height: 40px; justify-content: center; padding: 0 10px;
  border-radius: var(--r-ctl); font-size: var(--fs-14);
}
.sk-pager a { color: var(--ink); border: var(--bw) solid var(--line); background: var(--card); text-decoration: none; }
.sk-pager a:hover, .sk-pager a:focus-visible { border-color: var(--sky); }
.sk-pager span.cur { background: var(--sky-tint); color: var(--sky-ink); font-weight: 700; }
.sk-pager span.off { color: var(--ink-2); }  /* no opacity: the greyed words keep their contrast (Lighthouse) */
.sk-pager .sk-range { flex-basis: 100%; text-align: center; }

/* ---- the right column ---- */
.sk-ccard .sk-addr { margin: 2px 0 0; overflow-wrap: anywhere; }
.sk-ccard .stats a { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: var(--r-ctl); padding: 4px; }
.sk-ccard .stats a:hover, .sk-ccard .stats a:focus-visible { background: var(--sky-tint); }
.sk-faces { display: flex; flex-wrap: wrap; gap: 4px; margin: var(--s-2) 0 var(--s-3); }
.sk-lb .sk-lb-list { list-style: none; margin: var(--s-2) 0; padding: 0; display: grid; gap: 8px; }
.sk-lb li { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.sk-lb li a.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.sk-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--fs-13); font-weight: 700; color: var(--ink-2); background: var(--surface); }
.sk-rank.r1 { background: var(--sun); color: var(--ink); }
.sk-rank.r2 { background: var(--line); color: var(--ink); }
.sk-rank.r3 { background: var(--rose); color: var(--rose-ink); }
.sk-powered { text-align: center; margin: var(--s-2) 0; }

/* the pilot's Feedback button sits above the phone bar, never over its first tab */
@media (max-width: 999px) { .c-site .fb { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (min-width: 1100px) { .has-dock .fb { left: calc(64px + 16px); } }

/* the phone bar's five labels (Community, Classroom, Calendar, Members, More) never touch on a 360 px screen */
@media (max-width: 400px) { .c-bottom a span, .c-bottom button span:not(.dot) { font-size: 11px; letter-spacing: -.01em; } .c-bottom a, .c-bottom button { padding-left: 2px; padding-right: 2px; } }
