/* The service links finish the introduction before the current assignments begin. */
.page-home .home-hero { padding-bottom: clamp(30px, 3.6vw, 56px); }
.page-home .home-hero-copy h1 { max-width: 16ch; text-wrap: balance; }
.ac-services {
  background: linear-gradient(115deg, #f8fbfd, #eef6fb);
  border-bottom: 1px solid #dce7ee;
  scroll-margin-top: calc(var(--header-h, 76px) + 44px);
}
.ac-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; padding: 0; margin: -1px; border: 0;
}
.ac-services__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #c9d9e4;
}
.ac-service { position: relative; padding: 25px 60px 29px 0; }
.ac-service + .ac-service { padding-left: clamp(26px, 3vw, 50px); border-left: 1px solid #ccdae4; }
.ac-service h3 {
  margin: 0 0 7px; color: var(--ink);
  font-size: clamp(1.12rem, 1.5vw, 1.45rem); line-height: 1.22; letter-spacing: -.025em;
}
.ac-service p { max-width: 48ch; margin: 0; color: #42596b; font-size: .94rem; line-height: 1.53; }
.ac-service__link { color: inherit; text-decoration: none; }
.ac-service__link::after { content: ''; position: absolute; inset: 0; }
.ac-service__link span {
  position: absolute; top: 25px; right: 22px; color: #20577a;
  font: 500 20px/1.1 system-ui, sans-serif;
}
.ac-service:last-child .ac-service__link span { right: 2px; }
.ac-service__link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.ac-service:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: -3px; }
.ac-jobs__interest p {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px;
  margin: 0; color: #506575; font-size: .89rem; line-height: 1.55;
}
.ac-jobs__interest .text-link { color: #184d6e; min-height: 44px; font-size: inherit; }
#arbeidsmetode, #helse-og-omsorg { scroll-margin-top: calc(var(--header-h, 76px) + 44px); }
@media (max-width: 760px) {
  .page-home .home-hero { padding-bottom: 23px; }
  .ac-services { background: #edf5fb; }
  .ac-services__grid { grid-template-columns: 1fr; }
  .ac-service, .ac-service + .ac-service { padding: 17px 38px 18px 0; }
  .ac-service + .ac-service { border-left: 0; border-top: 1px solid #cbdce6; }
  .ac-service h3 { font-size: 1.13rem; margin-bottom: 4px; }
  .ac-service p { font-size: .9rem; }
  .ac-service .ac-service__link span { right: 1px; top: 19px; }
  .ac-jobs__interest p { display: block; }
  .ac-jobs__interest .text-link { display: flex; width: fit-content; }
}
/* The next card remains partially visible across viewport sizes. */
.ac-jobs {
  --ac-gap: 16px;
  --ac-peek: clamp(24px, 3vw, 50px);
  --ac-columns: 3;
  --ac-card: calc((100% - var(--ac-columns) * var(--ac-gap) - var(--ac-peek)) / var(--ac-columns));
  position: relative;
  padding-block: clamp(44px, 4.8vw, 80px) clamp(28px, 3.8vw, 64px);
  background: #fff;
  border-bottom: 1px solid #e4eaef;
  scroll-margin-top: calc(var(--header-h, 76px) + 44px);
}
.ac-jobs__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; column-gap: 20px; row-gap: 12px;
}
.ac-jobs__head h2 {
  margin: 0; max-width: none; color: var(--ink);
  font-size: clamp(2.15rem, 3.4vw, 3.5rem);
  font-weight: 600; letter-spacing: -.06em; line-height: 1.08;
}
.ac-jobs__tools { display: flex; align-items: center; gap: 8px; }
.ac-jobs [hidden], .ac-job-dialog[hidden] { display: none !important; }
.ac-jobs__step, .ac-job-dialog__close {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%;
  border: 1px solid #cbd7df; background: #fff; color: #173044;
  transition: background-color .18s ease, border-color .18s ease;
}
.ac-jobs__step:hover, .ac-job-dialog__close:hover { background: #edf5fa; border-color: #96afc0; }
.ac-jobs__step::before {
  content: ''; width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.ac-jobs__step[data-previous]::before { transform: translateX(2px) rotate(-135deg); }
.ac-jobs__step[aria-disabled="true"] { color: #566a7b; background: #f2f6f8; opacity: .65; cursor: default; }
.ac-jobs__all {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  margin-left: 7px; padding: 0 1px; border: 0; background: transparent; color: #184663;
  font-size: .94rem; font-weight: 650; white-space: nowrap;
}
.ac-jobs__all::after { content: '→'; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.ac-jobs__all:hover::after { transform: translateX(3px); }
.ac-jobs__stage { padding-block: clamp(19px, 2vw, 29px) 10px; }
.ac-jobs__viewport {
  display: flex; gap: var(--ac-gap); margin: 0; padding: 4px 3px 13px;
  list-style: none; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity; scroll-padding-inline: 3px; scrollbar-width: none;
}
.ac-jobs__viewport::-webkit-scrollbar { display: none; }
.ac-jobs__group > li {
  display: flex; flex: 0 0 var(--ac-card); min-width: 0;
  padding: 0; margin: 0; scroll-snap-align: start;
}
.ac-job {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  width: 100%; border-radius: 17px; background: #fff; color: var(--ink);
  border: 1px solid #dce6ed; box-shadow: 0 3px 9px #102a360f; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ac-job img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.58;
  object-fit: cover; background: #edf3f7;
}
.ac-job__caption {
  display: grid; align-content: start; gap: 5px; min-height: 105px;
  padding: 16px 52px 18px 17px;
}
.ac-job__place { color: #506575; font-size: .81rem; font-weight: 550; line-height: 1.25; }
.ac-job__title {
  color: var(--ink); font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  font-weight: 650; letter-spacing: -.033em; line-height: 1.16;
  hyphens: manual; overflow-wrap: break-word; text-wrap: pretty;
}
.ac-job__arrow {
  position: absolute; right: 14px; bottom: 16px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: #edf5fa; color: #184d6e;
  font: 500 16px/1 system-ui, sans-serif;
}
.ac-job:is(:hover, :focus-visible) { border-color: #8eaec2; box-shadow: 0 4px 10px #102a3619; }
.ac-job:is(:hover, :focus-visible) .ac-job__arrow { color: #fff; background: #184d6e; }
.ac-job:focus-visible { outline: 3px solid #0c5a8b; outline-offset: -3px; }
.ac-job-dialog {
  position: fixed; inset: 0; width: min(552px,calc(100vw - 32px)); max-width: none;
  max-height: min(82vh, 760px); max-height: min(82dvh, 760px); overflow: auto;
  margin: auto; padding: clamp(18px,3vw,32px); background: #fff; color: var(--ink);
  border: 1px solid #d7e2e8; border-radius: 18px; box-shadow: 0 24px 90px #071c3533;
}
.ac-job-dialog:not([open]) { display: none; }
.ac-job-dialog::backdrop { background-color: rgba(8,29,45,.48); }
.ac-job-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ac-job-dialog h2 { margin: 0; font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1.12; letter-spacing: -.045em; }
.ac-job-dialog__close { color: #263d4a; font: 300 25px/1 system-ui,sans-serif; }
.ac-job-dialog__list { padding: 0; margin: 0; list-style: none; }
.ac-job-dialog__list li { margin: 0; padding: 0; border-top: 1px solid #e0e8ed; }
.ac-job-dialog__list a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 10px 4px; color: #17354a; text-decoration: none;
}
.ac-job-dialog__list strong { font-size: 1rem; line-height: 1.25; font-weight: 630; }
.ac-job-dialog__list small { grid-column: 1; font-size: .8rem; color: #536879; }
.ac-job-dialog__list a::after { content: '→'; grid-column: 2; grid-row: 1 / 3; }
.ac-job-dialog__list a:hover strong { text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 950px) {
  .ac-jobs { --ac-columns: 2; }
}
@media (max-width: 650px) {
  .ac-jobs { --ac-columns: 1; --ac-peek: clamp(29px, 13vw, 64px); --ac-gap: 12px; padding-block: 38px 18px; }
  .ac-jobs__head { gap: 10px; }
  .ac-jobs__head h2 { font-size: clamp(1.85rem, 7.6vw, 2.6rem); }
  .ac-jobs__all { font-size: .86rem; }
  .ac-job__caption { min-height: 99px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-job, .ac-jobs__all::after, .ac-jobs__step, .ac-job-dialog__close { transition: none; }
}
@media print {
  .ac-jobs { padding-block: 24px; }
  .ac-jobs__stage, .ac-jobs__tools, .ac-job-dialog__head { display: none; }
  .ac-job-dialog:not([open]), .ac-job-dialog { display: block; position: static; width: 100%; max-height: none; padding: 0; box-shadow: none; border: 0; }
}
