/* Fit My Day: the website's top bar, the same on every page (tools/sitenav.mjs). The page you're on is underlined. */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg, #0f0f10) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink, #f6f5f1) 8%, transparent);
  font-family: Barlow, sans-serif;
  /* full width, even on pages whose body has side padding (css/app.css) */
  margin-inline: calc(-1 * var(--snpad, 0px));
}
body:has(> main.doc) {
  --snpad: 16px;
}
.snwrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.snwrap > * {
  white-space: nowrap;
}
.sitenav a {
  text-decoration: none;
}
.snlogo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--accent, #f2c230);
}
.snlogo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.snlinks {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.snlinks a {
  position: relative;
  padding: 6px 0;
  color: var(--muted, #a09f97);
  font-weight: 500;
  font-size: 17px;
}
.snlinks a:hover {
  color: var(--ink, #f6f5f1);
}
/* the page you're on: bold, with a yellow line under it */
.snlinks a[aria-current="page"] {
  color: var(--ink, #f6f5f1);
  font-weight: 600;
}
.snlinks a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent, #f2c230);
}
.snget {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent, #f2c230);
  color: var(--on-accent, #161307);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
}
/* phones: the links move to a second row that scrolls sideways */
@media (max-width: 860px) {
  .snwrap {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px 0;
    gap: 0 12px;
  }
  .snlogo {
    font-size: 20px;
    gap: 8px;
  }
  .snget {
    margin-left: auto;
    height: 38px;
    padding: 0 14px;
    font-size: 15px;
  }
  .snlinks {
    order: 3;
    flex-basis: 100%;
    margin: 4px -16px 0;
    padding: 0 16px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .snlinks::-webkit-scrollbar {
    display: none;
  }
  .snlinks a {
    padding: 10px 0 12px;
    font-size: 15px;
  }
  .snlinks a[aria-current="page"]::after {
    bottom: 4px;
  }
}

/* the footer, the same on every page (tools/sitenav.mjs): Instagram and the privacy policy, in the middle */
.sitefoot {
  margin: 48px calc(-1 * var(--snpad, 0px)) 0;
  padding: 28px 16px 40px;
  border-top: 1px solid color-mix(in srgb, var(--ink, #f6f5f1) 10%, transparent);
  text-align: center;
  font-family: Barlow, sans-serif;
  color: var(--muted, #a09f97);
}
.sfrow {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.sitefoot a {
  color: var(--ink, #f6f5f1);
  text-decoration: none;
  font-weight: 600;
}
.sitefoot a:hover {
  text-decoration: underline;
}
.sfig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sfig svg {
  display: block;
  flex: none;
}
.sitefoot small {
  display: block;
  margin-top: 14px;
  font-size: 14px;
}

/* opened from the app (js/theme.js adds it): a round Back button before the logo */
.sitenav .backbtn {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
/* inside the apps the app is already installed: no "Get the app" */
.inapp .sitenav .snget {
  display: none;
}
