/* Crane Partner – midlertidig juleforside 2026. Alle regler er avgrenset. */
.cp-jul { --jul-accent:#b38b48; --jul-bg:#f3f4f5; --jul-ink:#222; font-family:"Titillium Web",Arial,sans-serif; width:100%; margin:0; color:var(--jul-ink); }
.cp-jul--2-varm { --jul-accent:#c29553; --jul-bg:#f6f3ee; }
.cp-jul--3-visuell { --jul-accent:#d0a25b; --jul-bg:#eaf0f5; }
.cp-jul *, .cp-jul *::before, .cp-jul *::after { box-sizing:border-box; }
.cp-jul .cp-jul-figure { margin:0; padding:0; position:relative; background:#182839; border-bottom:3px solid var(--jul-accent); }
.cp-jul .cp-jul-image { width:100%; height:auto; display:block; margin:0; }
.cp-jul .cp-jul-scene { position:relative; overflow:hidden; }
.cp-jul .cp-jul-snow { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.cp-jul .cp-jul-flake { position:absolute; top:-12px; left:var(--x); width:var(--s); height:var(--s); background:#fff; border-radius:50%; opacity:var(--o); box-shadow:0 0 4px rgba(255,255,255,.25); animation:cp-jul-fall var(--d) linear var(--delay) infinite; }
@keyframes cp-jul-fall { from { transform:translate3d(0,-10px,0); } to { transform:translate3d(var(--drift),calc(var(--travel) + 24px),0); } }
.cp-jul .cp-jul-scene { --travel:40vw; }
.cp-jul .cp-jul-glow { position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 55% 19%,rgba(255,203,116,.11),transparent 27%); animation:cp-jul-glow 7s ease-in-out infinite alternate; }
@keyframes cp-jul-glow { from {opacity:.12;} to {opacity:.65;} }
.cp-jul .cp-jul-pause { position:absolute; bottom:10px; right:12px; z-index:2; color:#fff; background:rgba(15,25,35,.85); padding:5px 9px; border:1px solid rgba(255,255,255,.4); border-radius:4px; font-size:13px; line-height:1.4; cursor:pointer; }
.cp-jul .cp-jul-pause-input { position:absolute; width:1px; height:1px; opacity:0; }
.cp-jul .cp-jul-pause-input:focus-visible + .cp-jul-pause { outline:3px solid #fff; outline-offset:3px; }
.cp-jul .cp-jul-pause-input:checked ~ .cp-jul-window .cp-jul-scene .cp-jul-flake, .cp-jul .cp-jul-pause-input:checked ~ .cp-jul-window .cp-jul-scene .cp-jul-glow { animation-play-state:paused; }
.cp-jul .cp-jul-pause-input:checked ~ .cp-jul-window .cp-jul-scene .cp-jul-snow, .cp-jul .cp-jul-pause-input:checked ~ .cp-jul-window .cp-jul-scene .cp-jul-glow { visibility:hidden; }
.cp-jul .cp-jul-resume-text { display:none; }
.cp-jul .cp-jul-pause-input:checked + .cp-jul-pause .cp-jul-resume-text { display:inline; }
.cp-jul .cp-jul-pause-input:checked + .cp-jul-pause .cp-jul-pause-text { display:none; }
.cp-jul .cp-jul-mobile { display:none; }
.cp-jul .cp-jul-info { background:var(--jul-bg); text-align:center; padding:22px 20px 25px; border-bottom:1px solid #d7dce0; }
.cp-jul .cp-jul-info h1 { color:#222; font-size:clamp(23px,2.15vw,36px); font-weight:700; margin:0 0 5px; line-height:1.2; }
.cp-jul .cp-jul-info h2 { color:#41474c; font-size:clamp(16px,1.45vw,22px); font-weight:600; margin:0 0 7px; line-height:1.3; }
.cp-jul .cp-jul-info p { color:#333; max-width:850px; margin:0 auto 15px; font-size:16px; line-height:1.45; }
.cp-jul .cp-jul-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; }
.cp-jul .cp-jul-actions a, .cp-jul .cp-jul-actions a:visited { display:inline-flex; gap:8px; align-items:center; justify-content:center; background:#26343b; color:#fff !important; padding:9px 16px; border:1px solid #26343b; border-radius:4px; text-decoration:none; font-weight:600; line-height:1.35; }
.cp-jul .cp-jul-actions a:hover, .cp-jul .cp-jul-actions a:focus-visible { background:#18872b; border-color:#18872b; color:#fff !important; }
.cp-jul .cp-jul-actions a:focus-visible { outline:2px solid #222; outline-offset:3px; }
@media(max-width:700px) { .cp-jul .cp-jul-mobile { display:block; margin:0; text-align:center; padding:15px 12px; background:#182839; color:#fff; } .cp-jul .cp-jul-mobile strong {display:block; font-size:24px; color:#f2d39a; line-height:1.2; margin-bottom:5px;} .cp-jul .cp-jul-mobile span {display:block;font-size:15px;line-height:1.4;} .cp-jul .cp-jul-pause { top:5px; bottom:auto; right:5px; font-size:11px; padding:3px 6px; } .cp-jul .cp-jul-info {padding:18px 14px;} .cp-jul .cp-jul-info p {font-size:15px;} .cp-jul .cp-jul-flake:nth-child(n+13) {display:none;} }
@media(prefers-reduced-motion:reduce) { .cp-jul .cp-jul-snow,.cp-jul .cp-jul-glow,.cp-jul .cp-jul-pause,.cp-jul .cp-jul-pause-input {display:none;} }

/* V3: Toppseksjonen skal oppta sin egen plass, ikke ligge over julebildet. */
body.cp-jul-page #p7HMY_3 {
  position: relative !important;
  inset: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 10;
}
body.cp-jul-page #p7HMY_3 .nyhet-rotator {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}
body.cp-jul-page .cp-jul {
  position: relative !important;
  inset: auto !important;
  clear: both;
  margin: 0 !important;
  transform: none !important;
  height: auto !important;
  max-height: none !important;
}
body.cp-jul-page .cp-jul .cp-jul-figure,
body.cp-jul-page .cp-jul .cp-jul-scene {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.cp-jul-page .cp-jul img.cp-jul-image {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto 1983 / 793 !important;
  object-fit: contain !important;
  object-position: center top !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  clip-path: none !important;
}

/* V4: Fast julemotiv bak et vindu som følger dokumentet. */
body.cp-jul-page.cp-jul-fixed #p7HMY_3 {
  position: sticky !important;
  top: 0 !important;
  bottom: auto !important;
  z-index: 100;
  background-color: #123727;
}
body.cp-jul-page .cp-jul-window { position: relative; }
body.cp-jul-page.cp-jul-fixed .cp-jul-window {
  aspect-ratio: 1983 / 793;
  clip-path: inset(0);
  background: #182839;
}
body.cp-jul-page.cp-jul-fixed .cp-jul .cp-jul-window .cp-jul-scene {
  position: fixed !important;
  top: var(--cp-jul-top) !important;
  left: var(--cp-jul-left) !important;
  width: var(--cp-jul-width) !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 0;
}


/* V5: Fjernet nyhetstikker og gitt toppfeltet en mørk julegrønn tone. */
body.cp-jul-page #p7HMY_3 {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.12), transparent 18%),
    radial-gradient(circle at 86% 2%, rgba(181,31,44,.18), transparent 22%),
    linear-gradient(180deg, #184733 0%, #123727 54%, #0d281d 100%) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(208,162,91,.35);
  isolation: isolate;
}
body.cp-jul-page #p7HMY_3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,228,187,.10), transparent 34%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 18%, transparent 42%, transparent 100%);
  z-index: 0;
}
body.cp-jul-page #p7HMY_3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(208,162,91,.0) 7%, rgba(208,162,91,.85) 22%, rgba(255,255,255,.55) 50%, rgba(208,162,91,.85) 78%, rgba(208,162,91,0) 93%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
body.cp-jul-page #p7HMY_3 .hmy-section,
body.cp-jul-page #p7HMY_3 .hmy-content-wrapper,
body.cp-jul-page #p7HMY_3 .hmy-content {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
body.cp-jul-page #p7HMY_3 h3 { margin: 0; }
body.cp-jul-page #p7HMY_3 h3 img {
  width: min(100%, 500px);
  height: auto !important;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.28));
}
body.cp-jul-page #p7HMY_3 .site-search-form { text-align: center; }
body.cp-jul-page #p7HMY_3 .search {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
body.cp-jul-page #p7HMY_3 .button,
body.cp-jul-page #p7HMY_3 input[type=submit].button {
  background: #b51f2c !important;
  border: 1px solid #8a1821 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.16);
}
body.cp-jul-page #p7HMY_3 .button:hover,
body.cp-jul-page #p7HMY_3 .button:focus-visible,
body.cp-jul-page #p7HMY_3 input[type=submit].button:hover,
body.cp-jul-page #p7HMY_3 input[type=submit].button:focus-visible {
  background: #cf2a39 !important;
  border-color: #a61f2b !important;
}
body.cp-jul-page #p7HMY_3 #p7DMMu_1 > li > a,
body.cp-jul-page #p7HMY_3 #p7DMMtb_1 a {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.32);
}
body.cp-jul-page #p7HMY_3 #p7DMMu_1 > li > a:hover,
body.cp-jul-page #p7HMY_3 #p7DMMu_1 > li > a:focus-visible,
body.cp-jul-page #p7HMY_3 #p7DMMtb_1 a:hover,
body.cp-jul-page #p7HMY_3 #p7DMMtb_1 a:focus-visible {
  color: #f1d39d !important;
}
body.cp-jul-page #p7HMY_3 .p7dmm-sub-wrapper { box-shadow: 0 12px 22px rgba(0,0,0,.2); }
body.cp-jul-page #p7HMY_3 .autocomplete-items { box-shadow: 0 12px 26px rgba(0,0,0,.18); }
body.cp-jul-page #p7HMY_3 .cp-header-sparkles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
body.cp-jul-page #p7HMY_3 .cp-header-sparkles span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.7); box-shadow: 0 0 10px rgba(255,255,255,.5); opacity: .0;
  animation: cp-header-sparkle 7s ease-in-out infinite;
}
body.cp-jul-page #p7HMY_3 .cp-header-sparkles span:nth-child(1) { left: 8%; top: 24%; animation-delay: .2s; }
body.cp-jul-page #p7HMY_3 .cp-header-sparkles span:nth-child(2) { left: 28%; top: 72%; animation-delay: 1.3s; }
body.cp-jul-page #p7HMY_3 .cp-header-sparkles span:nth-child(3) { left: 52%; top: 18%; animation-delay: 2.4s; }
body.cp-jul-page #p7HMY_3 .cp-header-sparkles span:nth-child(4) { left: 73%; top: 66%; animation-delay: 3.1s; }
body.cp-jul-page #p7HMY_3 .cp-header-sparkles span:nth-child(5) { left: 91%; top: 28%; animation-delay: 4.0s; }
@keyframes cp-header-sparkle {
  0%, 100% { transform: scale(.2); opacity: 0; }
  12% { opacity: .65; }
  26% { transform: scale(1); opacity: .2; }
  42% { opacity: 0; }
}
@media (max-width: 900px) {
  body.cp-jul-page #p7HMY_3 { background: linear-gradient(180deg, #184733 0%, #103224 100%) !important; }
  body.cp-jul-page #p7HMY_3 .cp-header-sparkles { display: none; }
}
