/* RISK WARNING BAR (compliance, Adam, 26 Nov 2026) - the thin full-width bar at the very top of every customer page,
   above the header. The look is the main website's, copied exactly (thegoldstandard-mobile b6e61a0, public/css/site.css
   "risk warning bar"): cream #F6F2E7, navy #183965, League Spartan 500, 14px/19px (13px/18px up to 767px), centred,
   text at most 1140px wide. The markup is the same one line, the first element inside <body> on each page, or straight
   after the hidden "Skip to content" link where the page has one, as the main website does (views/layout.js) (static
   HTML, so it is there on load with no script and nothing jumps):
     <div class="tgs-risk-bar" role="note" aria-label="Risk warning"><p class="tgs-risk-bar__text">...</p></div>
   It is in the normal flow (never fixed): it pushes the header down, and where the header stays at the top on phones
   it scrolls away while the header takes over at top:0, so the two never overlap.
   The pages it sits on are Elementor exports with a kit, a theme and our own rules that style every <p> and <div>
   (margins, letter-spacing, text-transform, fonts), so every property that shapes the bar is set here with
   !important: it renders the same on the login page, the signed-in pages and the onboarding pages.
   test/risk-bar.test.cjs checks every page carries it. */

/* League Spartan: every page already loads it (assets/leaguespartan.css). This is a fallback under its own name, the
   same file and address as the Contact Us popup's (so it is usually cached), used only if the page's own face is
   missing; it never changes the font of anything else on the page. */
@font-face { font-family: 'TGS Risk Spartan'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/shared/league-spartan-latin.woff2?v=7c5cfcbd82) format('woff2'); }

html body .tgs-risk-bar {
  display: block !important; position: static !important; float: none !important; clear: both !important;
  box-sizing: border-box !important; width: auto !important; min-width: 0 !important; max-width: none !important;
  height: auto !important; min-height: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0;
  background: #F6F2E7 !important; background-clip: padding-box !important;
  color: #183965 !important;
  padding: 8px calc(20px + env(safe-area-inset-right, 0px)) 8px calc(20px + env(safe-area-inset-left, 0px)) !important;
  font-family: 'League Spartan', 'TGS Risk Spartan', sans-serif !important;
  font-size: 14px !important; font-weight: 500 !important; font-style: normal !important;
  line-height: 19px !important;   /* whole pixels, so nothing below moves by a fraction of a pixel */
  text-align: center !important; letter-spacing: normal !important; word-spacing: normal !important;
  text-transform: none !important; text-decoration: none !important; text-shadow: none !important; text-indent: 0 !important;
  white-space: normal !important; font-variant: normal !important; font-feature-settings: normal !important;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  opacity: 1 !important; visibility: visible !important; transform: none !important; filter: none !important;
  overflow: visible !important; z-index: auto !important;
}
html body .tgs-risk-bar p.tgs-risk-bar__text {
  display: block !important; box-sizing: border-box !important; max-width: 1140px !important; width: auto !important;
  margin: 0 auto !important; padding: 0 !important; border: 0 !important; background: none !important;
  color: inherit !important; font: inherit !important; line-height: inherit !important;
  letter-spacing: inherit !important; word-spacing: inherit !important; text-transform: inherit !important;
  text-align: inherit !important; text-decoration: none !important; text-shadow: none !important; text-indent: 0 !important;
  white-space: inherit !important; overflow-wrap: break-word !important; word-break: normal !important;
  hyphens: manual !important; -webkit-hyphens: manual !important;
}
@media (max-width: 767px) {
  html body .tgs-risk-bar {
    padding: 7px calc(16px + env(safe-area-inset-right, 0px)) 7px calc(16px + env(safe-area-inset-left, 0px)) !important;
    font-size: 13px !important; line-height: 18px !important;
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   THE SIGNED-IN PAGES' MOBILE BAR (.tgs-mnav, built by assets/tgs-mobile-nav.js). Without the risk bar it is
   position:fixed at top:0 (phones, phones on their side, 1025-1279 windows) or position:absolute at top:0 (tablets),
   and the room for it is kept by body{padding-top} in tgs-consistency.css. Left like that it would sit ON the risk bar.
   So, on those seven pages only (the body classes below) and in exactly the bands where tgs-consistency.css shows that
   bar (the same media queries and html.tgs-touch-tablet marks):
     - the room moves from above the risk bar to just below it: body padding-top 0, and the risk bar carries the same
       height as a transparent bottom border (--tgs-rb-reserve), so the page under it is where it was, one risk bar
       lower, from the first paint - before the script has built the bar;
     - the mobile bar, once built, moves up into that room (margin-top: minus the same height) and is in the flow:
       position:sticky; top:0 where it was fixed (it now starts under the risk bar and stays at the top once the risk
       bar has scrolled away, as on the website), position:relative where it was absolute (tablets: it scrolls away with
       the page, as before).
   The full-screen menu and account panels and the bell's phone panel are position:fixed, inset 0, as before.
   Wider than these bands (the desktop header, 1280 and up) nothing here applies: the risk bar simply sits above the
   header, which is not sticky.
   --------------------------------------------------------------------------------------------------------------- */
html body .tgs-risk-bar { border-bottom: var(--tgs-rb-reserve, 0px) solid transparent !important; }
.tgs-mnav { margin-top: calc(-1 * var(--tgs-rb-reserve, 0px)) !important; }

/* phone bar (fixed in tgs-consistency.css): 54px + the status-bar inset, sticky */
@media (max-width: 1024.98px) {
  html:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) {
    padding-top: 0 !important; --tgs-rb-reserve: calc(54px + env(safe-area-inset-top, 0px));
  }
  html:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) > .tgs-mnav { position: sticky; top: 0; }
}
@media (min-width: 1025px) {
  html.tgs-touch-tablet:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) {
    padding-top: 0 !important; --tgs-rb-reserve: calc(54px + env(safe-area-inset-top, 0px));
  }
  html.tgs-touch-tablet:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) > .tgs-mnav { position: sticky; top: 0; }
}
@media (min-width: 1025px) and (max-width: 1279.98px) {
  html:not(.tgs-touch-tablet):not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) {
    padding-top: 0 !important; --tgs-rb-reserve: calc(54px + env(safe-area-inset-top, 0px));
  }
  html:not(.tgs-touch-tablet):not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) > .tgs-mnav { position: sticky; top: 0; }
}
/* tablet bar (absolute in tgs-consistency.css, the three-arm block): 129px + the inset, in the flow, scrolls away */
@media ((min-width: 744px) and (max-width: 1024.98px) and (min-height: 744px)),
       ((orientation: landscape) and (min-width: 744px) and (max-width: 1024.98px) and (min-height: 501px) and (max-height: 743.98px)) {
  html:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) {
    --tgs-rb-reserve: calc(129px + env(safe-area-inset-top, 0px));
  }
  html:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) > .tgs-mnav { position: relative; top: 0; }
}
@media (min-width: 1025px) {
  html.tgs-touch-tablet:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) {
    --tgs-rb-reserve: calc(129px + env(safe-area-inset-top, 0px));
  }
  html.tgs-touch-tablet:not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) > .tgs-mnav { position: relative; top: 0; }
}
@media (min-width: 1025px) and (max-width: 1279.98px) and (min-height: 501px) {
  html:not(.tgs-touch-tablet):not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) {
    --tgs-rb-reserve: calc(129px + env(safe-area-inset-top, 0px));
  }
  html:not(.tgs-touch-tablet):not(#tgs-rb) body:is(.elementor-page-2138, .elementor-page-2153, .elementor-page-2888, .elementor-page-3197, .elementor-page-2900, .elementor-page-2217, .elementor-page-2158) > .tgs-mnav { position: relative; top: 0; }
}
