/* Nettsmed Søk. Tokens fra nettsmed-shared/design/DESIGN.md, scopet til --nsk-*.

   Temaet maler hver knapp: Hello Elementor har [type=button]{display:inline-block;width:auto;
   text-align:center;white-space:nowrap} — spesifisitet (0,1,0), samme som en klasse — og
   Elementor-kitet har .elementor-kit-4 button (0,1,1). Hvem som vant, avhang av rekkefølgen på
   stilarkene, og den skriver FastPixel om per enhet: riktig på desktop, ødelagt på mobil.
   Derfor starter hver selektor her med :root (+0,1,0), som løfter alt over temaet uten å endre
   rekkefølgen oss imellom. Farger og rammer på knapper har i tillegg !important, fordi temaets
   :hover/:focus (0,2,1) ellers maler dem. Test mot temaet: tests/nettsmed-sok/local.sh. */
:root {
  --nsk-primary: #2f5d62;
  --nsk-ink-darkest: #1f2829;
  --nsk-ink: #434e4f;
  --nsk-muted: #8fa1a3;
  --nsk-muted-aa: #5e6c6d;
  --nsk-line: #e4e7e7;
  --nsk-line-soft: #d7e5e4;
  --nsk-surface: #f2f7f7;
  --nsk-tint: #e3eeee;
  --nsk-accent: #9fd3d6;
  --nsk-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nsk-r-sm: 5px;
  --nsk-shadow:
    0 24px 60px rgba(31, 40, 41, 0.22), 0 2px 6px rgba(31, 40, 41, 0.08);
  --nsk-dock-bottom: 22px;
  --nsk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root .nsk-root,
:root .nsk-root *,
:root .nsk-trigger,
:root .nsk-dock {
  box-sizing: border-box;
  font-family: var(--nsk-font);
}
/* Nullstill det temaet legger på knapper. :where holder spesifisiteten på (0,2,0), så hver
   komponentregel under — samme spesifisitet, senere i fila — får siste ord. */
:root .nsk-root :where(button),
:root .nsk-trigger,
:root .nsk-dock {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  width: auto;
  margin: 0;
  font: inherit;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
:root .nsk-svg {
  width: 18px;
  height: 18px;
  flex: none;
}
:root .nsk-root :focus-visible,
:root .nsk-dock:focus-visible,
:root .nsk-trigger:focus-visible {
  outline: 2px solid var(--nsk-primary);
  outline-offset: 2px;
}
:root .nsk-sr,
:root .nsk-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- inngang: [nettsmed_sok_knapp] ---------- */
:root .nsk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px !important;
  min-height: 38px;
  cursor: pointer;
  background: var(--nsk-surface) !important;
  color: var(--nsk-ink) !important;
  border: 1px solid var(--nsk-line) !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1;
  transition:
    border-color 0.15s,
    background 0.15s;
}
:root .nsk-trigger:hover {
  border-color: var(--nsk-primary) !important;
  background: #fff !important;
  color: var(--nsk-ink-darkest) !important;
}
:root .nsk-trigger-t {
  padding-right: 18px;
}
:root .nsk-trigger-k,
:root .nsk-dock kbd {
  font: 500 12px/1 var(--nsk-font);
  color: var(--nsk-ink);
  background: #fff;
  border: 1px solid var(--nsk-line);
  border-radius: 6px;
  padding: 5px 7px;
}

/* ---------- inngang: dokken ----------
   Lys og frostet, ikke en tung mørk pille: den skal se ut som en del av siden, og holde kontrast
   både på lyse seksjoner og på mørke hero-er. Tre tilstander: full · mini · fortsett. */
:root .nsk-dock {
  position: fixed;
  left: 50%;
  bottom: var(--nsk-dock-bottom);
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(480px, calc(100vw - 32px));
  padding: 7px 8px 7px 7px !important;
  min-height: 52px;
  cursor: text;
  text-align: left;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--nsk-ink-darkest) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(31, 40, 41, 0.1) !important;
  border-radius: 999px !important;
  box-shadow:
    0 10px 30px rgba(31, 40, 41, 0.14),
    0 1px 2px rgba(31, 40, 41, 0.06);
  transition:
    left 0.34s var(--nsk-ease),
    transform 0.34s var(--nsk-ease),
    width 0.34s var(--nsk-ease),
    box-shadow 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
:root .nsk-dock:hover {
  border-color: rgba(47, 93, 98, 0.45) !important;
  box-shadow:
    0 12px 34px rgba(31, 40, 41, 0.18),
    0 0 0 3px rgba(47, 93, 98, 0.08);
}
:root .nsk-dock-ic {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--nsk-primary);
  color: #fff;
}
:root .nsk-dock-ic .nsk-svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
:root .nsk-dock-t {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--nsk-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root .nsk-dock.has-thread .nsk-dock-t {
  color: var(--nsk-ink-darkest);
  font-weight: 500;
}
:root .nsk-dock-ai {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--nsk-primary);
  background: #e6f0ee;
  border-radius: 999px;
  padding: 4px 9px;
}
:root .nsk-dock kbd {
  flex: none;
}
/* Mini: ut av lesefeltet og inn i hjørnet — men ORDET blir med. En blank prikk er support-widgetenes
   uttrykk (Zendesk, Gorgias). Fast bredde så overgangen kan animeres. */
:root .nsk-dock.is-mini {
  left: calc(100% - 20px);
  transform: translateX(-100%);
  width: 186px;
  padding-right: 16px !important;
}
:root .nsk-dock.is-mini.has-thread {
  width: 204px;
}
:root .nsk-dock.is-mini .nsk-dock-ai,
:root .nsk-dock.is-mini kbd {
  display: none;
}
:root .nsk-dock.is-mini .nsk-dock-ic {
  width: 32px;
  height: 32px;
}
:root .nsk-dock.is-mini .nsk-dock-t {
  font-weight: 600;
  color: var(--nsk-ink-darkest);
  font-size: 14.5px;
}
:root .nsk-dock.has-thread .nsk-dock-ic::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nsk-accent);
  border: 2px solid #fff;
}
:root:has(.nsk-root.is-open) .nsk-dock {
  opacity: 0;
  pointer-events: none;
}

/* ---------- skallet: panel fra bunnen, input nederst ---------- */
:root .nsk-root {
  position: relative;
  z-index: 99990;
}
:root .nsk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 40, 41, 0.3);
  animation: nsk-fade 0.14s ease-out;
}
:root .nsk-dialog {
  position: fixed;
  bottom: var(--nsk-dock-bottom);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(660px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - var(--nsk-dock-bottom) - 90px));
  background: #fff;
  color: var(--nsk-ink);
  border-radius: 22px;
  box-shadow: var(--nsk-shadow);
  animation: nsk-in-bottom 0.22s var(--nsk-ease);
}
:root .nsk-list {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 10px 12px;
}
:root .nsk-inputrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 18px;
  min-height: 64px;
  border-top: 1px solid var(--nsk-line);
  background: #fff;
}
:root .nsk-lupe {
  color: var(--nsk-muted);
  width: 20px;
  height: 20px;
}
:root .nsk-input {
  flex: 1;
  min-width: 0;
  height: 64px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  font: 400 17px/1.3 var(--nsk-font) !important;
  color: var(--nsk-ink-darkest) !important;
}
:root .nsk-input::placeholder {
  color: var(--nsk-muted-aa);
  opacity: 1;
}
:root .nsk-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 40px;
  height: 32px;
  padding: 0 8px !important;
  cursor: pointer;
  background: var(--nsk-surface) !important;
  color: var(--nsk-ink) !important;
  border: 1px solid var(--nsk-line) !important;
  border-radius: 6px !important;
}
:root .nsk-close-key {
  font-size: 12px;
  font-weight: 500;
}
:root .nsk-close-x {
  display: none;
}
:root .nsk-send {
  display: none;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  cursor: pointer;
  background: var(--nsk-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}
:root .nsk-send .nsk-svg {
  width: 17px;
  height: 17px;
}
:root .nsk-root.has-text .nsk-send {
  display: inline-grid;
}
:root .nsk-chips {
  display: none;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--nsk-line);
  overflow-x: auto;
  scrollbar-width: none;
}
:root .nsk-chips::-webkit-scrollbar {
  display: none;
}
:root .nsk-root.has-q:not(.is-svar) .nsk-chips {
  display: flex;
}
:root .nsk-chip {
  flex: none;
  padding: 7px 13px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  cursor: pointer;
  background: #fff !important;
  color: var(--nsk-ink) !important;
  border: 1px solid var(--nsk-line) !important;
}
:root .nsk-chip[aria-selected="true"] {
  background: var(--nsk-primary) !important;
  color: #fff !important;
  border-color: var(--nsk-primary) !important;
}
:root .nsk-legal {
  padding: 0 18px 12px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--nsk-muted-aa);
  background: #fff;
}

/* ---------- rader ---------- */
:root .nsk-sec {
  padding: 14px 12px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nsk-muted-aa);
}
:root .nsk-item,
:root .nsk-more {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px !important;
  min-height: 48px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  cursor: pointer;
  text-align: left;
  color: var(--nsk-ink) !important;
  font-weight: 400 !important;
}
:root .nsk-item.is-active {
  background: var(--nsk-surface) !important;
  box-shadow: inset 3px 0 0 var(--nsk-primary);
}
:root .nsk-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  color: var(--nsk-primary);
  background: var(--nsk-surface);
}
:root .nsk-item.is-active .nsk-ic {
  background: #fff;
}
:root .nsk-item.k-handling .nsk-ic {
  background: var(--nsk-primary);
  color: #fff;
}
:root .nsk-item.k-svar .nsk-ic {
  background: #e6f0ee;
  color: var(--nsk-primary);
}
:root .nsk-item.k-ai .nsk-ic {
  background: var(--nsk-ink-darkest);
  color: var(--nsk-accent);
}
:root .nsk-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
:root .nsk-t1 {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--nsk-ink-darkest);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root .nsk-t2 {
  font-size: 13.5px;
  color: var(--nsk-ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root .nsk-t1 mark {
  background: transparent;
  color: var(--nsk-primary);
  font-weight: 700;
  padding: 0;
}
:root .nsk-hint {
  font-size: 12.5px;
  color: var(--nsk-muted-aa);
  flex: none;
}
:root .nsk-go {
  color: var(--nsk-muted);
  opacity: 0;
  flex: none;
}
:root .nsk-item.is-active .nsk-go {
  opacity: 1;
  color: var(--nsk-primary);
}
:root .nsk-more {
  min-height: 40px;
  padding-left: 60px !important;
  font-size: 14px;
  font-weight: 500 !important;
  color: var(--nsk-primary) !important;
}
:root .nsk-more.is-active {
  background: var(--nsk-surface) !important;
}
:root .nsk-empty {
  padding: 18px 16px 6px;
  font-size: 15px;
  line-height: 1.55;
}
:root .nsk-empty p {
  margin: 0 0 4px;
}
:root .nsk-empty p:first-child {
  color: var(--nsk-ink-darkest);
  font-weight: 600;
}
:root .nsk-loading {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--nsk-muted-aa);
}
:root .nsk-here {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 12px 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--nsk-surface);
  font-size: 14px;
  color: var(--nsk-ink-darkest);
  font-weight: 500;
}
:root .nsk-here .nsk-svg {
  color: var(--nsk-primary);
}
:root .nsk-here span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- tråden ---------- */
:root .nsk-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 4px 6px;
}
:root .nsk-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: -8px;
  z-index: 1;
  background: #fff;
  padding: 4px 0;
}
:root .nsk-back,
:root .nsk-new {
  align-items: center;
  background: none !important;
  border: 0 !important;
  padding: 6px 4px !important;
  cursor: pointer;
  color: var(--nsk-primary) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
:root .nsk-back::before {
  content: "‹";
  margin-right: 6px;
  font-size: 17px;
  line-height: 0;
}
:root .nsk-new {
  color: var(--nsk-muted-aa) !important;
  font-weight: 500 !important;
}
:root .nsk-spacer {
  flex: none;
}
:root .nsk-qb {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: var(--nsk-primary);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  animation: nsk-pop 0.18s ease-out;
}
:root .nsk-ans {
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--nsk-line);
  box-shadow: 0 1px 2px rgba(31, 40, 41, 0.04);
  animation: nsk-pop 0.2s ease-out;
}
:root .nsk-ans.k-known {
  background: var(--nsk-surface);
  border-color: var(--nsk-line-soft);
}
:root .nsk-ans-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--nsk-ink-darkest);
}
:root .nsk-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--nsk-ink-darkest);
  color: var(--nsk-accent);
}
:root .nsk-av .nsk-svg {
  width: 15px;
  height: 15px;
}
:root .nsk-av.is-site {
  background: #fff;
  color: var(--nsk-primary);
  border: 1px solid var(--nsk-line-soft);
}
:root .nsk-tag {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
}
:root .nsk-tag.is-site {
  background: #fff;
  color: var(--nsk-primary);
  border: 1px solid var(--nsk-line-soft);
}
:root .nsk-basis {
  margin-left: auto;
  font-size: 12px;
  color: var(--nsk-muted-aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root .nsk-ans p,
:root .nsk-md p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nsk-ink-darkest);
}
:root .nsk-md ul,
:root .nsk-md ol {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nsk-ink-darkest);
}
:root .nsk-md li {
  margin: 2px 0;
}
:root .nsk-md .nsk-md-h {
  font-weight: 700;
  margin-top: 4px;
}
:root .nsk-md a,
:root .nsk-srcline {
  color: var(--nsk-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
:root .nsk-srcline {
  display: inline-block;
  font-size: 13.5px;
  margin-top: 2px;
}
:root .nsk-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--nsk-primary);
  border-radius: 2px;
  animation: nsk-blink 1s steps(2) infinite;
}
:root .nsk-facts {
  margin: 0 0 12px;
  display: grid;
  gap: 6px;
}
:root .nsk-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--nsk-line-soft);
}
:root .nsk-facts dt {
  font-size: 14.5px;
  color: var(--nsk-ink);
}
:root .nsk-facts dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--nsk-ink-darkest);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
:root .nsk-typing {
  display: flex;
  gap: 5px;
  padding: 6px 2px 10px;
}
:root .nsk-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nsk-muted);
  animation: nsk-dot 1.1s infinite ease-in-out;
}
:root .nsk-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
:root .nsk-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
:root .nsk-err {
  color: var(--nsk-ink-darkest);
}
:root .nsk-retry {
  background: #fff !important;
  border: 1px solid var(--nsk-line) !important;
  border-radius: var(--nsk-r-sm) !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--nsk-ink-darkest) !important;
  cursor: pointer;
}
:root .nsk-src {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--nsk-line);
}
:root .nsk-ans.k-known .nsk-src {
  border-color: var(--nsk-line-soft);
}
:root .nsk-src-h {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nsk-muted-aa);
  padding: 0 2px 4px;
}
:root .nsk-src .nsk-item {
  min-height: 42px;
  padding: 7px 8px !important;
  gap: 10px;
}
:root .nsk-src .nsk-ic {
  width: 28px;
  height: 28px;
}
:root .nsk-src .nsk-t2 {
  display: none;
}
:root .nsk-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
:root .nsk-cta-b {
  padding: 10px 16px !important;
  border-radius: var(--nsk-r-sm) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  background: #fff !important;
  color: var(--nsk-primary) !important;
  border: 1px solid var(--nsk-primary) !important;
}
:root .nsk-cta-b.is-primary {
  background: var(--nsk-primary) !important;
  color: #fff !important;
}
:root .nsk-cta-b.is-ghost {
  border-color: transparent !important;
  background: transparent !important;
}
:root .nsk-cta-b.is-active {
  box-shadow: 0 0 0 3px var(--nsk-tint);
}
:root .nsk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
:root .nsk-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px !important;
  text-align: left;
  cursor: pointer;
  background: #fff !important;
  border: 1px solid var(--nsk-line-soft) !important;
  border-radius: 10px !important;
  color: var(--nsk-ink-darkest) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3;
}
:root .nsk-card img,
:root .nsk-card-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--nsk-tint);
  display: grid;
  place-items: center;
  color: var(--nsk-primary);
}
:root .nsk-card span {
  padding: 0 2px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root .nsk-card.is-active,
:root .nsk-card:hover {
  border-color: var(--nsk-primary) !important;
}
:root .nsk-handoff {
  align-self: center;
  margin-top: 2px;
  background: none !important;
  border: 0 !important;
  padding: 6px !important;
  cursor: pointer;
  font-size: 13px !important;
  color: var(--nsk-muted-aa) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
:root .nsk-handoff-ok {
  align-self: center;
  margin: 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--nsk-primary);
}
:root .nsk-handoff-f {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed #c9d9d8;
  background: #fbfcfc;
}
:root .nsk-handoff-f label {
  font-size: 14px;
  font-weight: 600;
  color: var(--nsk-ink-darkest);
}
:root .nsk-handoff-f div {
  display: flex;
  gap: 8px;
}
:root .nsk-handoff-f input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px !important;
  border: 1px solid var(--nsk-line) !important;
  border-radius: var(--nsk-r-sm) !important;
  font: 15px var(--nsk-font) !important;
}
:root .nsk-handoff-f button {
  padding: 10px 14px !important;
  background: var(--nsk-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--nsk-r-sm) !important;
  font-weight: 600 !important;
  cursor: pointer;
}
:root .nsk-handoff-f small {
  font-size: 12.5px;
  color: var(--nsk-muted-aa);
}
:root .nsk-handoff-f .nsk-err {
  margin: 0;
  font-size: 13.5px;
}

/* ---------- mobil: bunnark med synlig lukk ----------
   iOS legger tastaturet over siden uten å krympe layout-viewporten, så et ark med bottom:0 havner
   bak tastaturet. sok.js skriver det synlige området (visualViewport) til --nsk-vv-top/-h mens
   arket er åpent; arket forankres i bunnen av DET, med input rett over tastaturet. */
@media (max-width: 640px) {
  :root .nsk-dialog {
    --nsk-sheet-h: min(92dvh, calc(var(--nsk-vv-h, 100dvh) - 10px));
    left: 0;
    right: 0;
    top: calc(
      var(--nsk-vv-top, 0px) + var(--nsk-vv-h, 100dvh) - var(--nsk-sheet-h)
    );
    bottom: auto;
    width: auto;
    height: var(--nsk-sheet-h);
    transform: none;
    border-radius: 20px 20px 0 0;
    animation: nsk-in-sheet-up 0.22s ease-out;
  }
  :root .nsk-t1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  :root .nsk-legal {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  :root .nsk-close-key {
    display: none;
  }
  :root .nsk-close-x {
    display: block;
  }
  :root .nsk-close {
    width: 44px;
    height: 44px;
    border-radius: 999px !important;
  }
  :root .nsk-input {
    font-size: 16px !important;
  }
  :root .nsk-dock kbd,
  :root .nsk-dock-ai {
    display: none;
  }
  :root .nsk-dock.is-mini {
    left: calc(100% - 12px);
    width: 176px;
  }
  :root .nsk-facts div {
    flex-direction: column;
    gap: 2px;
  }
}

@keyframes nsk-fade {
  from {
    opacity: 0;
  }
}
@keyframes nsk-in-bottom {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes nsk-in-sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes nsk-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes nsk-blink {
  50% {
    opacity: 0;
  }
}
@keyframes nsk-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .nsk-dialog,
  :root .nsk-overlay,
  :root .nsk-qb,
  :root .nsk-ans,
  :root .nsk-typing i,
  :root .nsk-caret {
    animation: none !important;
  }
  :root .nsk-dock {
    transition: opacity 0.2s;
  }
}
