/* The demo bar, and the two plain lines a demo adds (lane r6-demos, 14 Nov 2026). scripts/demo-sites.mjs copies this
   file to public/demo-sites/_demo/demo.css; edit it here and run the tool again.

   The bar belongs to no design: plain, neutral, the system's own type, the Frontstep mark small. It sits in the page's
   flow above the design (it pushes the page down by its 40px and covers nothing), and every rule is scoped to it and
   sets what it needs, so a design's own styles cannot reach in and the bar's cannot reach out. Light only, always. */

.fs-demo,
.fs-demo * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  line-height: inherit;
  color: inherit;
  background: none;
  box-shadow: none;
  list-style: none;
  float: none;
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  transform: none;
  animation: none;
  transition: none;
}
/* The page starts 40px lower, and the bar sits in that space. The body becomes the frame a design's own absolutely
   placed parts are measured from, so a header laid over a photograph (Tidemark's home page) starts below the bar too
   instead of under it. Nothing else of the design moves; parts fixed to the window stay where the design puts them. */
html {
  padding-top: 40px !important;
}
body {
  position: relative !important;
}
.fs-demo {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  overflow: visible;
  z-index: 60;
  display: block;
  color-scheme: light;
  background: #ffffff;
  color: #20262b;
  border-bottom: 1px solid #dfe2e0;
  font: 400 13px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.fs-demo .fs-demo__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  height: 39px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}
.fs-demo .fs-demo__mark {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}
.fs-demo .fs-demo__what {
  display: block;
  flex: none;
  white-space: nowrap;
  color: #20262b;
}
.fs-demo .fs-demo__long {
  display: none;
}
.fs-demo .fs-demo__designs {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}
.fs-demo .fs-demo__narrow {
  display: none;
}
.fs-demo .fs-demo__inline {
  display: none;
}
.fs-demo a {
  color: #20262b;
  text-decoration: underline;
  text-decoration-color: rgba(32, 38, 43, 0.35);
  text-underline-offset: 3px;
  border-radius: 3px;
}
.fs-demo a:hover {
  text-decoration-color: currentColor;
}
.fs-demo a:focus-visible,
.fs-demo summary:focus-visible {
  outline: 2px solid #20262b;
  outline-offset: 2px;
}
.fs-demo a[aria-current] {
  text-decoration: none;
  font-weight: 600;
}
.fs-demo .fs-demo__back {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 39px;
  margin-left: auto;
  white-space: nowrap;
  font-weight: 600;
}

/* Below 760px the other designs fold under one button. */
.fs-demo .fs-demo__more {
  display: block;
  position: relative;
}
.fs-demo .fs-demo__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 39px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(32, 38, 43, 0.35);
  text-underline-offset: 3px;
}
.fs-demo .fs-demo__more > summary::-webkit-details-marker {
  display: none;
}
.fs-demo .fs-demo__more > summary::marker {
  content: '';
}
.fs-demo .fs-demo__more > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.fs-demo .fs-demo__more[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.fs-demo .fs-demo__menu {
  position: absolute;
  left: -12px;
  top: 100%;
  z-index: 61;
  display: grid;
  min-width: 190px;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid #dfe2e0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
}
.fs-demo .fs-demo__menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
}
.fs-demo .fs-demo__menu a:hover {
  text-decoration: underline;
}

@media (min-width: 760px) {
  .fs-demo .fs-demo__more {
    display: none;
  }
  .fs-demo .fs-demo__inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 14px;
  }
  .fs-demo .fs-demo__inline-label {
    display: block;
    color: #5b6368;
  }
  .fs-demo .fs-demo__inline a {
    display: inline-flex;
    align-items: center;
    height: 39px;
    white-space: nowrap;
  }
}
@media (min-width: 1100px) {
  .fs-demo .fs-demo__long {
    display: inline;
  }
}
/* Below 360px "Other designs" is "Designs", so the line still fits at 320px. */
@media (max-width: 359px) {
  .fs-demo .fs-demo__wide {
    display: none;
  }
  .fs-demo .fs-demo__narrow {
    display: inline;
  }
}

/* The plain line a form or a filter shows in a demo. */
.fs-demo-said {
  display: block;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f1f3f1;
  color: #20262b;
  font: 400 15px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}
.fs-demo-said:empty {
  display: none;
}
.fs-demo-said--list {
  margin: 0 0 16px;
}
.fs-demo-said[hidden] {
  display: none;
}

/* A link the demo cannot follow says why, at the foot of the window, for a few seconds. */
.fs-demo-toast {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #20262b;
  color: #ffffff;
  font: 400 15px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.fs-demo-toast[hidden] {
  display: none;
}
