/* Shared base for the Danube Code demo sites (fictional businesses). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  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;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(100% - 2rem, var(--maxw, 70rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 90; padding: 0.6rem 1rem; background: #fff; color: #000; border-radius: 6px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus, #0056F9); outline-offset: 3px; border-radius: 4px; }

/* Bar that says this is a demo */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.2rem; padding: 0.55rem 1rem; background: #0A1A3A; color: #C9D6F2; font: 500 0.82rem/1.4 "Schibsted Grotesk", system-ui, sans-serif; text-align: center; }
.demo-bar b { color: #fff; }
.demo-bar a { color: #fff; font-weight: 700; text-underline-offset: 0.2em; }

/* Mobile menu toggle */
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid currentColor; border-radius: 8px; background: transparent; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 1.15rem; height: 2px; margin: auto; background: currentColor; border-radius: 2px; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Fade-in on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Demo form: invalid fields and the message window */
.is-invalid > input, .is-invalid > select, .is-invalid > textarea { border-color: #C2371F !important; background-color: #FFF8F6 !important; }
.dm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(10, 20, 30, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dm[hidden] { display: none; }
.dm__card { width: min(100%, 24rem); padding: 1.8rem 1.6rem 1.5rem; text-align: center; background: #fff; color: #14202B; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); font-family: "Schibsted Grotesk", system-ui, sans-serif; }
.dm__icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--dm-tint, #E8EFFB); color: var(--dm-ink, #0056F9); font-size: 1.5rem; font-weight: 800; }
.dm__title { margin: 0 0 0.4rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.dm__title:focus { outline: none; }
.dm__text { margin: 0 0 1.2rem; color: #4A5868; font-size: 0.97rem; line-height: 1.55; }
.dm__btn { padding: 0.75rem 1.4rem; border: 0; border-radius: 8px; background: var(--dm-ink, #0056F9); color: #fff; font-weight: 700; cursor: pointer; }

/* Inside the main site preview */
.embedded .demo-bar, .embedded .skip, .embedded .callbar { display: none !important; }
.embedded body { padding-bottom: 0 !important; }
.embedded .rail { height: 100vh; }
.embedded .rv { opacity: 1 !important; transform: none !important; }
html.embedded { scroll-behavior: auto; }
html.embedded { scrollbar-width: none; }
.embedded::-webkit-scrollbar, .embedded body::-webkit-scrollbar { display: none; }

/* Images cannot be selected, dragged or clicked; double-tap zoom is off; inputs stay at 16px so phones do not zoom into them */
body { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, svg { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
img { pointer-events: none; }
input, textarea, select { font-size: max(16px, 1em); }
