/* =========================================================
   Nuni — Kvinna & Arv widget
   Editorial full-story layout. BEM scope: .nuni-ka
   ========================================================= */

.nuni-ka {
  --nuni-ka-bg: #E8DFCE;
  --nuni-ka-cream: #F4ECDD;
  --nuni-ka-cream-soft: #FAF7F1;
  --nuni-ka-sand: #BAA890;
  --nuni-ka-sand-deep: #8A765C;
  --nuni-ka-ink: #2A1F14;
  --nuni-ka-body: #23190E;
  --nuni-ka-muted: #6B5B47;
  --nuni-ka-line: rgba(42, 31, 20, 0.14);
  --nuni-ka-shadow: 0 24px 70px -38px rgba(42, 31, 20, 0.42);
  --nuni-ka-radius: 18px;
  --nuni-ka-hero-bg: var(--nuni-ka-cream);
  --nuni-ka-story-bg: var(--nuni-ka-bg);
  --nuni-ka-chapters-bg: var(--nuni-ka-cream);
  --nuni-ka-callout-bg: var(--nuni-ka-cream);
  --nuni-ka-mosaic-bg: transparent;
  --nuni-ka-closing-bg: var(--nuni-ka-ink);
  --nuni-ka-cta-bg: var(--nuni-ka-cream-soft);
  --nuni-ka-cta-color: var(--nuni-ka-ink);
  --nuni-ka-cta-hover-bg: #ffffff;
  --nuni-ka-cta-hover-color: var(--nuni-ka-ink);
  --nuni-ka-sticky-offset: calc(var(--nuni-nav-h, 92px) + 38px);
  --nuni-ka-hero-mobile-image: none;

  background: var(--nuni-ka-bg);
  color: var(--nuni-ka-ink);
  display: block;
  font-family: "Gilroy", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.elementor-widget-nuni-kvinna-arv,
.elementor-widget-nuni-kvinna-arv > .elementor-widget-container {
  width: 100%;
  max-width: none;
}

.elementor-widget-nuni-kvinna-arv > .elementor-widget-container {
  padding: 0;
}

.elementor-widget-nuni-kvinna-arv > .elementor-widget-container > .nuni-ka {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}

.elementor-editor-active .elementor-widget-nuni-kvinna-arv > .elementor-widget-container > .nuni-ka {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}

html:has(.nuni-ka),
body:has(.nuni-ka) {
  overflow-x: clip;
}

.e-con:has(.elementor-widget-nuni-kvinna-arv),
.e-con-inner:has(.elementor-widget-nuni-kvinna-arv),
.elementor-section:has(.elementor-widget-nuni-kvinna-arv),
.elementor-container:has(.elementor-widget-nuni-kvinna-arv),
.elementor-row:has(.elementor-widget-nuni-kvinna-arv),
.elementor-column:has(.elementor-widget-nuni-kvinna-arv),
.elementor-widget-wrap:has(.elementor-widget-nuni-kvinna-arv) {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  max-width: none !important;
  min-height: 0 !important;
}

.elementor-widget.elementor-widget-nuni-kvinna-arv {
  margin: 0 !important;
  padding: 0 !important;
}

.nuni-ka *,
.nuni-ka *::before,
.nuni-ka *::after {
  box-sizing: border-box;
}

.nuni-ka img {
  display: block;
  max-width: 100%;
}

.admin-bar .nuni-ka {
  --nuni-ka-sticky-offset: calc(var(--nuni-nav-h, 92px) + 70px);
}

.nuni-ka__hero {
  height: clamp(500px, 68vh, 640px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  background: var(--nuni-ka-hero-bg);
  border-bottom: 1px solid var(--nuni-ka-line);
  overflow: hidden;
}

.nuni-ka__hero-copy {
  padding: clamp(56px, 7vw, 100px) clamp(28px, 8vw, 118px) clamp(48px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.nuni-ka__eyebrow,
.nuni-ka__meta,
.nuni-ka__kicker,
.nuni-ka__closing-label,
.nuni-ka__pullquote-label {
  font-family: "Gilroy", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--nuni-ka-muted);
}

.nuni-ka__eyebrow {
  margin: 0 0 22px;
}

.nuni-ka__title {
  max-width: 10ch;
  margin: 0;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(62px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--nuni-ka-ink);
  text-wrap: balance;
}

.nuni-ka__lede {
  max-width: 48ch;
  margin: clamp(28px, 4vw, 44px) 0 0;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.58;
  color: var(--nuni-ka-body);
  text-wrap: pretty;
}

.nuni-ka__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 24px;
  border-top: 1px solid var(--nuni-ka-line);
}

.nuni-ka__meta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(42, 31, 20, 0.18);
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.44);
  color: var(--nuni-ka-body);
  letter-spacing: 0.14em;
}

.nuni-ka__hero-media {
  position: relative;
  min-height: 0;
  height: 100%;
  margin: 0;
  isolation: isolate;
  overflow: hidden;
  background: var(--nuni-ka-sand);
}

.nuni-ka__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(42, 31, 20, 0.02), rgba(42, 31, 20, 0.18)),
    linear-gradient(to right, rgba(244, 236, 221, 0.24), transparent 32%);
  pointer-events: none;
}

.nuni-ka__hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.nuni-ka__story {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--nuni-ka-story-bg);
}

.nuni-ka__container {
  width: 100%;
  margin: 0;
}

.nuni-ka__intro-band {
  width: min(100% - 44px, 1220px);
  margin: 0 auto clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: start;
}

.nuni-ka__image-stack {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: end;
  position: sticky;
  top: var(--nuni-ka-sticky-offset);
}

.nuni-ka__image-card,
.nuni-ka__chapter-media,
.nuni-ka__mosaic-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--nuni-ka-radius);
  background: var(--nuni-ka-sand);
  box-shadow: var(--nuni-ka-shadow);
}

.nuni-ka__image-card img,
.nuni-ka__chapter-media img,
.nuni-ka__mosaic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nuni-ka__image-card--small {
  aspect-ratio: 4 / 5;
  margin-bottom: clamp(44px, 6vw, 86px);
}

.nuni-ka__image-card--large {
  aspect-ratio: 3 / 4.35;
}

.nuni-ka__media-placeholder {
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: #C8B69B;
  color: var(--nuni-ka-cream-soft);
}

.nuni-ka__media-placeholder span {
  display: block;
  max-width: 18ch;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  color: var(--nuni-ka-cream-soft);
}

.nuni-ka__intro-copy {
  max-width: 670px;
}

.nuni-ka__kicker {
  margin: 0 0 18px;
}

.nuni-ka__intro-title {
  margin: 0 0 30px;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1;
  color: var(--nuni-ka-ink);
  text-wrap: balance;
}

.nuni-ka__paragraph,
.nuni-ka__mosaic-body {
  margin: 0 0 24px;
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--nuni-ka-body);
  text-wrap: pretty;
}

.nuni-ka__paragraph strong,
.nuni-ka__mosaic-body strong {
  color: var(--nuni-ka-ink);
  font-weight: 700;
}

.nuni-ka__pullquote {
  margin: clamp(42px, 6vw, 64px) 0;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
  border: 1px solid var(--nuni-ka-line);
  border-radius: var(--nuni-ka-radius);
  background: var(--nuni-ka-callout-bg);
  color: var(--nuni-ka-ink);
  overflow: hidden;
}

.nuni-ka__pullquote-label {
  display: block;
  margin: 0 0 12px;
  letter-spacing: 0.2em;
}

.nuni-ka__pullquote-text {
  display: block;
  max-width: 15ch;
  margin: 0;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.05;
  color: var(--nuni-ka-ink);
  text-wrap: balance;
}

.nuni-ka__chapters {
  display: grid;
  gap: 0;
  width: 100%;
  background: var(--nuni-ka-chapters-bg);
  border-top: 1px solid var(--nuni-ka-line);
  border-bottom: 1px solid var(--nuni-ka-line);
}

.nuni-ka__chapter {
  width: min(100% - 44px, 1220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(46px, 7vw, 86px) 0;
  border-bottom: 1px solid var(--nuni-ka-line);
  align-items: center;
}

.nuni-ka__chapter:last-child {
  border-bottom: 0;
}

.nuni-ka__chapter-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.nuni-ka__chapter-media {
  aspect-ratio: 4 / 3.35;
  margin: 0;
}

.nuni-ka__chapter-body {
  display: block;
  max-width: 720px;
}

.nuni-ka__chapter-title {
  margin: 0 0 22px;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(31px, 4vw, 56px);
  line-height: 1.03;
  color: var(--nuni-ka-ink);
  text-wrap: balance;
}

.nuni-ka__fact {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--nuni-ka-line);
}

.nuni-ka__fact strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--nuni-ka-ink);
}

.nuni-ka__fact span {
  display: block;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--nuni-ka-muted);
}

.nuni-ka__mosaic {
  width: min(100% - 44px, 1220px);
  margin-top: clamp(78px, 10vw, 130px);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--nuni-ka-radius);
  background: var(--nuni-ka-mosaic-bg);
  overflow: hidden;
}

.nuni-ka__mosaic-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.nuni-ka__mosaic-img {
  aspect-ratio: 5 / 4;
}

.nuni-ka__mosaic-copy {
  max-width: 56ch;
}

.nuni-ka__mosaic-title {
  margin: 0 0 22px;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1;
  color: var(--nuni-ka-ink);
  text-wrap: balance;
}

.nuni-ka__closing {
  padding: clamp(82px, 13vw, 154px) clamp(22px, 5vw, 64px);
  text-align: center;
  background: var(--nuni-ka-closing-bg);
  color: var(--nuni-ka-cream-soft);
}

.nuni-ka__closing-inner {
  max-width: 820px;
  margin: 0 auto;
}

.nuni-ka__closing-label {
  display: inline-flex;
  margin-bottom: 24px;
  color: rgba(250, 247, 241, 0.66);
}

.nuni-ka__closing-title {
  margin: 0;
  font-family: "Camello Rough", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 0.98;
  color: var(--nuni-ka-cream-soft);
  text-wrap: balance;
}

.nuni-ka__closing-text {
  max-width: 60ch;
  margin: 28px auto 0;
  font-size: 17px;
  line-height: 1.82;
  color: rgba(250, 247, 241, 0.82);
  text-wrap: pretty;
}

.nuni-ka__closing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin: 28px auto 0;
  padding: 0 30px;
  border: 1px solid var(--nuni-ka-cta-bg);
  border-radius: 999px;
  background: var(--nuni-ka-cta-bg);
  color: var(--nuni-ka-cta-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nuni-ka__closing-cta:hover,
.nuni-ka__closing-cta:focus-visible {
  border-color: var(--nuni-ka-cta-hover-bg);
  background: var(--nuni-ka-cta-hover-bg);
  color: var(--nuni-ka-cta-hover-color);
  transform: translateY(-2px);
}

.nuni-ka__closing-cta:focus-visible {
  outline: 2px solid rgba(250, 247, 241, 0.52);
  outline-offset: 4px;
}

.nuni-ka__closing-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.nuni-ka__closing-cta:hover svg,
.nuni-ka__closing-cta:focus-visible svg {
  transform: translateX(4px);
}

.nuni-ka__closing-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(82px, 10vw, 118px);
  margin: 42px auto 0;
  opacity: 0.92;
}

.nuni-ka__closing-mark img {
  width: 100%;
  height: auto;
  max-height: 118px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .nuni-ka__hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .nuni-ka__hero-copy {
    padding: 82px 28px 58px;
  }

  .nuni-ka__title {
    max-width: 9ch;
  }

  .nuni-ka__hero-media {
    min-height: 420px;
    order: -1;
  }

  .nuni-ka__intro-band {
    grid-template-columns: 1fr;
  }

  .nuni-ka__image-stack {
    position: relative;
    top: 0;
    order: -1;
  }

  .nuni-ka__chapter,
  .nuni-ka__mosaic-inner {
    grid-template-columns: 1fr;
  }

  .nuni-ka__chapter {
    gap: 14px;
  }

  .nuni-ka__fact {
    max-width: 32ch;
  }
}

@media (max-width: 640px) {
  .nuni-ka__hero {
    position: relative;
    display: flex;
    min-height: min(560px, 82svh);
    background-image:
      linear-gradient(to bottom, rgba(42, 31, 20, 0.2) 0%, rgba(42, 31, 20, 0.52) 45%, rgba(42, 31, 20, 0.86) 100%),
      linear-gradient(to right, rgba(42, 31, 20, 0.48), rgba(42, 31, 20, 0.08)),
      var(--nuni-ka-hero-mobile-image);
    background-position: center, center, center 44%;
    background-size: auto, auto, cover;
    background-repeat: no-repeat;
    border-bottom: 0;
  }

  .nuni-ka__hero-copy {
    position: relative;
    width: 100%;
    min-height: min(560px, 82svh);
    justify-content: flex-end;
    padding: 76px 22px 30px;
    color: var(--nuni-ka-cream-soft);
  }

  .nuni-ka__hero-media {
    display: none;
  }

  .nuni-ka__eyebrow,
  .nuni-ka__title,
  .nuni-ka__lede {
    color: var(--nuni-ka-cream-soft);
  }

  .nuni-ka__title {
    max-width: 8.5ch;
    font-size: clamp(50px, 14vw, 72px);
    line-height: 0.92;
  }

  .nuni-ka__lede {
    max-width: 34ch;
    margin-top: 22px;
    font-size: 15.5px;
    line-height: 1.58;
    color: rgba(250, 247, 241, 0.86);
  }

  .nuni-ka__meta-row {
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
    border-top-color: rgba(250, 247, 241, 0.28);
  }

  .nuni-ka__meta {
    min-height: 32px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--nuni-ka-cream-soft);
    border-color: rgba(250, 247, 241, 0.32);
    background: rgba(250, 247, 241, 0.12);
  }

  .nuni-ka__image-stack {
    grid-template-columns: 1fr;
  }

  .nuni-ka__image-card--small {
    display: none;
  }

  .nuni-ka__image-card--large {
    aspect-ratio: 4 / 3;
  }

  .nuni-ka__chapter {
    width: min(100% - 40px, 1220px);
    row-gap: 24px;
    padding: 42px 0;
  }

  .nuni-ka__chapter-visual {
    display: contents;
  }

  .nuni-ka__chapter-media {
    order: 1;
  }

  .nuni-ka__chapter-body {
    order: 2;
    max-width: none;
  }

  .nuni-ka__fact {
    order: 3;
    max-width: none;
    margin-top: -4px;
  }

  .nuni-ka__mosaic {
    width: min(100% - 40px, 1220px);
    padding: 20px;
  }

  .nuni-ka__paragraph,
  .nuni-ka__mosaic-body {
    font-size: 15.5px;
    line-height: 1.76;
  }
}
