/* Density pass 2026-10-23: same look, tighter proportions, real content in the first screen.
   Loaded after bt.css and lab.css. Remove this file (and its <link>) to go back. */

/* Header: slimmer top bar and page titles */
.topbar { padding-top: calc(8px + var(--safe-t)); padding-bottom: 6px; }
.ph { margin: 2px 0 12px; align-items: center; }
.ph h1 { font-size: clamp(28px, 7.5vw, 34px); }
.ph .sub { font-size: 14px; margin-top: 4px; }
.sec-h { margin: 22px 0 10px; }
.sec-h h2 { font-size: 18px; }
.sec-h h2 .ic { width: 16px; height: 16px; vertical-align: -1px; color: var(--ytext); }
@media (min-width: 760px) {
  .topbar { padding-top: calc(10px + var(--safe-t)); padding-bottom: 6px; }
  .ph h1 { font-size: 38px; }
}
@media (min-width: 1180px) {
  .topbar { padding-top: 12px; padding-bottom: 4px; }
  .ph { margin-top: -6px; }
}

/* "About this page", slim form: one yellow line */
details.pintro.slim { margin: 0 0 14px; }
details.pintro.slim > summary { padding: 9px 12px; gap: 10px; font: 400 14.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
details.pintro.slim .pintro-ic { width: 28px; height: 28px; border-radius: 9px; }
details.pintro.slim .pintro-ic .ic { width: 15px; height: 15px; }
details.pintro.slim .pintro-lead { flex: 1; min-width: 0; }
details.pintro.slim .pintro-tg { font: 600 11px var(--display); letter-spacing: .12em; text-transform: uppercase; }
details.pintro.slim[open] .pintro-tg { display: none; }
details.pintro.slim[open] > summary::after { margin-left: 4px; }
details.pintro.slim:not([open]) .pintro-lead { display: none; }
details.pintro.slim:not([open]) > summary::before { content: ''; }
details.pintro.slim:not([open]) { display: inline-block; }

/* News: tabs and search on one line, feeds folded to one row */
.nf-top { display: grid; gap: 10px; margin-bottom: 10px; }
.nf-top .seg { max-width: none; }
.nf-top .seg button { min-height: 40px; }
.nf-top .input { border-radius: 99px; min-height: 44px; }
@media (min-width: 640px) { .nf-top { grid-template-columns: 320px 1fr; align-items: center; } }
.news-filters { gap: 6px; margin-bottom: 14px; }
.news-filters .chip { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.nf-feeds:not(.open) .chips { max-height: 38px; overflow: hidden; }
.nf-more { display: inline-block; margin-left: 6px; font: inherit; color: var(--ytext); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 641px) { .nf-k { padding-top: 8px; } .nf-feeds .nf-k { display: flex; flex-direction: column; gap: 4px; } .nf-more { margin-left: 0; text-align: left; } }
#list > .sec-h:first-child { margin-top: 0 !important; }

/* Prompts: card description one point larger, discover cards at the end */
.prompt-card .ps { font-size: 15px; }
.disc-h { margin-top: 40px; }
.disc-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.disc-card { position: relative; display: grid; gap: 4px; padding: 16px 44px 16px 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.disc-card:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.disc-card b { font: 600 15px/1.15 var(--display); text-transform: uppercase; }
.disc-card span { color: var(--mut); font-size: 14px; line-height: 1.45; }
.disc-card > .ic { position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; color: var(--ytext); }

/* Calendar and downloads: hero becomes one compact band */
.cal-hero, .dl-hero { padding: 16px 18px; gap: 10px; }
.cal-hero h1, .dl-hero h1 { font-size: clamp(30px, 8vw, 46px); line-height: .95; }
.cal-shapes, .dl-shapes { transform: scale(.5); transform-origin: top right; }
.cal-show { margin: 12px 0; }
.dl-first { margin-top: 18px; }
@media (min-width: 760px) {
  .cal-hero, .dl-hero { padding: 18px 24px; align-items: center; }
  .cal-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .cal-hero .cal-ctl { grid-column: 1 / -1; }
  .dl-hero h1 { padding-right: 130px; }
}
@media (min-width: 1180px) {
  .dl-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-hero h1 { padding-right: 0; }
  .dl-hero .lab-stats { justify-self: end; margin-right: 150px; }
}
@media (min-width: 1180px) {
  .cal-hero { grid-template-columns: auto minmax(0, 1fr); }
  .cal-hero .cal-ctl { grid-column: auto; margin-right: 140px; }
  .cal-day { min-height: 84px; }
}

/* Spaces: joined = full colour cards, open to join = quiet rows with a Join button */
.sp-mine .pcard { min-height: 160px !important; }
.sp-in .ic { width: 12px; height: 12px; }
.sp-avail-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sp-avail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-avail { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r-lg); background: var(--s1); border: 1.5px dashed var(--line2); min-width: 0; }
.sp-av-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.sp-av-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 15px/1.15 var(--display); text-transform: uppercase; overflow: hidden; overflow-wrap: break-word; }
.sp-av-em { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.sp-join { flex: none; }
.sp-none { padding: 18px; }

/* Phones: the page name moves into the top bar (it is empty there anyway), filters get inline labels */
@media (max-width: 759px) {
  body:has(.view .ph.fold) .topbar .title.root:not(.brand) { visibility: visible; }
  .ph.fold { display: none; }
  .nf-top { gap: 8px; }
  .nf-top .input { min-height: 42px; }
  .nf-row { grid-template-columns: 74px 1fr; gap: 8px; }
  .nf-k { padding-top: 7px; font-size: 10px; }
  .nf-feeds .nf-k { display: flex; flex-direction: column; gap: 2px; }
  .nf-more { margin-left: 0; text-align: left; }
  .news-filters .chip { min-height: 32px; font-size: 13px; padding: 5px 11px; }
  .nf-feeds:not(.open) .chips { max-height: 34px; }
  details.pintro.slim > summary { font-size: 14px; }
  .cal-hero, .dl-hero { padding: 14px 16px; }
}
@media (max-width: 759px) {
  .sp-mine { gap: 10px; }
  .sp-mine .pcard { min-height: 0 !important; padding: 14px 16px; gap: 6px; }
  .sp-mine .pcard .title { font-size: 19px !important; margin-top: 2px; }
  .sp-mine .pcard .top span:first-child { font-size: 26px !important; }
  .sp-mine .pcard .ghost-word { font-size: 44px; }
}

/* Share (2026-10-23): small, quiet share buttons and the share sheet */
.share-btn .ic { width: 15px; height: 15px; }
.share-btn.quiet { background: transparent; color: var(--mut); }
.share-btn.quiet:hover { color: var(--ytext); }
.share-btn.on-colour { background: rgba(0, 0, 0, .12); color: #000; flex: none; }
.share-wa { background: #25D366; color: #000; }
.share-people { display: grid; gap: 4px; }
.share-p { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; text-align: left; color: var(--text); }
.share-p:hover { background: var(--s2); }
.share-p.on { background: var(--s2); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.share-p .ic { width: 15px; height: 15px; }
.share-p > .ic { color: var(--ytext); }
@media (max-width: 559px) { .sp-join { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; } .sp-join .sp-jl { display: none; } }
