/* The frame every page shares (rule 124): two column widths, and one nav that sits
   along the top on a laptop and along the bottom on a phone.

   **Two widths, named here and nowhere else (3 Dec 2026).** There were THIRTEEN --
   560, 760, 820, 860, 900, 920, 980, 1000, 1060, 1120, 1180, 1200, and the 752 this
   file used to ask for and no page obeyed. Rafael: "just make everything consistent
   ... follow the best practices that any of the biggest tech companies would be
   following". So:

     --page-read   a reading column, for the pages a person READS: Today, My stats,
                   the FAQs, the Academy, My targets. 920 is about 75 characters at
                   our body size, which is the measure long text is read at.
     --page-board  the boards, which are TABLES and need the room. Squashing them to
                   a reading column would be consistency that costs legibility.

   A page says which kind it is by which token it uses. The VALUES live only here. */
:root{--page-read:920px; --page-board:1180px}
html body{margin:0;padding:0}
.wrap{box-sizing:border-box;max-width:var(--page-read);width:100%;margin:0 auto;
      padding:22px max(16px,env(safe-area-inset-right,0px)) 56px max(16px,env(safe-area-inset-left,0px))}
.wrap h1{margin-top:0}
[hidden]{display:none !important}

.appnav{position:sticky;top:0;z-index:30;background:var(--surface);border-bottom:1px solid var(--line)}
.appnav-in{box-sizing:border-box;max-width:752px;margin:0 auto;display:flex;gap:4px;padding:8px 16px}
.appnav a{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:10px;min-height:44px;
          text-decoration:none;font-size:14px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.appnav a:hover{background:var(--surface-2)}
.appnav a[aria-current="page"]{color:var(--met,#c4006a);background:color-mix(in srgb,var(--met,#c4006a) 11%,transparent)}
.appnav a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.appnav svg{width:20px;height:20px;flex:none}
/* The boards' own row (rule 151). They keep their own names rather than being
   folded into one tab: folding them is what lost Commission the first time this
   was drawn. It scrolls sideways rather than wrapping, so the row stays one line
   however many boards there are. */
.boardbar{background:var(--surface-2);border-bottom:1px solid var(--line)}
.boardbar-in{box-sizing:border-box;max-width:752px;margin:0 auto;display:flex;gap:3px;
             padding:7px max(13px,env(safe-area-inset-left,0px)) 7px max(13px,env(safe-area-inset-right,0px));
             overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.boardbar-in::-webkit-scrollbar{display:none}
.boardbar a{font-size:13px;font-weight:700;color:var(--ink-2);text-decoration:none;
            padding:7px 10px;border-radius:8px;white-space:nowrap;min-height:34px;
            display:flex;align-items:center}
.boardbar a:hover{background:var(--surface)}
.boardbar a[aria-current="page"]{background:var(--surface);color:var(--met,#c4006a)}
.boardbar a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

.viewbar{box-sizing:border-box;max-width:752px;margin:14px auto -8px;padding:0 16px;font-size:13px;font-weight:600;color:var(--ink-2)}
.viewbar a{color:var(--met,#c4006a);margin-left:6px}

@media (max-width:759px){
  html body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  .appnav{position:fixed;top:auto;bottom:0;left:0;right:0;border-bottom:0;border-top:1px solid var(--line);
          padding-bottom:env(safe-area-inset-bottom,0px)}
  .appnav-in{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:4px 6px}
  .appnav.four .appnav-in{grid-template-columns:repeat(4,1fr)}
  /* GMVup put Schedule and FAQs on the same nav (rule 151), so a shift manager
     can carry six. On a phone they share one row: the label shrinks, the icon
     does not, and nothing wraps. */
  .appnav.five .appnav-in{grid-template-columns:repeat(5,1fr)}
  .appnav.six .appnav-in{grid-template-columns:repeat(6,1fr);padding:4px 2px}
  .appnav.five a,.appnav.six a{font-size:10.5px;gap:2px;padding:6px 1px;letter-spacing:-.01em}
  .appnav.six svg{width:20px;height:20px}
  /* The nav is along the bottom here, so the boards' row is at the top of the
     page and scrolls away with it rather than sitting over the content. */
  .boardbar{position:static;border-top:0}
  .boardbar a{font-size:12.5px;padding:7px 9px}
  .appnav a{flex-direction:column;justify-content:center;gap:3px;padding:6px 2px;min-height:52px;font-size:11.5px}
  .appnav a:hover{background:none}
  .appnav a[aria-current="page"]{background:none}
  .appnav svg{width:22px;height:22px}
  /* A lesson has the whole screen, and the way out is its back button. */
  body.inlesson .appnav{display:none}
  html body.inlesson{padding-bottom:0}
}

/* iPhones have no Arial Black, so the display face falls back to regular Arial
   unless the weight is asked for. Money reads bold everywhere. */
.thero .big,.thero h1,.banked,.scores b,.win .plus,.wrap h1{font-weight:900}

/* The shape of the page, until the figures arrive. */
.skel{display:flex;flex-direction:column;gap:14px}
.skel i{display:block;border-radius:14px;background:var(--surface-2);animation:skel 1.1s ease-in-out infinite}
.skel i.hero{height:150px;border-radius:16px}
.skel i.row{height:96px}
.skel i.tall{height:210px}
@keyframes skel{50%{opacity:.5}}
@media (prefers-reduced-motion:reduce){.skel i{animation:none}}

/* The one page header (rule 124). Every page says what it is, the same way.

   Taken from the guide's phone bar, which is the look Rafael picked: "FAQs is the
   right style, so that's what we want to keep consistent across everything." There
   it is the title bar of a phone mock-up -- `.ph-bar`, the app's name bold on the
   left and the screen's name light on the right. Here it is the real thing, at the
   top of the real page.

   Before this there were three tops: a flex row of title and buttons (Today, the
   Academy, Performance), a coloured block (the guide, the board), and NOTHING at all
   (My targets, Spread Love -- those pages simply began). */
.apphead{background:var(--ink);color:var(--bg)}
.apphead-in{box-sizing:border-box;max-width:inherit;margin:0 auto;
  padding:14px max(16px,env(safe-area-inset-left,0px)) 12px;
  display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.apphead b{font:900 13px/1.4 var(--display,"Arial Black",Arial,sans-serif);letter-spacing:.02em}
.apphead span{opacity:.7;font:400 12.5px/1.5 var(--font,Arial,sans-serif);text-align:right}
/* It spans the page and its words line up with the column under it. */
.apphead{width:100%}
.apphead-in{max-width:var(--page-read)}
.apphead.board .apphead-in{max-width:var(--page-board)}
