/* T14. Alle regler krever B/C. A bruker utelukkende de opprinnelige stilene.
   Eksisterende bilder beholdes; varm bein, kull og champagne fra herofilmene. */
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem {
  --mag-gap:clamp(14px,2.1vw,32px);
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode {
  max-width:none; display:grid; grid-template-columns:1.5fr 1fr; gap:10px 7vw; align-items:end;
  margin-bottom:40px;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode .eyebrow {
  grid-column:1/-1; font-size:11px; letter-spacing:.22em;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode h2 {
  margin:4px 0 0; font-size:clamp(38px,5.2vw,76px); letter-spacing:-.035em; font-weight:400;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode > p:not(.eyebrow) {
  font-size:14px; line-height:1.7; max-width:43ch;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode--midt { text-align:left; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode--midt p { margin:0; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .hero__claim .reveal-line > i {
  transform:none; transition:none;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .hero__word span {
  opacity:1; transform:none; animation:none;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategorier--ny {
  gap:var(--mag-gap); border:0; background:transparent;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori {
  box-shadow:none; position:relative; overflow:hidden; background:transparent;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori__foto img,
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look img {
  object-fit:cover; object-position:center; transition:transform .8s var(--ease);
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori:hover img,
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look a:hover img { transform:scale(1.035); }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori:focus-visible { outline-offset:5px; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori__tekst { padding:17px 0 23px; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori__ant { font-size:10px; letter-spacing:.1em; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori p { font-size:13px; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look {
  gap:var(--mag-gap); grid-template-columns:repeat(3,minmax(0,1fr));
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look a {
  box-shadow:none; aspect-ratio:3/4;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look span {
  font-size:13px; letter-spacing:.06em; left:22px; bottom:24px;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .nyhet { gap:6vw; align-items:center; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .farger { gap:var(--mag-gap); }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .farge {
  aspect-ratio:3/4; box-shadow:none;
}
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kort3,
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .verktoy { gap:var(--mag-gap); }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kort3 > *,
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .verktoy > * {
  box-shadow:none; border-top:1px solid var(--strek); padding:26px 0;
}
/* B — magasinets omslag: bilde i full bredde, stor typografi og mørk lesesone. */
html[data-variant-hero-banner="B"] #hjem .hero {
  min-height:760px; padding:48px var(--pad) 76px; grid-template-columns:1fr 1fr;
  grid-template-rows:auto 1fr; align-items:end; gap:30px; color:var(--cream);
}
html[data-variant-hero-banner="B"] #hjem .hero__slor {
  background:linear-gradient(90deg,rgba(9,9,9,.86),rgba(9,9,9,.48) 44%,transparent 78%),linear-gradient(0deg,rgba(9,9,9,.55),transparent 65%);
}
html[data-variant-hero-banner="B"] #hjem .hero__col--left {
  grid-column:1/-1; grid-row:1; display:flex; justify-content:space-between; align-items:start; gap:24px;
  text-shadow:none;
}
html[data-variant-hero-banner="B"] #hjem .hero__col--left > .eyebrow { font-size:11px; color:var(--cream); padding-top:10px; }
html[data-variant-hero-banner="B"] #hjem .hero__word { font-size:34px; margin:0 auto 0 15px; }
html[data-variant-hero-banner="B"] #hjem .spec { width:270px; padding:14px 20px; background:rgba(9,9,9,.82); }
html[data-variant-hero-banner="B"] #hjem .spec > div { border-color:#f3efe533; }
html[data-variant-hero-banner="B"] #hjem .spec dt { color:var(--cream); }
html[data-variant-hero-banner="B"] #hjem .hero__col--right {
  grid-column:1; grid-row:2; justify-self:start; text-align:left; align-items:start; text-shadow:none;
}
html[data-variant-hero-banner="B"] #hjem .hero__claim { font-size:clamp(64px,7.7vw,112px); line-height:.93; letter-spacing:-.045em; font-weight:400; margin-bottom:24px; }
html[data-variant-hero-banner="B"] #hjem .hero__body { color:var(--cream); margin-left:0; max-width:43ch; font-size:14px; }
html[data-variant-hero-banner="B"] #hjem .hero__handlinger { justify-content:start; margin-top:0; }
html[data-variant-hero-banner="B"] #hjem .hero__handlinger .knapp { background:var(--cream); color:var(--ink); border-color:var(--cream); }
html[data-variant-hero-banner="B"] #hjem .hero__handlinger .knapp--tom { background:#16140f; color:var(--cream); }
html[data-variant-hero-banner="B"] #hjem .hero__scroll { color:var(--cream); }
html[data-variant-hero-banner="B"] #hjem .kategori--stor:first-child { grid-column:span 7; }
html[data-variant-hero-banner="B"] #hjem .kategori--stor:nth-child(2) { grid-column:span 5; }
html[data-variant-hero-banner="B"] #hjem .kategori--stor:nth-child(3) { grid-column:span 6; }
html[data-variant-hero-banner="B"] #hjem .kategori--stor .kategori__foto { aspect-ratio:5/4; }
html[data-variant-hero-banner="B"] #hjem .kategori--stor:nth-child(2) .kategori__foto { aspect-ratio:5/5.7; }
html[data-variant-hero-banner="B"] #hjem .kategori--stor:nth-child(3) .kategori__foto { aspect-ratio:5/4; }
html[data-variant-hero-banner="B"] #hjem .kategori--liten { grid-column:span 3; }
html[data-variant-hero-banner="B"] #hjem .kategori--liten .kategori__foto { aspect-ratio:3/4; }
html[data-variant-hero-banner="B"] #hjem .kategori--stor h3 { font-size:clamp(32px,3.5vw,48px); }
html[data-variant-hero-banner="B"] #hjem .look a:nth-child(3n + 2) { margin-top:64px; }
/* C — stiljournal: delt omslag og tett, nummerert bildekollasj. */
html[data-variant-hero-banner="C"] #hjem .hero {
  min-height:720px; padding:44px var(--pad) 64px; grid-template-columns:5fr 7fr; grid-template-rows:auto 1fr; gap:28px;
}
html[data-variant-hero-banner="C"] #hjem .hero__bg,
html[data-variant-hero-banner="C"] #hjem .hero__film { left:43%; width:57%; }
html[data-variant-hero-banner="C"] #hjem .hero__slor { background:linear-gradient(90deg,var(--bone) 40%,transparent 55%); }
html[data-variant-hero-banner="C"] #hjem .hero__col--left { grid-column:1; grid-row:2; text-shadow:none; max-width:400px; }
html[data-variant-hero-banner="C"] #hjem .hero__col--left > .eyebrow { font-size:11px; }
html[data-variant-hero-banner="C"] #hjem .hero__word { font-size:32px; margin:14px 0 24px; }
html[data-variant-hero-banner="C"] #hjem .hero__col--right {
  grid-column:1; grid-row:1; justify-self:start; text-align:left; align-items:start; text-shadow:none;
}
html[data-variant-hero-banner="C"] #hjem .hero__claim { font-size:clamp(60px,6.1vw,88px); font-weight:400; line-height:.98; letter-spacing:-.045em; }
html[data-variant-hero-banner="C"] #hjem .hero__body { max-width:38ch; margin-left:0; font-size:14px; }
html[data-variant-hero-banner="C"] #hjem .hero__handlinger { justify-content:start; }
html[data-variant-hero-banner="C"] #hjem .hero__scroll { left:72%; padding:10px; background:var(--bone); }
html[data-variant-hero-banner="C"] #hjem .kategorier--ny { counter-reset:oppslag; }
html[data-variant-hero-banner="C"] #hjem .kategori { grid-column:span 4; counter-increment:oppslag; }
html[data-variant-hero-banner="C"] #hjem .kategori::before {
  content:counter(oppslag,decimal-leading-zero); position:absolute; z-index:2; left:16px; top:16px;
  width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:var(--bone); color:var(--ink); font:12px var(--f-ui);
}
html[data-variant-hero-banner="C"] #hjem .kategori .kategori__foto { aspect-ratio:3/4; }
html[data-variant-hero-banner="C"] #hjem .kategori:first-child { grid-column:span 8; grid-row:span 2; }
html[data-variant-hero-banner="C"] #hjem .kategori:first-child .kategori__foto { aspect-ratio:auto; flex:1; min-height:600px; }
html[data-variant-hero-banner="C"] #hjem .kategori:first-child .kategori__foto img { position:absolute; inset:0; }
html[data-variant-hero-banner="C"] #hjem .kategori h3 { font-size:clamp(27px,3vw,42px); }
html[data-variant-hero-banner="C"] #hjem .look { grid-template-columns:repeat(4,minmax(0,1fr)); }
html[data-variant-hero-banner="C"] #hjem .look a:first-child,
html[data-variant-hero-banner="C"] #hjem .look a:last-child { grid-column:span 2; aspect-ratio:4/3; }
@media(max-width:1000px) {
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon__hode { grid-template-columns:1fr; gap:12px; }
  html[data-variant-hero-banner="B"] #hjem .hero__col--left { flex-wrap:wrap; }
  html[data-variant-hero-banner="B"] #hjem .hero__col--right { grid-column:1/-1; max-width:540px; }
  html[data-variant-hero-banner="B"] #hjem .kategori--liten { grid-column:span 6; }
  html[data-variant-hero-banner="C"] #hjem .hero__bg,
  html[data-variant-hero-banner="C"] #hjem .hero__film { left:50%; width:50%; }
  html[data-variant-hero-banner="C"] #hjem .hero__slor { background:linear-gradient(90deg,var(--bone) 45%,transparent 70%); }
}
@media(max-width:640px) {
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .hero { min-height:0; padding:30px 20px 60px; gap:24px; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .hero__claim { font-size:60px; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .hero__word { font-size:30px; }
  html[data-variant-hero-banner="B"] #hjem .hero__col--left { display:block; grid-row:2; }
  html[data-variant-hero-banner="B"] #hjem .hero__col--right { grid-row:1; }
  html[data-variant-hero-banner="B"] #hjem .hero__word { margin:10px 0 22px; }
  html[data-variant-hero-banner="B"] #hjem .spec { width:100%; max-width:350px; }
  html[data-variant-hero-banner="B"] #hjem .hero__slor { background:linear-gradient(90deg,rgba(9,9,9,.85),rgba(9,9,9,.55)); }
  html[data-variant-hero-banner="C"] #hjem .hero { padding-top:300px; grid-template-columns:1fr; }
  html[data-variant-hero-banner="C"] #hjem .hero__bg,
  html[data-variant-hero-banner="C"] #hjem .hero__film { left:0; top:0; height:280px; width:100%; }
  html[data-variant-hero-banner="C"] #hjem .hero__slor { background:linear-gradient(0deg,var(--bone) 0%,transparent 100%); top:200px; bottom:auto; height:80px; }
  html[data-variant-hero-banner="C"] #hjem .hero__scroll { left:50%; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori,
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori:first-child { grid-column:span 6; grid-row:auto; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori--stor:first-child { grid-column:span 12; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori .kategori__foto { aspect-ratio:3/4; min-height:0; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori:first-child .kategori__foto { aspect-ratio:4/3; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori h3 { font-size:25px; overflow-wrap:break-word; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori__tekst { padding:12px 0 18px; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .kategori__ant { letter-spacing:0; font-size:10px; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:14px; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look a { flex:0 0 83%; aspect-ratio:3/4; scroll-snap-align:start; margin-top:0; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look span { font-size:12px; left:16px; bottom:20px; }
  html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .seksjon { padding-top:56px; padding-bottom:56px; }
}

/* T17: kontrast holdes stabil også når filmen skifter til et lyst utsnitt. */
html[data-variant-hero-banner="B"] #hjem .hero__col--right { background:#16140f; padding:24px; }
html[data-variant-hero-banner="B"] #hjem .hero__col--left > :is(.eyebrow,.hero__word) { background:#16140f; padding:10px; }
html[data-variant-hero-banner="B"] #hjem .spec { background:#16140f; }
html[data-variant-hero-banner="B"] #hjem .hero__scroll { background:#16140f; padding:10px; }
html[data-variant-hero-banner="C"] #hjem :is(.hero__col--left,.hero__col--right) { background:#dcd6c8; color:#16140f; padding:16px; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .look span { background:#16140f; color:#f3efe5; padding:10px 12px; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem :is(a,button,summary,input,textarea,select):focus-visible { outline:3px solid #f3efe5; outline-offset:3px; box-shadow:0 0 0 6px #16140f; }
@media(max-width:640px) {
 html[data-variant-hero-banner="B"] #hjem .hero__col--right { padding:18px; }
 html[data-variant-hero-banner="B"] #hjem .hero__claim { font-size:54px; }
}

/* Faste leseflater gjennom den animerte overgangen, også mellom lyse og mørke bilder. */
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem :is(.akt__head,.akt__note) { color:#f3efe5 !important; background:#16140f; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .akt__note { padding:8px; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem .manifest__sig span:last-child { color:#c5bfb2; }
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem :is(a,button,summary,input,textarea,select):focus { outline:3px solid #f3efe5 !important; outline-offset:3px; box-shadow:0 0 0 6px #16140f; }

/* Chrome flytter fokus inn i datoens interne kalenderknapp. */
html:is([data-variant-hero-banner="B"],[data-variant-hero-banner="C"]) #hjem input:focus-within { outline:3px solid #f3efe5 !important; outline-offset:3px; box-shadow:0 0 0 6px #16140f; }
