/* Signal Brief rebuilt site: the masthead while the session is pending (data-session-pending on
   .masthead, set by tools/build-rebuilt-site-pages.mjs and removed by session-navigation.js): the menu
   nav-hint.js chose before first paint, and the "hold" state that keeps the menu and trial bar invisible.
   Split out of site.css 2026-11-10 to keep it under the file-size ratchet. Loaded on every rebuilt route
   right after /css/site.css and before /css/site-legal.css, so these rules still come before every other
   companion sheet. They now follow all of site.css, which changes nothing: no site.css rule after their old
   place sets display, visibility or animation on the elements they touch at equal or higher specificity.
   The [data-access-mode] menu rules stay in site.css.
   Authoring copy: design-system/site/2026-08-16/site-session.css (byte-exact mirror at
   signalbrief-web/css/site-session.css, checked by tools/build-rebuilt-site-pages.mjs --check). */
/* Until the first entitlement answer (data-session-pending) the masthead shows the menu this browser
   last saw, which nav-hint.js reads before first paint, when the page has that menu, else the public
   menu (as releaseMenu chooses); session-navigation.js then confirms or corrects it. A page leaving for another
   (data-session-pending="hold") keeps the menu and trial bar invisible; the delayed reveal covers a
   page whose scripts never run, and outlasts the client's slowest path (4s read, 1s wait, 4s retry). */
html[data-nav-hint="entitled"] .masthead[data-session-pending] > .masthead-inner > [data-nav="entitled"],
html[data-nav-hint="account"] .masthead[data-session-pending] > .masthead-inner > [data-nav="account"] { display: flex !important; }
html[data-nav-hint="entitled"] .masthead[data-session-pending]:has(> .masthead-inner > [data-nav="entitled"]) > .masthead-inner > [data-nav="public"],
html[data-nav-hint="account"] .masthead[data-session-pending]:has(> .masthead-inner > [data-nav="account"]) > .masthead-inner > [data-nav="public"],
html[data-nav-hint="entitled"]:has(.masthead[data-session-pending] > .masthead-inner > [data-nav="entitled"]) [data-public-cta] { display: none; }
.masthead[data-session-pending="hold"] .nav,
.masthead[data-session-pending="hold"] ~ .web-cta-bar {
  visibility: hidden;
  animation: session-pending-reveal 0s linear 10s forwards;
}
@keyframes session-pending-reveal { to { visibility: visible; } }
/* The rest of the page's first paint, from the same hint and until the same first answer. With no hint
   (and not in the app, which has its own signed-out screen) the reader is treated as signed out: the
   sign-in panel replaces the loading skeleton on the account pages, and the News sign-in box is in place
   above the lead story, so nothing moves when the answer agrees. With any hint, those pages keep their
   skeleton and Support drops its sign-in card. Each page script then decides in the same task as the
   first answer, so there is no frame between these rules ending and the page's own state starting. */
html:not([data-nav-hint], [data-app-mode="true"]):has(.masthead[data-session-pending=""]) :is(#account-signin-state, #archive-signin-state, #billing-signin-state, #cancellation-signin-state, #settings-signin-state) { display: block !important; }
html:not([data-nav-hint], [data-app-mode="true"]):has(.masthead[data-session-pending=""]) :is(#account-loading-state, #archive-loading-state, #billing-loading-state, #cancellation-loading-state, #settings-loading-state) { display: none !important; }
html:not([data-nav-hint], [data-app-mode="true"]):has(.masthead[data-session-pending=""]) #live-signin-state { display: grid !important; }
html[data-nav-hint]:has(.masthead[data-session-pending=""]) #support-signin-route { display: none; }
