/* site.css v6 (8 Nov 2026, Paper Projector rollout): loaded LAST on every page. The palette, type, buttons, cards and admin
   components now come from /paper-projector.css (linked first, <body class="pp">); this file keeps the site-wide pieces PP
   doesn't ship as CSS: section headings on the old markup, the phone menus, breadcrumbs spacing and the first-paint motion.
   History: v1 30 Oct (the Paper Projector look, option F), v2-v4 phone admin menu, breadcrumbs, sub-menu; v5/v6 PP rollout. */

/* Section headings: PP SectionHeading (Bricolage 700 1.35rem, hairline, 7px beam dot) on the existing h2s */
section>h2,.sechead>h2,.home .groups h2{font:700 1.35rem/1.2 var(--display);text-transform:none;letter-spacing:-.015em;color:var(--fg);
  padding-bottom:var(--space-heading);border-bottom:1px solid var(--line);margin:0 0 var(--space-3);display:flex;align-items:center;gap:8px}
section>h2::before,.sechead>h2::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--beam)}
.sechead{border-bottom:1px solid var(--line);margin-bottom:var(--space-3)}
.sechead>h2{border:0;margin:0;padding-bottom:var(--space-heading)}
@media (max-width:620px){.hero .hello{margin-top:40px}}

/* Menus on phones (PP TopBar / Breadcrumbs): the admin menu, the sub-menu and the public menu are each one swipeable row.
   acct.js scrolls the current page into view; the right edge fades so a cut word reads as "more this way"
   (8 Nov page audit: tools #16, system #44, guide #51, public #75). */
@media (max-width:620px){
  .pp .top nav,.pp nav.subnav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);padding-right:28px}
  /* scrolled along (acct.js adds .scrolled), the left edge fades too, so a cut word never reads like a typo ("dmin guide") */
  .pp .top nav.scrolled,.pp nav.subnav.scrolled{-webkit-mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 28px),transparent);
    mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 28px),transparent)}
  .pp .top nav::-webkit-scrollbar,.pp nav.subnav::-webkit-scrollbar{display:none}
  .pp .top nav a,.pp nav.subnav a{white-space:nowrap;flex:none}
  .pp .top nav{max-width:100%;padding-bottom:10px;margin-bottom:-6px}   /* room for the current-page underline (offset 7px) inside the scroller */
  .pp .top nav.adminnav{order:3;gap:18px;padding-bottom:10px;margin-inline:calc(-1 * max(20px,env(safe-area-inset-left,0px)));
    padding-left:max(20px,env(safe-area-inset-left,0px));width:calc(100% + 2 * max(20px,env(safe-area-inset-left,0px)));max-width:none}
  .top nav.adminnav+.acct{order:2;margin-left:auto}
  .pp nav.subnav{padding-bottom:4px}
}
nav.crumbs{margin:16px 0 0}

@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  /* first paint: the hero rises in line by line, then the sections and their cards follow */
  .hero .top{animation:fade .5s ease both}
  .hero .shell>:not(.top){animation:rise .65s cubic-bezier(.2,.7,.2,1) both}
  .hero .shell>:nth-child(2){animation-delay:.04s}
  .hero .shell>:nth-child(3){animation-delay:.1s}
  .hero .shell>:nth-child(4){animation-delay:.16s}
  .hero .shell>:nth-child(5){animation-delay:.22s}
  .hero .shell>:nth-child(n+6){animation-delay:.28s}
  .groups>section,.groups>details,.tabbed .groups>.tabpanel.on>*{animation:rise .55s cubic-bezier(.2,.7,.2,1) both;animation-delay:.18s}
  .grid>.card{animation:rise .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:.24s}
  .grid>.card:nth-child(2){animation-delay:.3s}
  .grid>.card:nth-child(3){animation-delay:.36s}
  .grid>.card:nth-child(4){animation-delay:.42s}
  .grid>.card:nth-child(n+5){animation-delay:.48s}
  /* switching admin tabs replays a quicker version of the same entrance */
  .tabbed .groups>.tabpanel.on>*,.tabbed .groups>.tabpanel.on .grid>.card{animation-duration:.4s;animation-delay:0s}
  .tabbed .groups>.tabpanel.on .grid>.card:nth-child(2){animation-delay:.04s}
  .tabbed .groups>.tabpanel.on .grid>.card:nth-child(3){animation-delay:.08s}
  .tabbed .groups>.tabpanel.on .grid>.card:nth-child(n+4){animation-delay:.12s}
  /* fold-outs open with a short drop (PP FoldOut: 6px, 0.32s) */
  details[open]>:not(summary){animation:drop .32s cubic-bezier(.2,.7,.2,1) both}
  /* live dots fade in when admin-status.json arrives */
  .dot{transition:background-color .4s ease,box-shadow .4s ease}
  .status:not([hidden]){animation:fade .5s ease both}
  @keyframes rise{from{opacity:0;transform:translateY(16px)}}
  @keyframes fade{from{opacity:0}}
  @keyframes drop{from{opacity:0;transform:translateY(-6px)}}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
