

body.document-hero-page {
  margin: 0;
  font-family: var(--font, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);
  overflow-x: hidden;
  background: #fff;
}

body.document-hero-page .top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.document-hero-page .top-nav a,
body.document-hero-page .top-nav button.dropdown-toggle {
  color: #fff;
}

body.document-hero-page .top-nav a:hover,
body.document-hero-page .top-nav button.dropdown-toggle:hover {
  color: #fff;
  text-decoration: underline;
}

body.document-hero-page .top-nav a.current-page {
  color: #fff;
}

body.document-hero-page .top-nav a.current-page::after {
  background: #1e40af;
  height: 3px;
}

body.document-hero-page .user-menu-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

body.document-hero-page .user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

body.document-hero-page .user-menu-label {
  color: #fff;
}

body.document-hero-page .top-nav a.nav-login-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

body.document-hero-page .top-nav a.nav-login-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

body.document-hero-page .hamburger-btn span {
  background: #fff;
}

body.document-hero-page .ansok-dropdown > .dropdown-toggle {
  color: #fff;
}

body.document-hero-page .ansok-dropdown > .dropdown-toggle:hover {
  color: #fff;
  text-decoration: underline;
}

body.document-hero-page .ansok-dropdown > .dropdown-toggle.current-page::before {
  background: #1e40af;
  height: 3px;
}

.document-hero--ansokan {
  min-height: 50vh;
}

.document-hero.document-hero--ansokan-solid .document-hero__scrim {
  background: rgba(0, 0, 0, 0.22);
}

.document-hero.document-hero--ansokan-solid.document-hero--ansokan-theme-polis {
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 45%, #1d4ed8 100%);
}

.document-hero.document-hero--ansokan-solid.document-hero--ansokan-theme-ambulans {
  background: linear-gradient(145deg, #15803d 0%, #22c55e 55%, #16a34a 100%);
}

.document-hero.document-hero--ansokan-solid.document-hero--ansokan-theme-rtj {
  background: linear-gradient(145deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
}

.document-hero.document-hero--ansokan-solid.document-hero--ansokan-theme-larm {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 50%, #6d28d9 100%);
}

.document-hero.document-hero--ansokan-solid.document-hero--ansokan-theme-civil {
  background: linear-gradient(145deg, #0f3d26 0%, #166534 45%, #14532d 100%);
}

.document-hero.document-hero--ansokan-solid.document-hero--ansokan-theme-hub {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 42%, #1e40af 100%);
}

.document-hero {
  position: relative;
  width: 100%;
  min-height: clamp(240px, 50vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.document-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.document-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.document-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.document-hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(4.5rem, 12vw, 6rem) 1.25rem 2.5rem;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.55);
}

.document-hero:not(.document-hero--has-image) {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.document-hero.tjanst-hero--rtj:not(.document-hero--has-image) {
  background: linear-gradient(145deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
}

.document-hero.tjanst-hero--ambulans:not(.document-hero--has-image) {
  background: linear-gradient(145deg, #15803d 0%, #22c55e 48%, #166534 100%);
}

.document-hero.tjanst-hero--polis:not(.document-hero--has-image) {
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 45%, #1d4ed8 100%);
}

.document-hero.tjanst-hero--larm:not(.document-hero--has-image) {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 50%, #6d28d9 100%);
}

.document-hero.tjanst-hero--civil:not(.document-hero--has-image) {
  background: linear-gradient(145deg, #0f3d26 0%, #166534 45%, #14532d 100%);
}

.document-hero.tjanst-hero--default:not(.document-hero--has-image) {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
}

.document-rules-section {
  background: #fff;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vw, 6rem);
}

.document-rules-container {
  max-width: 1400px;
  margin: 0 auto;
}

.document-doc-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1rem;
}

.document-doc-footer a {
  color: var(--blue, #1e40af);
  font-weight: 600;
}

.document-site-footer {
  background: #fff;
  color: #0f172a;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1rem;
}

.document-site-footer a {
  color: var(--blue, #1e40af);
  font-weight: 600;
}

.document-rules-section .doc-page {
  padding: 0 0 2.5rem;
}

.document-rules-section .doc-inner {
  max-width: min(52rem, 100%);
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.document-rules-section .doc-meta--inline {
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #333;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.02em;
}

.document-rules-section .doc-prose {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1e293b;
}

.document-rules-section .doc-prose p,
.document-rules-section .doc-prose li {
  font-size: inherit;
  line-height: inherit;
  color: #334155;
}

.document-rules-section .doc-block {
  margin-bottom: 2rem;
}

.document-rules-section .doc-block h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1e293b;
}

.document-rules-section .doc-chapter h2 {
  margin-top: 2.75rem;
  padding-top: 0;
  border-top: none;
}

.document-rules-section .doc-chapter:first-of-type h2 {
  margin-top: 0;
}

.document-rules-section .doc-list li::marker,
.document-rules-section .doc-rules > li::before {
  color: var(--blue, #1e40af);
}

.document-rules-section .doc-approval {
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  body.document-hero-page .top-nav {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
  }

  .document-hero__title {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .document-rules-section {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(clamp(4rem, 8vw, 6rem), calc(3rem + env(safe-area-inset-bottom, 0px)));
  }

  .document-site-footer {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  }
}
