/* Site chrome for the support and legal pages: the landing page's top bar and
   footer, plus the side menu between Support and the legal documents. The
   landing page carries the same rules inline (its first paint matters); keep
   the two in step. The legal pages link this file from the head that
   fulminata_fitness/scripts/legal/build_legal.py copies from privacy/. */

@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/chakra-petch-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/chakra-petch-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/manrope-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/manrope-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* the pages' own type follows the site: Chakra Petch for the system voice,
   Manrope for reading */
:root {
  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Chakra Petch", system-ui, sans-serif;
  --c-amber: #eab308; --c-amber-lt: #fde047; --c-text: #f0f2f8; --c-dim: #c9cdd9; --c-muted: #8c909f;
  --c-line: rgba(255,255,255,0.12); --c-gutter: clamp(18px, 4.6vw, 64px);
}
html { scroll-padding-top: 80px; }
body { background-image: none; }

/* ---- the top bar (as on the landing page) ---- */
.site-nav { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(255,255,255,0.16);
  background: rgba(18,19,26,0.52); background-image: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.015) 38%, rgba(255,255,255,0) 60%);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-nav { background-color: rgba(14,15,20,0.94); } }
.site-nav-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--c-gutter); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav a { border-bottom: 0; }
.s-wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); }
.s-wordmark img { width: 26px; height: 26px; }
.s-wordmark b { font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.2em; white-space: nowrap; }
.s-wordmark b span { color: var(--c-amber); }
.s-right { display: flex; align-items: center; gap: 6px; }
.s-links { position: relative; display: flex; list-style: none; margin: 0 10px 0 0; padding: 0; }
.s-links a { display: flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-dim); transition: color .2s; }
.s-links a:hover { color: #fff; }
/* the blue glass bubble on the page you are on */
.s-links a.on { color: #fff; background: linear-gradient(180deg, rgba(120,170,255,0.30), rgba(59,130,246,0.16) 55%, rgba(59,130,246,0.22)); border-color: rgba(140,185,255,0.45); }
.s-links svg { width: 20px; height: 20px; }
.s-links .s-ig span { display: none; }
.s-ig-m { display: none; place-items: center; width: 44px; height: 44px; border-bottom: 0 !important; }
.s-ig-m svg { width: 24px; height: 24px; }
.s-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 10px; text-decoration: none; white-space: nowrap; font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 700; font-size: 0.92rem; background: var(--c-amber); color: #000 !important; }
.s-btn:hover { background: var(--c-amber-lt); }
/* Apple's badge, unmodified: 40 px onscreen minimum, 10 px clear space */
.s-badge { display: block; padding: 10px; margin: -10px -10px -10px 0; border-bottom: 0 !important; }
.s-badge img { display: block; height: 40px; width: auto; }
.s-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.s-menu { display: none; place-items: center; width: 44px; height: 44px; margin-left: -10px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--c-text); }
.s-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.s-menu:hover, .s-menu[aria-expanded="true"] { color: var(--c-amber); }
.site-nav :focus-visible, .doc-nav :focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; }

/* ---- side menu: Support and the legal documents ---- */
.page { max-width: 1140px; margin: 0 auto; padding: 0 var(--c-gutter); display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.page > .wrap { max-width: 820px; margin: 0; padding-left: 0; padding-right: 0; }
.doc-nav { position: sticky; top: 96px; padding-top: 36px; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.doc-nav a { display: block; margin-left: -1px; padding: 9px 0 9px 16px; border-left: 2px solid transparent; border-bottom: 0; text-decoration: none; font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.doc-nav a:hover { color: var(--c-text); }
.doc-nav a.here { color: var(--c-amber); border-left-color: var(--c-amber); }

/* ---- footer (as on the landing page) ---- */
.site-foot { border-top: 1px solid var(--c-line); margin-top: 56px; padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); font-family: "Manrope", system-ui, sans-serif; }
.site-foot-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--c-gutter); }
.site-foot a { border-bottom: 0; }
.s-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.s-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9rem; }
.s-foot-links a { color: var(--c-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.s-foot-links a:hover { color: var(--c-text); }
.s-foot-links svg { width: 17px; height: 17px; }
.s-foot-legal { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 0.82rem; color: var(--c-muted); }
.s-foot-legal a { color: var(--c-muted); text-decoration: underline; }

@media (max-width: 1080px) {
  .s-menu { display: grid; }
  .s-links { display: none; position: absolute; top: calc(100% + 1px); left: var(--c-gutter); right: auto; flex-direction: column; min-width: 220px; margin: 0; padding: 8px; border: 1px solid rgba(255,255,255,0.16); border-radius: 16px;
    background: rgba(14,15,20,0.92); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
  .s-links.open { display: flex; }
  .s-links a { padding: 13px 14px; border-radius: 10px; }
  .s-links .s-ig { display: none !important; }
  .s-ig-m { display: grid; }
  .site-nav-in { position: relative; }
}
@media (max-width: 820px) {
  .s-badge { display: none; }
  /* the side menu becomes a row of tabs under the bar */
  .page { display: block; }
  .doc-nav { position: static; padding-top: 18px; margin: 0 calc(-1 * var(--c-gutter)); overflow-x: auto; scrollbar-width: none; }
  .doc-nav::-webkit-scrollbar { display: none; }
  .doc-nav ul { display: flex; gap: 18px; width: max-content; padding: 0 var(--c-gutter); border-left: 0; border-bottom: 1px solid var(--c-line); }
  .doc-nav a { margin: 0 0 -1px; padding: 10px 0; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .doc-nav a.here { border-bottom-color: var(--c-amber); }
}
@media (max-width: 440px) {
  .s-wordmark b { font-size: 0.8rem; letter-spacing: 0.15em; }
  .s-wordmark img { width: 24px; height: 24px; }
}

/* the documents' own list style (amber chevron, indent) stays out of the chrome */
.site-nav li, .doc-nav li { margin: 0; padding: 0; }
.site-nav li::before, .doc-nav li::before { content: none; display: none; }
