[x-cloak] { display: none !important; }

:root {
  --volvo-500: #2f66a8;
  --volvo-600: #1c4e8a;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(47, 102, 168, .18);
}

/* Consistent, accessible focus outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--volvo-500);
  outline-offset: 2px;
}

/* @mention links inside rendered comment content. */
.mention {
  color: var(--volvo-600);
  font-weight: 600;
  text-decoration: none;
  background: rgba(47, 102, 168, .08);
  padding: 0 .2rem;
  border-radius: .3rem;
}
.mention:hover { background: rgba(47, 102, 168, .16); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subtle, unobtrusive scrollbars for dropdowns / long lists. */
.max-h-96::-webkit-scrollbar { width: 8px; }
.max-h-96::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.max-h-96::-webkit-scrollbar-track { background: transparent; }

/* Gentle entrance for cards / content. */
@keyframes vf-rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vf-rise { animation: vf-rise .35s ease both; }

/* Toasts (VF.toast). */
@keyframes vf-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.vf-toast { animation: vf-toast-in .2s ease both; }
.vf-toast.vf-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}

/* City (Miasto) type-ahead dropdown. */
.vf-ac {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 15rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgba(16, 46, 84, .08), 0 12px 32px rgba(16, 46, 84, .10);
  padding: .25rem;
}
.vf-ac-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .6rem;
  border-radius: .5rem;
  font-size: .875rem;
  color: #334155;
  cursor: pointer;
}
.vf-ac-item:hover,
.vf-ac-item.is-active { background: #eef4fb; }
.vf-ac-woj {
  font-size: .72rem;
  color: #94a3b8;
  white-space: nowrap;
}
.vf-ac::-webkit-scrollbar { width: 8px; }
.vf-ac::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.vf-ac::-webkit-scrollbar-track { background: transparent; }

/* Readable prose for legal / static pages. */
.legal h2 {
  font-size: 1.15rem; font-weight: 700; color: #1e293b;
  margin-top: 1.9rem; margin-bottom: .55rem;
}
.legal h2:first-of-type { margin-top: .5rem; }
.legal h3 { font-weight: 600; color: #334155; margin-top: 1.2rem; margin-bottom: .35rem; }
.legal p { color: #475569; line-height: 1.75; margin-bottom: .8rem; }
.legal ul { list-style: disc; padding-left: 1.35rem; margin-bottom: .9rem; }
.legal li { color: #475569; line-height: 1.65; margin-bottom: .35rem; }
.legal a { color: var(--volvo-600); text-decoration: underline; }
.legal strong { color: #334155; font-weight: 600; }
