/* The page header on every page (README "My account" and step 97: the owner's pick, C2, "C2 everywhere v2"): a soft
   brand-blue tint (a deep navy in dark mode) with rounded bottom corners. Every color is a token from css/site.css (FitLab
   has the same ones), so light and dark both follow. The header is <header class="c2h">; js/header.js (window.PSHeader)
   sets its title, line, way back and product lockup, and the sticky top row.

   The top row (.p-bar), 48 px (56 on a computer):
     signed in   the way back at top left (nothing on a top-level page), then Home (the house, .p-hm below: the first thing
                 in the row where there is no way back), and ☰ at right
                 (My account and, for owners, Settings are in it: the owner, Nov 4); no logo and no "Member area":
                 the email and Sign out are in ☰ (html.has-psm: the menu is mounted; without it they stay in the row, so
                 signing out always works). FitLab: +, the bell, ☰.
     signed out  the PureFlight logo at top left (it links Home; a step smaller on a phone) and a filled "Sign in" pill at
                 right.
   Then a product area's mark as an eyebrow (js/places.js eyebrow()), the two-tone serif title and one line.
   .c2-hero (the homepage, C2b): the same tint, taller, holding the hero.
   .c2-stick: only the top row stays on screen when a long page scrolls: the header and its inner box step aside
   (display: contents), so the row sticks to the page and the title's part of the tint scrolls away under it. */
.c2h{--hx-tint:var(--accent-soft);background:var(--hx-tint);color:var(--ink);border-bottom:0;border-radius:0 0 20px 20px;padding:0 0 16px;position:relative;z-index:20}
/* in dark, the brand's navy */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .c2h{--hx-tint:var(--navy,#0E1B30)}}
:root[data-theme="dark"] .c2h{--hx-tint:var(--navy,#0E1B30)}
/* only the top row sticks (.c2-stick): the tint is drawn by the row and by the title's block under it */
.c2h.c2-stick,.c2h.c2-stick > .p-top-in{display:contents}
.c2h.c2-stick .p-bar{position:sticky;top:0;z-index:20;background:var(--hx-tint);padding-inline:max(var(--c2-pad),calc((100% - var(--c2-max)) / 2 + var(--c2-pad)))}
.c2h.c2-stick .brand{background:var(--hx-tint);padding:0 max(var(--c2-pad),calc((100% - var(--c2-max)) / 2 + var(--c2-pad))) 16px;border-radius:0 0 20px 20px}
.c2h :focus-visible{outline-color:var(--accent)}
/* the header's inner box is the page's own content box, so the way back and the title line up with the page under
   them: --c2-max (its widest) and --c2-pad (its side padding), set per page below; the site's .site-main by default */
:root{--c2-max:1112px;--c2-pad:16px}
/* the round buttons' hover and pressed shades (Home, the bell, +, ☰ on a phone): a hover look only where there is a real
   hover (a mouse or a trackpad), never left behind as a pale disc after a tap on a phone (the owner, Nov 16: a touch
   screen keeps :hover on the last thing tapped), and a brief pressed shade while a finger is down */
:root{--hx-hover:color-mix(in srgb,var(--accent) 10%,transparent);--hx-press:color-mix(in srgb,var(--accent) 16%,transparent)}
body.hub{--c2-max:1180px}
body.bd{--c2-max:1240px}
body.sd{--c2-max:1180px}
body.ps-settings{--c2-max:808px}
/* the owner Settings' Payments hub screens are wide (js/settings.js sets html.wide; css/payments-hub.css widens its main to match) */
html.wide body.ps-settings{--c2-max:1180px}
@media (min-width:900px){body.hub{--c2-pad:24px}}
.c2h .p-top-in{display:block;max-width:var(--c2-max);margin:0 auto;padding:0 var(--c2-pad)}
.p-bar{display:flex;align-items:center;gap:6px;min-height:48px;min-width:0}
.p-bar-sp{flex:1 1 auto}
.c2h .p-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 0 0 -2px;padding:0 8px 0 0;color:var(--accent);font-size:16px;font-weight:500;letter-spacing:-.01em;text-decoration:none;min-width:0;background:none;border:0;font-family:inherit;cursor:pointer}
.c2h .p-back > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (hover:hover){.c2h .p-back:hover{color:var(--accent-press)}}
.c2h .p-back[hidden]{display:none}
.p-chev{width:8px;height:14px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.c2h .p-account{order:0;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;padding:0;border:0;min-width:0}
.c2h .p-account[hidden]{display:none}
.c2h .p-email{color:var(--muted)}
.c2h .p-out{min-height:40px;padding:6px 14px;font-size:14px}
/* with ☰ mounted, the row holds only ☰ (the email and Sign out are in it, and in the app App settings; a page's own
   button beside it, such as Flag this, says so itself: css/flag.css) */
.has-psm .c2h .p-account > :not(#menuBtn){display:none}
/* ☰: three lines alone on a phone */
.c2h .psm-btn{width:44px;height:44px;min-height:44px;padding:0;margin-right:-8px;justify-content:center;border:0;border-radius:50%;background:transparent;color:var(--ink)}
.c2h .psm-btn[hidden]{display:none}
/* its three lines: 2 px each with 3 px between (2+3+2+3+2 = 12), whole pixels so each lands on the screen's own pixels
   at 1x, 2x and 3x and the middle one sits exactly halfway (the owner, Nov 4: 1.6 px lines, rounded unevenly, left the
   middle one off its mark) */
.c2h .psm-btn .bars{width:18px;height:12px;border-block-width:2px}
.c2h .psm-btn .bars::after{top:3px;border-top-width:2px}
.c2h .psm-btn-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* signed out: the PureFlight logo without GOLF CO. (it links Home) and the Sign in pill; on a phone a step smaller, so it
   sits level with Sign in (the owner, Nov 4: "make the PureFlight logo a little smaller on mobile") */
.c2h .p-wm{display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}
.c2h .p-wm .pf-logo{--wm:20px}
@media (max-width:560px){.c2h .p-wm .pf-logo{--wm:17px}}
.c2h .p-wm:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* (a 36 px pill in a 44 px tap target: the transparent border's 4 px above and below are part of the link) */
.p-signin{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 12px;border:4px solid transparent;background-clip:padding-box;border-radius:999px;background:var(--accent-fill);color:var(--on-accent,#FFFFFF);font-size:15px;font-weight:600;text-decoration:none;flex:0 0 auto;letter-spacing:-.01em}
.p-signin:hover{background:var(--accent-press);color:var(--on-accent,#FFFFFF);text-decoration:none}
.p-signin:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* round icon buttons in the row: FitLab's New fitting and bell, the homepage's moon */
.p-ib{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:500;cursor:pointer;flex:0 0 auto;position:relative;text-decoration:none;-webkit-tap-highlight-color:transparent}
@media (hover:hover){.p-ib:hover{background:var(--hx-hover)}}
.p-ib:active{background:var(--hx-press)}
.p-ib svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.p-ib .p-ib-w{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.p-ib + .p-signin,.p-signin + .p-ib{margin-left:4px}
/* Home (the owner, Nov 1: "a small home icon at the top left of each page, on the same plane as Settings, My account
   and ☰"): a real link to home.html (#homeLink, aria-label "Home") on every signed-in page. The way back comes first,
   at the far left, and Home right after it (the owner, Nov 4: "put the home button to the right of ‹ Edit answers"); with
   no way back Home is the first thing in the row. The markup has them in that order, so the keyboard meets them as the
   eye does. The house is js/places.js's "home" icon. On the home itself it's the current page (aria-current="page", in
   the blue). The owner's pick (Nov 1, design A of three): the house alone in a round button, 44 px and borderless on a
   phone like ☰, a 40 px ringed circle on a computer like the bell. */
.p-hm{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;min-width:44px;min-height:44px;margin:0 2px 0 -8px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
/* after the way back: its box starts where the way back's ends (the row's gap taken back), never over it */
.p-back:not([hidden]) + .p-hm{margin-left:-6px}
@media (hover:hover){.p-hm:hover{color:var(--ink);text-decoration:none;background:var(--hx-hover)}}
.p-hm:active{background:var(--hx-press)}
.p-hm:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.p-hm svg{width:21px;height:21px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.p-hm[aria-current="page"]{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
/* a product area's mark over the title (FitLab, PureFlightAI, BuildLab, PureFlightSocial, BuildLab Studio): the name
   line of the owner's mark (js/places.js art()), small and centered like the title. */
.p-prod{display:flex;justify-content:center;margin:0 0 6px;line-height:1}
.p-prod[hidden]{display:none}
.p-prod .pf-art{height:22px}
.p-prod .pf-lockup{--lk-ink:var(--ink);--lk-blue:var(--accent);--lk-muted:var(--muted);font-size:15px;gap:0 .45em}
.p-prod .p-prod-mark{display:inline-flex}
.p-prod .pf-mark{width:1.5em}
.p-prod .pf-lk-name{font-weight:750;letter-spacing:-.02em}
/* the way back as a small line over the title, where the top-left spot holds the logo (a public page reached from a
   signed-in one: PureFlightSocial's terms) */
.p-crumb{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;min-height:30px;margin:-2px 0 2px -1px;color:var(--accent);font-size:15px;font-weight:500;text-decoration:none}
.p-crumb .p-chev{width:7px;height:12px}
/* the title and its one line, centered under the top row (the owner, Nov 4, option A: "the 'good morning' and every other
   title centered"; the same sizes as before): the product's lockup, the title and the line each centered on the header's
   middle, a title or line that runs to two lines centered too. The title's box is the header's full width (only its words
   are centered), so its letter wave (js/header.js reveal()) never changes its size.
   The title is in the brand's serif, two-tone as the marks are (direction B, the owner's pick, Nov 4): the first words in
   the navy ink at 800, the blue words at 400, lining numerals, and a gold full stop (.pf-stop, js/header.js em()). */
.c2h .brand{display:flex;flex-direction:column;gap:2px;min-width:0;flex:0 0 auto;text-align:center}
.c2h .brand h1,.c2h .brand .p-h1{font-family:var(--display);font-weight:800;font-variant-numeric:lining-nums;font-size:31px;line-height:1.12;letter-spacing:-.012em;margin:0;color:var(--ink);overflow-wrap:anywhere}
.c2h .brand h1 em,.c2h .brand .p-h1 em{font-style:normal;font-weight:400;letter-spacing:-.005em;color:var(--accent)}
.c2h .brand h1:focus{outline:none}
/* one line: a longer one (a course's or a community's own words) ends in "…"; on a public page it may wrap */
.c2h .p-sub{margin:2px auto 0;color:var(--ink-2);font-size:14.5px;line-height:1.35;max-width:min(100%,72ch);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c2h .p-sub[hidden]{display:none}
.c2h.c2-pub .p-sub{white-space:normal;overflow:visible}
/* the owner Settings screens' lines can name a product as its inline lockup (js/places.js inline()) and may run to two lines */
.ps-settings .c2h .p-sub{white-space:normal;overflow:visible;max-width:min(100%,60ch)}
.c2h .p-sub .lk{font-size:inherit}
/* a studio's own name and logo start the line under the title */
.p-studio{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--ink);vertical-align:bottom;max-width:100%}
.p-studio img,.p-studio .p-studio-mono{flex:0 0 auto;width:18px;height:18px;border-radius:5px;object-fit:contain}
.p-studio .p-studio-mono{display:inline-grid;place-items:center;background:var(--accent-fill);color:#FFFFFF;font-size:9.5px;font-weight:800;letter-spacing:0}
.p-studio-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* C2b, the homepage: the same tint, taller, holding the hero's headline at its own size, the lead and the two buttons */
.c2h.c2-hero{padding-bottom:24px}
.c2h.c2-hero .brand h1{font-size:40px;line-height:1.06;letter-spacing:-.035em;margin-top:6px}
@media (min-width:900px){
  .c2h{border-radius:0;padding-bottom:22px}
  .c2h.c2-stick .brand{border-radius:0;padding-bottom:22px}
  .p-bar{min-height:56px;gap:10px}
  .c2h .brand h1,.c2h .brand .p-h1{font-size:38px}
  .p-prod .pf-lockup{font-size:16px}
  .p-prod .pf-art{height:24px}
  .c2h .psm-btn{width:auto;height:40px;min-height:40px;padding:0 16px 0 14px;margin-right:0;border:1px solid var(--line);border-radius:999px}
  .c2h .psm-btn-word{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .p-ib.p-ib-word{width:auto;height:40px;min-height:40px;padding:0 16px 0 14px;border:1px solid var(--line);border-radius:999px}
  .p-ib.p-ib-word .p-ib-w{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .p-ib.p-ib-word svg{width:16px;height:16px}
  .p-ib.p-ib-ring{width:40px;height:40px;min-height:40px;border:1px solid var(--line)}
  .c2h .p-wm .pf-logo{--wm:21px}
  /* Home on a computer: the bell's ringed 40 px circle */
  .p-hm{width:40px;height:40px;min-width:40px;min-height:40px;margin:0 4px 0 0;border:1px solid var(--line)}
  .p-back:not([hidden]) + .p-hm{margin-left:0}
  .p-hm svg{width:19px;height:19px}
  .c2h.c2-hero{padding-bottom:40px}
  .c2h.c2-hero .brand h1{font-size:56px;margin-top:18px}
}
/* Signed in, while the page waits for its real view (js/session-hint.js puts html.pf-wait on before the first paint
   when this device keeps a session; js/header.js takes it off as the page's real title goes up, at the latest after
   1.5 s): the markup's placeholder ("Welcome.", "Your fittings.", "Checking your sign-in…", the loading skeleton;
   FitLab's title, line and boot box, never its lockup) is never seen. Only opacity: everything keeps its place, so the top row, the tint and the page's background stay still,
   and screen readers and focus are as without it. Without scripts, signed out or with no stored session: no class. */
html.pf-wait .c2h .brand > *,html.pf-wait #status,html.pf-wait #app,html.pf-wait .p-foot,
html.pf-wait .c2h .fl-head > :not(.fl-brand),html.pf-wait #bootBox{opacity:0}
/* ...and when the real view goes up they fade in (180 ms; the owner, Nov 16: "the app transitions seem jumpy or kind of
   harsh") rather than popping in: js/header.js puts html[data-pf-fade] on for that moment (an attribute, so the page's
   classes stay as they are). An error, or the 1.5 s safety timer, shows at once as before. */
@media (prefers-reduced-motion:no-preference){
  html[data-pf-fade] :is(.c2h .brand > *,#status,#app,.p-foot,.c2h .fl-head > :not(.fl-brand)){transition:opacity .18s ease-out}
  /* (FitLab's page itself comes in as its boot line goes) */
  html[data-pf-fade] .c2h ~ main.wrap{animation:pf-fade-in .18s ease-out}
}
@keyframes pf-fade-in{from{opacity:0}to{opacity:1}}
/* The demo site's banner (js/demo.js, css/demo.css: "Demo site · sample data · test payments") keeps its place from the
   first paint where this device has been on the demo before (js/session-hint.js puts html.ps-demo on): before, it came
   in a moment after the header and pushed the whole page down. Its space, in its colors, until its stylesheet is in. */
html.ps-demo:not(.ps-demo-ready) body::before{content:"";display:block;flex:0 0 auto;box-sizing:border-box;height:30px;background:#FFF4D6;border-bottom:1px solid #EED9A2}
html.ps-demo:not(.ps-demo-ready) .ps-demo-bar{display:none}
@media (prefers-color-scheme: dark){html.ps-demo:not([data-theme="light"]):not(.ps-demo-ready) body::before{background:#2A2110;border-bottom-color:#3E3218}}
html.ps-demo[data-theme="dark"]:not(.ps-demo-ready) body::before{background:#2A2110;border-bottom-color:#3E3218}
/* the page under the header starts a little closer than under the old band */
.c2h + .site-main{padding-top:20px}
@media (min-width:900px){.c2h + .site-main{padding-top:28px}}
@media print{.c2h{background:#FFFFFF;border-radius:0;position:static}.c2h .p-bar,.p-hm{display:none}}
