/* ==========================================================================
   /demo: the page around the workspace. A thin strip that says this is an
   example, then the app filling the rest of the window.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #eef0f4;
  color: #0b0d10;
  font: 400 13px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid #2130d8; outline-offset: 2px; }

.skip {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -100px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #0b0d10;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgb(16 24 40 / 0.4);
}
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

.strip {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  background: #0b0d10;
  color: rgb(255 255 255 / 0.82);
  font-size: 12.5px;
}
.strip :focus-visible { outline-color: #fff; }

.strip__mark {
  color: #fff;
  font: 700 17px/1 "Schibsted Grotesk", system-ui, sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.strip__note { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip__note strong { color: #fff; font-weight: 600; }
.strip__back {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.strip__back:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }

.app { min-height: 0; }
.app__noscript { margin: 0; padding: 32px 20px; font-size: 14px; }

@media (max-width: 640px) {
  .strip { gap: 12px; padding-inline: 12px; }
  .strip__note span { display: none; }
  .strip__back { min-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
