.hms-page {
  background:
    radial-gradient(circle at 90% 6%, rgba(184, 223, 209, 0.48), transparent 25rem),
    var(--paper);
}

.hms-nav-current {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.hms-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 52px) clamp(14px, 3vw, 30px) 64px;
}

.hms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: min(700px, calc(100svh - 88px));
  padding: clamp(28px, 6vw, 84px) clamp(2px, 2vw, 24px);
}

.hms-hero-copy {
  min-width: 0;
}

.hms-hero-copy h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hms-lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: #42534d;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.6;
}

.hms-hero .hero-actions {
  margin-top: 30px;
}

.hms-privacy-line {
  max-width: 760px;
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  color: #465750;
  line-height: 1.55;
}

.hms-role-note {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(13, 76, 67, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hms-role-note::after {
  position: absolute;
  right: -64px;
  bottom: -82px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #d9eee6;
  content: "";
  opacity: 0.82;
}

.hms-role-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hms-role-note h2,
.hms-section-heading h2,
.hms-employee-view h2,
.hms-cta h2,
.hms-sources h2 {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hms-role-note h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hms-role-note p:not(.eyebrow),
.hms-role-note a {
  position: relative;
  z-index: 1;
}

.hms-role-note p:not(.eyebrow) {
  color: #4d5c57;
  line-height: 1.65;
}

.hms-role-note a,
.hms-fact-grid a,
.hms-sources a {
  color: var(--deep);
  font-weight: 850;
  text-underline-offset: 3px;
}

.hms-role-section,
.hms-dilemma,
.hms-workflow,
.hms-facts,
.hms-benefits,
.hms-tools,
.hms-employee-view,
.hms-cta,
.hms-sources {
  margin-top: clamp(70px, 10vw, 140px);
}

.hms-dilemma {
  padding: clamp(30px, 6vw, 68px);
  border-radius: 20px;
  background: #132f34;
  color: #fff;
}

.hms-dilemma-heading {
  max-width: 900px;
}

.hms-dilemma-heading h2 {
  max-width: 840px;
  margin: 4px 0 0;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.hms-dilemma-heading > p:last-child {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hms-dilemma-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 5vw, 48px);
}

.hms-dilemma-grid article {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.hms-dilemma-grid article > span {
  color: #9dd4c1;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.hms-dilemma-grid h3,
.hms-dilemma-solution h3 {
  margin: 20px 0 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hms-dilemma-grid h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.hms-dilemma-grid p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.hms-dilemma-solution {
  margin-top: 14px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 16px;
  background: #dff1ea;
  color: var(--deep);
}

.hms-dilemma-solution h3 {
  max-width: 780px;
  font-size: clamp(1.85rem, 4vw, 3.45rem);
}

.hms-dilemma-solution > p:not(.eyebrow) {
  max-width: 880px;
  color: #38544b;
  line-height: 1.65;
}

.hms-dilemma-boundary {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.62);
}

.hms-dilemma-solution a {
  display: inline-block;
  margin-top: 8px;
  color: var(--deep);
  font-weight: 900;
  text-underline-offset: 3px;
}

.hms-dilemma-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 18px;
}

.hms-dilemma-links a {
  margin-top: 0;
}

.hms-dilemma-links .hms-dilemma-action {
  text-decoration: none;
}

.hms-section-heading {
  max-width: 900px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.hms-section-heading h2 {
  max-width: 860px;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
}

.hms-section-heading > p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: #52615c;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hms-role-grid,
.hms-workflow-grid,
.hms-fact-grid,
.hms-benefit-grid,
.hms-tool-grid {
  display: grid;
  gap: 16px;
}

.hms-role-grid,
.hms-workflow-grid,
.hms-tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hms-role-grid article {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #d6dfdc;
  border-radius: 16px;
  background: #fff;
}

.hms-role-grid article.is-highlighted {
  border-color: #b9d8cd;
  background: #e6f1ed;
}

.hms-role-grid article > span {
  color: var(--green);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hms-role-grid h3,
.hms-workflow-grid h3,
.hms-fact-grid h3,
.hms-benefit-grid h3,
.hms-tool-card h3 {
  margin: 18px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.hms-role-grid p,
.hms-workflow-grid li,
.hms-fact-grid p,
.hms-benefit-grid p,
.hms-tool-card > p:not(.eyebrow),
.hms-tool-card small {
  color: #4f5f59;
  line-height: 1.62;
}

.hms-role-grid article > strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--deep);
  line-height: 1.45;
}

.hms-workflow-grid article {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 16px;
  background: #132f34;
  color: #fff;
}

.hms-workflow-grid article:nth-child(2) {
  background: #164c45;
}

.hms-workflow-grid article:nth-child(3) {
  background: #315f65;
}

.hms-phase {
  display: inline-grid;
  min-width: 58px;
  min-height: 34px;
  place-items: center;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #d5eee5;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hms-workflow-grid h3 {
  margin-top: 22px;
}

.hms-workflow-grid ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 19px;
}

.hms-workflow-grid li {
  color: rgba(255, 255, 255, 0.82);
}

.hms-limit-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(18px, 4vw, 52px);
  margin-top: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #decda8;
  border-radius: 14px;
  background: #f8efdd;
}

.hms-limit-note strong {
  color: #6d5018;
  font-size: 1.18rem;
}

.hms-limit-note span {
  color: #675d48;
  line-height: 1.62;
}

.hms-fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hms-fact-grid article {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #d6dfdc;
  border-radius: 15px;
  background: #fff;
}

.hms-fact-number {
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.hms-fact-grid a {
  margin-top: auto;
  padding-top: 20px;
}

.hms-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hms-benefit-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #d4dfdb;
  border-radius: 14px;
  background: #fff;
}

.hms-benefit-grid article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #d9eee6;
  color: var(--deep);
  font-size: 1.2rem;
  font-weight: 950;
}

.hms-benefit-grid h3 {
  margin-top: 0;
}

.hms-benefit-grid p {
  margin-bottom: 0;
}

.hms-deck {
  margin-top: clamp(70px, 10vw, 140px);
}

.hms-tool-card {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #d4dfdb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.07);
}

.hms-tool-card label:not(.hms-checklist label) {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: #34433e;
  font-weight: 800;
}

.hms-tool-card input[type="number"],
.hms-tool-card select {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid #bfcac6;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.hms-checklist {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.hms-checklist label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #41514b;
  line-height: 1.4;
}

.hms-checklist input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.hms-tool-status,
.hms-privacy-result {
  display: grid;
  gap: 5px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 10px;
  background: #e7f1ed;
  color: #24463d;
}

.hms-tool-status span,
.hms-privacy-result span {
  color: #52615c;
  line-height: 1.45;
}

.hms-checklist-card .ghost-action,
.hms-agenda + .secondary-action {
  margin-top: auto;
}

.hms-agenda {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 23px;
  color: #42524c;
  line-height: 1.5;
}

.hms-copy-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--deep);
  font-weight: 750;
}

.hms-employee-view,
.hms-cta,
.hms-sources {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(30px, 5vw, 62px);
  border-radius: 18px;
}

.hms-employee-view {
  background: #102f34;
  color: #fff;
}

.hms-employee-view h2,
.hms-cta h2,
.hms-sources h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.hms-employee-points {
  display: grid;
  gap: 13px;
}

.hms-employee-points p {
  margin: 0;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.hms-employee-points strong {
  color: #fff;
}

.hms-cta {
  align-items: end;
  background: #e5f0ec;
}

.hms-cta p {
  color: #4a5b55;
  line-height: 1.65;
}

.hms-cta-actions {
  display: grid;
  gap: 10px;
}

.hms-sources {
  margin-top: 18px;
  border: 1px solid #d5dfdc;
  background: #fff;
}

.hms-sources nav {
  display: grid;
  gap: 9px;
}

.hms-sources > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid #dfe6e3;
  color: #5b6964;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hms-hero,
  .hms-role-grid,
  .hms-workflow-grid,
  .hms-fact-grid,
  .hms-tool-grid,
  .hms-employee-view,
  .hms-cta,
  .hms-sources {
    grid-template-columns: 1fr;
  }

  .hms-hero {
    min-height: auto;
  }

  .hms-role-grid article,
  .hms-fact-grid article,
  .hms-tool-card {
    min-height: auto;
  }

  .hms-checklist-card .ghost-action,
  .hms-agenda + .secondary-action {
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  .hms-main {
    padding-inline: 10px;
  }

  .hms-hero {
    padding-top: 40px;
  }

  .hms-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 14vw, 4.25rem);
  }

  .hms-role-section,
  .hms-dilemma,
  .hms-workflow,
  .hms-facts,
  .hms-benefits,
  .hms-tools,
  .hms-employee-view,
  .hms-cta,
  .hms-sources,
  .hms-deck {
    margin-top: 58px;
  }

  .hms-section-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .hms-benefit-grid,
  .hms-limit-note,
  .hms-dilemma-grid {
    grid-template-columns: 1fr;
  }

  .hms-dilemma {
    padding: 26px 18px;
  }

  .hms-dilemma-heading h2 {
    font-size: clamp(2rem, 10.5vw, 3.1rem);
  }

  .hms-dilemma-heading > p:last-child {
    margin-top: 16px;
  }

  .hms-dilemma-grid {
    margin-top: 24px;
  }

  .hms-dilemma-grid article,
  .hms-dilemma-solution {
    padding: 22px 18px;
  }

  .hms-dilemma-grid h3,
  .hms-dilemma-solution h3 {
    margin-top: 12px;
  }

  .hms-dilemma-links {
    display: grid;
  }

  .hms-dilemma-links .hms-dilemma-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hms-benefit-grid article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
  }

  .hms-benefit-grid article > span {
    width: 40px;
    height: 40px;
  }

  .hms-employee-view,
  .hms-cta,
  .hms-sources {
    padding: 28px 22px;
  }
}

@media print {
  .hms-page .site-header,
  .hms-page .site-footer,
  .hms-page .hero-actions,
  .hms-page .deck-shell,
  .hms-page .hms-cta,
  .hms-page button {
    display: none !important;
  }

  .hms-page,
  .hms-main {
    width: auto;
    max-width: none;
    padding: 0;
    background: #fff;
  }

  .hms-hero,
  .hms-role-grid,
  .hms-workflow-grid,
  .hms-fact-grid,
  .hms-benefit-grid,
  .hms-tool-grid,
  .hms-employee-view,
  .hms-sources {
    grid-template-columns: 1fr 1fr;
  }

  .hms-role-section,
  .hms-workflow,
  .hms-facts,
  .hms-benefits,
  .hms-tools,
  .hms-employee-view,
  .hms-sources {
    break-inside: avoid;
    margin-top: 30px;
  }
}

/* Ryddig, oppgaveorientert verneombudsside */
.hms-clean-main { max-width: 1180px; }
.hms-clean-hero { min-height: auto; padding-block: clamp(54px, 9vw, 110px); }
.hms-clean-hero .hms-hero-copy h1 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); }
.hms-task-section,
.hms-dilemma,
.hms-access-explainer,
.hms-facts-compact,
.hms-deck-clean,
.hms-clean-cta { margin-top: clamp(70px, 10vw, 120px); }
.hms-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.hms-task-grid article { position: relative; min-height: 250px; padding: 28px; border: 1px solid #cbdcd7; border-radius: 16px; background: #fff; }
.hms-task-grid article > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 34px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 950; }
.hms-task-grid h3 { margin: 0 0 10px; font-size: clamp(1.35rem, 2vw, 1.85rem); }
.hms-task-grid p { margin: 0; color: #4b5c56; line-height: 1.6; }
.hms-access-explainer { padding: clamp(30px, 5vw, 54px); border-radius: 20px; background: var(--deep); color: #fff; }
.hms-access-explainer > div:first-child { max-width: 800px; }
.hms-access-explainer h2 { margin: 4px 0 12px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; }
.hms-access-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.hms-access-columns article { padding: 22px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.08); }
.hms-access-columns article.is-delegated { background: #e2f2ed; color: var(--deep); }
.hms-access-columns h3 { margin: 0 0 14px; }
.hms-access-columns ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2rem; line-height: 1.45; }
.hms-access-columns p { margin-bottom: 0; font-size: .9rem; line-height: 1.5; }
.hms-facts-compact .hms-fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hms-deck-clean .deck-card { min-height: clamp(390px, 55vh, 580px); }
.hms-deck-clean .deck-copy { max-width: 720px; }
.hms-deck-marker { display: grid; place-items: center; align-self: center; width: clamp(150px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%; background: #cce9df; color: var(--deep); }
.hms-deck-marker span { font-size: clamp(4rem, 9vw, 8rem); font-weight: 950; line-height: .8; }
.hms-deck-marker small { font-weight: 850; text-transform: uppercase; }

@media (max-width: 820px) {
  .hms-task-grid, .hms-access-columns, .hms-facts-compact .hms-fact-grid { grid-template-columns: 1fr; }
  .hms-task-grid article { min-height: 0; }
  .hms-deck-marker { display: none; }
}
