/* /kartlegging-av-engasjement/ — bevarte seksjonsstiler fra Elementor-widgetene
   (trofast port). Navnerom ag-… og ageri-choose__… . Widgetenes egne .ageri-btn-
   regler er fjernet (temaet eier knappene), Google Fonts + sidefiks-globaler droppet,
   bilde-URL gjort site-relativ. Synlig copy er bevart/ToV-godkjent (folk→medarbeidere). */

/* --- widget 0 --- */

  /* Reset */
  .ag-engasjement-hero,
  .ag-engasjement-hero *,
  .ag-engasjement-hero *::before,
  .ag-engasjement-hero *::after {
    box-sizing: border-box;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  .ag-engasjement-hero {
    width: 100%;
    max-width: 100%;
    background: #E8E4D5;
    padding: 100px 40px 110px;
    color: #382D2E;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Subtil bakgrunnsdetalj */
  .ag-engasjement-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 155, 95, 0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .ag-engasjement-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .ag-engasjement-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  /* ============== VENSTRE: visuell profil ============== */
  .ag-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
  }

  /* Profilkort, hovedboks */
  .ag-profile__card {
    position: relative;
    background: #FFFFFF;
    padding: 28px 26px 24px;
    box-shadow: 0 6px 28px rgba(56, 45, 46, 0.08);
  }

  .ag-profile__label {
    position: absolute;
    top: -12px;
    left: 26px;
    background: #382D2E;
    color: #F5F3EC;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  .ag-profile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(160, 155, 95, 0.25);
  }

  .ag-profile__name-block {
    flex: 1;
    min-width: 0;
  }

  .ag-profile__name {
    font-size: 15px;
    font-weight: 500;
    color: #382D2E;
    margin: 0 0 2px 0;
    letter-spacing: 0.1px;
  }
  .ag-profile__role {
    font-size: 12px;
    font-weight: 300;
    color: #4B4B4D;
    margin: 0;
  }

  .ag-profile__match {
    flex-shrink: 0;
    text-align: right;
  }
  .ag-profile__match-num {
    font-size: 28px;
    font-weight: 300;
    color: #A09B5F;
    line-height: 1;
    letter-spacing: -0.5px;
    display: block;
  }
  .ag-profile__match-label {
    font-size: 9px;
    font-weight: 600;
    color: #4B4B4D;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
  }

  /* Life Themes seksjon */
  .ag-profile__section {
    margin-bottom: 18px;
  }
  .ag-profile__section:last-child {
    margin-bottom: 0;
  }

  .ag-profile__section-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #A09B5F;
    text-transform: uppercase;
    margin: 0 0 12px 0;
  }

  /* Trait rows */
  .ag-trait {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .ag-trait:last-child {
    margin-bottom: 0;
  }

  .ag-trait__name {
    font-size: 12px;
    font-weight: 500;
    color: #382D2E;
    width: 110px;
    flex-shrink: 0;
  }

  .ag-trait__bar {
    flex: 1;
    height: 5px;
    background: #F5F3EC;
    position: relative;
    overflow: hidden;
  }
  .ag-trait__bar-fill {
    position: absolute;
    inset: 0;
    background: #A09B5F;
    transform-origin: left;
    transform: scaleX(var(--score, 0.5));
  }

  .ag-trait__score {
    font-size: 11px;
    font-weight: 600;
    color: #382D2E;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
  }

  /* Paradox Mastery, mindre supplerende kort */
  .ag-paradox {
    background: #FFFFFF;
    padding: 18px 22px;
    border: 1px solid rgba(160, 155, 95, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.25s ease;
  }
  .ag-paradox:hover {
    transform: translateY(-2px);
  }

  .ag-paradox__visual {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #E8E4D5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A09B5F;
  }
  .ag-paradox__label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #A09B5F;
    text-transform: uppercase;
    margin: 0 0 2px 0;
  }

  .ag-paradox__title {
    font-size: 13px;
    font-weight: 500;
    color: #382D2E;
    margin: 0 0 1px 0;
  }

  .ag-paradox__sub {
    font-size: 11px;
    font-weight: 300;
    color: #4B4B4D;
    margin: 0;
    line-height: 1.4;
  }

  .ag-paradox__stat {
    flex-shrink: 0;
    text-align: right;
  }
  .ag-paradox__stat-num {
    font-size: 18px;
    font-weight: 300;
    color: #A09B5F;
    line-height: 1;
    display: block;
  }
  .ag-paradox__stat-label {
    font-size: 9px;
    font-weight: 500;
    color: #4B4B4D;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
  }

  /* ============== HØYRE: tekst ============== */
  .ag-engasjement-hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
  }

  .ag-engasjement-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #A09B5F;
    margin: 0;
  }
  .ag-engasjement-hero__eyebrow::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: #A09B5F;
  }

  .ag-engasjement-hero__title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 300;
    color: #382D2E;
    margin: 0;
    letter-spacing: -0.8px;
  }
  .ag-engasjement-hero__title-accent {
    color: #A09B5F;
    font-weight: 500;
    font-style: italic;
  }

  .ag-engasjement-hero__support {
    font-size: 19px;
    line-height: 1.6;
    font-weight: 300;
    color: #4B4B4D;
    margin: 0;
    max-width: 540px;
  }
  .ag-engasjement-hero__support strong {
    color: #382D2E;
    font-weight: 500;
  }

  .ag-engasjement-hero__cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 4px;
    flex-wrap: wrap;
  }

  .ag-engasjement-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: #382D2E;
    color: #F5F3EC !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .ag-engasjement-hero__cta:hover,
  .ag-engasjement-hero__cta:focus,
  .ag-engasjement-hero__cta:visited {
    background: #A09B5F;
    color: #F5F3EC !important;
    transform: translateY(-2px);
    text-decoration: none !important;
  }
  .ag-engasjement-hero__cta-arrow {
    transition: transform 0.25s ease;
  }
  .ag-engasjement-hero__cta:hover .ag-engasjement-hero__cta-arrow {
    transform: translateX(4px);
  }

  .ag-engasjement-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #382D2E !important;
    text-decoration: none !important;
    border-bottom: 1.5px solid #A09B5F;
    padding-bottom: 4px;
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .ag-engasjement-hero__link:hover,
  .ag-engasjement-hero__link:focus,
  .ag-engasjement-hero__link:visited {
    color: #A09B5F !important;
    border-color: #382D2E;
    text-decoration: none !important;
  }

  /* Meta info */
  .ag-engasjement-hero__meta {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(160, 155, 95, 0.3);
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
  }
  .ag-engasjement-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #4B4B4D;
    letter-spacing: 0.3px;
  }
  .ag-engasjement-hero__meta-icon {
    color: #A09B5F;
    flex-shrink: 0;
  }

  /* ============== RESPONSIVE ============== */
  @media (max-width: 1024px) {
    .ag-engasjement-hero {
      padding: 80px 32px 90px;
    }
    .ag-engasjement-hero::before {
      width: 400px;
      height: 400px;
      top: -150px;
      left: -150px;
    }
    .ag-engasjement-hero__grid {
      grid-template-columns: 1fr;
      gap: 56px;
    }
    .ag-engasjement-hero__title {
      font-size: 44px;
      letter-spacing: -0.5px;
    }
    .ag-engasjement-hero__support {
      font-size: 18px;
    }
    .ag-engasjement-hero__eyebrow {
      font-size: 22px;
    }
    /* Profilen flyttes under tekst på mindre skjermer */
    .ag-profile {
      order: 2;
    }
    .ag-engasjement-hero__content {
      order: 1;
    }
  }

  @media (max-width: 600px) {
    .ag-engasjement-hero {
      padding: 56px 20px 64px;
    }
    .ag-engasjement-hero::before {
      width: 280px;
      height: 280px;
      top: -100px;
      left: -100px;
    }
    .ag-engasjement-hero__grid {
      gap: 40px;
    }
    .ag-engasjement-hero__eyebrow {
      font-size: 20px;
      letter-spacing: 4px;
    }
    .ag-engasjement-hero__title {
      font-size: 32px;
      letter-spacing: -0.3px;
    }
    .ag-engasjement-hero__support {
      font-size: 16px;
    }
    .ag-engasjement-hero__cta {
      padding: 16px 24px;
      font-size: 15px;
    }
    .ag-engasjement-hero__cta-row {
      gap: 16px;
    }
    .ag-engasjement-hero__meta {
      gap: 16px 24px;
    }
    .ag-profile__card {
      padding: 24px 20px 20px;
    }
    .ag-trait__name {
      width: 90px;
      font-size: 11px;
    }
    .ag-trait__score {
      font-size: 10px;
    }
    .ag-profile__match-num {
      font-size: 24px;
    }
    .ag-paradox {
      padding: 16px 18px;
      gap: 12px;
    }
  }


/* --- widget 0 --- */

.ag-engasjement-hero{background:#1C1B18 url(/wp-content/uploads/2026/05/K2A2159-scaled.jpg) no-repeat center left/cover;}
.ag-engasjement-hero::before{display:none;}
.ag-engasjement-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(to left, rgba(28,27,24,0.95) 0%, rgba(28,27,24,0.90) 35%, rgba(28,27,24,0.72) 65%, rgba(28,27,24,0.42) 100%), radial-gradient(ellipse 40% 60% at 90% 80%, rgba(196,114,42,0.10) 0%, transparent 60%);pointer-events:none;}
.ag-engasjement-hero__inner{position:relative;z-index:1;}
.ag-engasjement-hero__eyebrow{color:#C1BC91;}
.ag-engasjement-hero__title{color:#F5F3EC;}
.ag-engasjement-hero__title-accent{color:#C1BC91;}
.ag-engasjement-hero__support{color:rgba(245,243,236,0.82);}
.ag-engasjement-hero__support strong,.ag-engasjement-hero__support b{color:#F5F3EC;}
.ag-engasjement-hero__title,.ag-engasjement-hero__support{text-shadow:0 1px 24px rgba(28,27,24,0.45);}
.ag-engasjement-hero__cta{background:#A09B5F;}
.ag-engasjement-hero__cta:hover,.ag-engasjement-hero__cta:focus{background:#C1BC91;color:#382D2E !important;}
.ag-engasjement-hero__link{color:#F5F3EC;}
.ag-engasjement-hero__meta{border-top-color:rgba(245,243,236,0.35);}
.ag-engasjement-hero__meta-item{color:rgba(245,243,236,0.82);}
.ag-profile__card{background:rgba(255,255,255,0.62);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
.ag-paradox{background:rgba(255,255,255,0.60);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
/* assessio-palett */
.ag-profile__card{border-radius:14px;}
.ag-paradox{border-radius:14px;}
.ag-profile__match-num{color:#382D2E;}
.ag-profile__section-title{color:#5E6650;}
.ag-trait__bar{background:#EBE3D5;border-radius:99px;overflow:hidden;}
.ag-trait__bar-fill{background:#7A8266;border-radius:99px;}
.ag-paradox__visual{color:#5E6650;}
.ag-paradox__label{color:#5E6650;}
.ag-paradox__stat-num{color:#382D2E;}


/* --- widget 1 --- */

  .ageri-stats-2 {
    container-type: inline-size;
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #353535;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(40px, 5vw, 80px) clamp(24px, 4vw, 64px);
    background: transparent;
  }

  .ageri-stats-2 .eyebrow {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09B5F;
    margin: 0 0 clamp(14px, 1.5vw, 24px) 0;
    display: block;
  }

  .ageri-stats-2 h2 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.15;
    margin: 0 0 clamp(16px, 1.8vw, 28px) 0;
    color: #353535;
    letter-spacing: -0.02em;
    max-width: 22em;
  }

  .ageri-stats-2__lead {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
    color: #5f5e5a;
    margin: 0 0 clamp(36px, 4vw, 56px) 0;
    max-width: 38em;
  }

  .ageri-stats-2__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.5vw, 36px);
    margin: 0 0 clamp(20px, 2vw, 28px) 0;
  }

  .ageri-stats-2__card {
    padding: clamp(20px, 2vw, 28px) 0 0 0;
    border-top: 3px solid #A09B5F;
    text-align: left;
  }

  .ageri-stats-2__num {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 300;
    color: #A09B5F;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 clamp(14px, 1.6vw, 22px) 0;
  }

  .ageri-stats-2__label {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 500;
    color: #353535;
    line-height: 1.3;
    margin: 0 0 clamp(8px, 1vw, 12px) 0;
    letter-spacing: -0.01em;
  }

  .ageri-stats-2__sub {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 300;
    color: #5f5e5a;
    line-height: 1.45;
    margin: 0;
  }

  .ageri-stats-2__source {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 0.9vw, 13px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #A09B5F;
    margin: clamp(20px, 2vw, 32px) 0 0 0;
    text-transform: uppercase;
  }

  /* Pad: 2x2 */
  @media (max-width: 900px) {
    .ageri-stats-2__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: clamp(28px, 3vw, 40px);
    }
  }

  /* Mobil: 1 kolonne */
  @media (max-width: 500px) {
    .ageri-stats-2 {
      padding-bottom: 0;
    }
    .ageri-stats-2__grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .ageri-stats-2__source {
      margin-top: 20px;
    }

    /* ===========================================================
       FIKS for det tomme rommet under stat-blokkene:

       Elementor-widgeten har 'flex-grow: 1' fra container-flex,
       som tvinger widgeten til å fylle hele høyden av flexboksen.
       Disse reglene tvinger widgeten og dens wrappers til å bare
       være så høye som innholdet krever — ikke fylle resten.
       =========================================================== */
    .elementor-widget:has(> .elementor-widget-container > .ageri-stats-2) {
      flex-grow: 0 !important;
      flex-shrink: 0 !important;
      align-self: flex-start !important;
      height: auto !important;
      min-height: 0 !important;
    }
    .elementor-widget:has(> .elementor-widget-container > .ageri-stats-2) > .elementor-widget-container {
      height: auto !important;
      min-height: 0 !important;
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
    .ageri-stats-2 {
      height: auto !important;
      min-height: 0 !important;
    }
  }


/* --- widget 2 --- */

  .ag-pcw2 {
    container-type: inline-size;
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #353535;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px) clamp(28px, 4vw, 72px);
    background: transparent;
    border-left: 3px solid #A09B5F;
  }
  .ag-pcw2::before {
    content: "";
    position: absolute;
    top: clamp(24px, 2.5vw, 36px);
    right: clamp(28px, 3vw, 48px);
    width: clamp(36px, 3.5vw, 56px);
    height: 2px;
    background-color: #A09B5F;
  }
  .ag-pcw2 .eyebrow {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09B5F;
    margin: 0 0 clamp(14px, 1.5vw, 24px) 0;
  }
  .ag-pcw2 h2 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 4.5vw, 60px);
    line-height: 1.15;
    margin: 0 0 clamp(20px, 2.5vw, 36px) 0;
    color: #353535;
    letter-spacing: -0.02em;
  }
  .ag-pcw2 p {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.55;
    margin: 0 0 clamp(16px, 1.6vw, 24px) 0;
    color: #353535;
  }

  /* Stat-blokk i to kolonner */
  .ag-pcw2 .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 48px);
    margin: clamp(24px, 3vw, 40px) 0;
    padding: clamp(20px, 2.4vw, 32px) 0;
    border-top: 1px solid rgba(160, 155, 95, 0.4);
    border-bottom: 1px solid rgba(160, 155, 95, 0.4);
  }
  .ag-pcw2 .stat-num {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 300;
    color: #A09B5F;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 clamp(6px, 0.8vw, 10px) 0;
  }
  .ag-pcw2 .stat-label {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 400;
    color: #5f5e5a;
    line-height: 1.4;
    margin: 0;
  }

  /* Pull-quote */
  .ag-pcw2 .pullquote {
    font-family: "Libre Franklin", sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.35;
    color: #382D2E;
    margin: clamp(24px, 3vw, 40px) 0;
    padding-left: clamp(20px, 2.4vw, 36px);
    border-left: 2px solid #A09B5F;
  }

  @media (max-width: 600px) {
    .ag-pcw2 .stats {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }

  @media (max-width: 480px) {
    .ag-pcw2::before {
      display: none;
    }
    .ag-pcw2 {
      border-left-width: 2px;
    }
  }


/* --- widget 3 --- */

  .ag-traits-wrap {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c2c2a;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }

  /* Seksjons-overskrift (lysegrå-blå bånd) */
  .ag-traits-section-header {
    background: #dae6ee;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #2c2c2a;
  }

  .ag-traits-section-header strong {
    font-weight: 600;
    color: #1a1a1a;
  }

  .ag-traits-section-header .subtitle {
    font-weight: 400;
    color: #444;
  }

  /* Tabell-grid */
  .ag-traits-table {
    display: grid;
    grid-template-columns: 200px 60px 1fr;
    column-gap: 18px;
    row-gap: 8px;
    align-items: center;
    margin-bottom: 28px;
  }

  /* Kolonneoverskrifter */
  .ag-traits-th {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 4px 0 6px 0;
  }

  /* Trait-celle med farge og avrundede hjørner */
  .ag-trait-cell {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
  }

  .ag-trait-green { background: #b8e0c4; }
  .ag-trait-blue  { background: #b8dceb; }
  .ag-trait-none  { background: transparent; padding-left: 14px; }

  /* Score-kolonne */
  .ag-trait-score {
    font-size: 13px;
    font-weight: 400;
    color: #2c2c2a;
    text-align: left;
  }

  /* Beskrivelses-kolonne */
  .ag-trait-desc {
    font-size: 13px;
    font-weight: 400;
    color: #444441;
    line-height: 1.4;
  }

  /* Responsivt: smaller skjerm */
  @media (max-width: 768px) {
    .ag-traits-table {
      grid-template-columns: 150px 50px 1fr;
      column-gap: 12px;
    }
    .ag-trait-cell,
    .ag-trait-score,
    .ag-trait-desc {
      font-size: 12px;
    }
  }

  @media (max-width: 480px) {
    .ag-traits-section-header {
      font-size: 13px;
    }
    .ag-traits-table {
      grid-template-columns: 120px 42px 1fr;
      column-gap: 10px;
    }
    .ag-trait-cell {
      padding: 6px 10px;
      font-size: 11px;
    }
    .ag-trait-score,
    .ag-trait-desc {
      font-size: 11px;
    }
  }


/* --- widget 4 --- */

  .ag-pcw4 {
    container-type: inline-size;
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #353535;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px) clamp(28px, 4vw, 72px);
    background: transparent;
    border-left: 3px solid #A09B5F;
  }
  .ag-pcw4::before {
    content: "";
    position: absolute;
    top: clamp(24px, 2.5vw, 36px);
    right: clamp(28px, 3vw, 48px);
    width: clamp(36px, 3.5vw, 56px);
    height: 2px;
    background-color: #A09B5F;
  }
  .ag-pcw4 .eyebrow {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09B5F;
    margin: 0 0 clamp(14px, 1.5vw, 24px) 0;
  }
  .ag-pcw4 h2 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(26px, 3.8vw, 48px);
    line-height: 1.2;
    margin: 0 0 clamp(20px, 2.5vw, 36px) 0;
    color: #353535;
    letter-spacing: -0.02em;
  }
  .ag-pcw4 p {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.55;
    margin: 0 0 clamp(20px, 2vw, 32px) 0;
    color: #353535;
  }
  .ag-pcw4 .pairs {
    display: flex;
    flex-direction: column;
    margin: 0 0 clamp(28px, 3vw, 44px) 0;
  }
  .ag-pcw4 .pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(16px, 2vw, 32px);
    align-items: center;
    padding: clamp(16px, 1.8vw, 24px) 0;
    border-bottom: 1px solid rgba(160, 155, 95, 0.25);
  }
  .ag-pcw4 .pair:first-child {
    border-top: 1px solid rgba(160, 155, 95, 0.25);
  }
  .ag-pcw4 .pair-side {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 300;
    color: #353535;
    line-height: 1.4;
  }
  .ag-pcw4 .pair-side.right {
    text-align: right;
  }
  .ag-pcw4 .pair-vs {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 500;
    color: #A09B5F;
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }
  .ag-pcw4 .closer {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.55;
    color: #5f5e5a;
    margin: 0;
  }
  @media (max-width: 600px) {
    .ag-pcw4 .pair {
      grid-template-columns: 1fr;
      gap: 6px;
      text-align: left;
    }
    .ag-pcw4 .pair-side.right { text-align: left; }
    .ag-pcw4 .pair-vs { justify-self: start; }
  }
  @media (max-width: 480px) {
    .ag-pcw4::before { display: none; }
    .ag-pcw4 { border-left-width: 2px; }
  }


/* --- widget 5 --- */

  .ag-traits-wrap {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c2c2a;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }

  /* Seksjons-overskrift (samme som Life Themes) */
  .ag-traits-section-header {
    background: #dae6ee;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #2c2c2a;
  }

  .ag-traits-section-header strong {
    font-weight: 600;
    color: #1a1a1a;
  }

  .ag-traits-section-header .subtitle {
    font-weight: 400;
    color: #444;
  }

  /* Tabell-grid */
  .ag-traits-table {
    display: grid;
    grid-template-columns: 200px 60px 1fr;
    column-gap: 18px;
    row-gap: 8px;
    align-items: center;
    margin-bottom: 28px;
  }

  /* Kolonneoverskrifter med lyseblå bakgrunn */
  .ag-traits-th {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 8px 14px;
    background: #dae6ee;
    border-radius: 6px;
  }

  /* Trait-celle med farge og avrundede hjørner */
  .ag-trait-cell {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
  }

  .ag-trait-green { background: #b8e0c4; }
  .ag-trait-blue  { background: #b8dceb; }
  .ag-trait-none  { background: transparent; padding-left: 14px; }

  /* Score-kolonne */
  .ag-trait-score {
    font-size: 13px;
    font-weight: 400;
    color: #2c2c2a;
    text-align: left;
  }

  /* Beskrivelses-kolonne */
  .ag-trait-desc {
    font-size: 13px;
    font-weight: 400;
    color: #444441;
    line-height: 1.4;
  }

  /* Responsivt */
  @media (max-width: 768px) {
    .ag-traits-table {
      grid-template-columns: 150px 50px 1fr;
      column-gap: 12px;
    }
    .ag-traits-th,
    .ag-trait-cell,
    .ag-trait-score,
    .ag-trait-desc {
      font-size: 12px;
    }
  }

  @media (max-width: 480px) {
    .ag-traits-section-header {
      font-size: 13px;
    }
    .ag-traits-table {
      grid-template-columns: 120px 42px 1fr;
      column-gap: 10px;
    }
    .ag-traits-th {
      padding: 6px 10px;
    }
    .ag-trait-cell {
      padding: 6px 10px;
      font-size: 11px;
    }
    .ag-trait-score,
    .ag-trait-desc {
      font-size: 11px;
    }
  }


/* --- widget 6 --- */

  .ag-pcw6 {
    container-type: inline-size;
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #353535;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px) clamp(28px, 4vw, 72px);
    background: transparent;
    border-left: 3px solid #A09B5F;
  }

  .ag-pcw6::before {
    content: "";
    position: absolute;
    top: clamp(24px, 2.5vw, 36px);
    right: clamp(28px, 3vw, 48px);
    width: clamp(36px, 3.5vw, 56px);
    height: 2px;
    background-color: #A09B5F;
  }

  .ag-pcw6 .eyebrow {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09B5F;
    margin: 0 0 clamp(14px, 1.5vw, 24px) 0;
  }

  .ag-pcw6 h2 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 4.5vw, 60px);
    line-height: 1.15;
    margin: 0 0 clamp(20px, 2.5vw, 36px) 0;
    color: #353535;
    letter-spacing: -0.02em;
  }

  .ag-pcw6 p {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2vw, 28px);
    line-height: 1.5;
    margin: 0 0 clamp(16px, 1.6vw, 24px) 0;
    color: #353535;
  }

  @media (max-width: 480px) {
    .ag-pcw6::before {
      display: none;
    }
    .ag-pcw6 {
      border-left-width: 2px;
    }
  }


/* --- widget 7 --- */

  .ag-expect-wrap {
    font-family: 'Libre Franklin', sans-serif;
    background: transparent;
    padding: 8px;
    box-sizing: border-box;
    width: 100%;
  }

  /* Mer vertikal luft mellom tekst-introene (.ag-pcw*) og grafikk-seksjonene
     (tabeller + Expectations-kort), så grafikken ikke klistrer mot teksten
     over/under. Side-scopet: engasjement.css lastes kun på denne siden. */
  .ag-traits-wrap,
  .ag-expect-wrap {
    margin-block: clamp(32px, 5vw, 64px);
  }
  .ag-expect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ag-expect-card {
    background: #ffffff;
    border: 1px solid #e5e3de;
    border-radius: 16px;
    padding: 24px 28px;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }
  .ag-expect-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .ag-expect-title {
    font-size: 13px;
    font-weight: 600;
    color: #888780;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1 1 auto;
    min-width: 0;
  }
  .ag-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .ag-badge-amber { background: #FAEEDA; color: #633806; }
  .ag-badge-green { background: #EAF3DE; color: #27500A; }
  .ag-badge-none  { background: #f1efe8; color: #888780; }
  .ag-bar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
  }
  .ag-bar-row:last-child { margin-bottom: 0; }
  .ag-bar-label {
    font-size: 13px;
    color: #5f5e5a;
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
    max-width: 50%;
    padding-right: 4px;
  }
  .ag-bar-track {
    flex: 1 1 auto;
    background: #f1efe8;
    border-radius: 6px;
    height: 10px;
    min-width: 40px;
  }
  .ag-bar-fill { height: 10px; border-radius: 6px; }
  .ag-bar-high { background: #185FA5; }
  .ag-bar-mid  { background: #85B7EB; }
  .ag-bar-val {
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2a;
    flex: 0 0 auto;
    min-width: 32px;
    text-align: right;
    padding-left: 4px;
  }

  /* Pad og mobil: én kolonne, full bredde */
  @media (max-width: 900px) {
    .ag-expect-wrap { padding: 0; }
    .ag-expect-grid { grid-template-columns: 1fr; gap: 14px; }
  }

  @media (max-width: 700px) {
    .ag-expect-card { padding: 20px 22px; }
    .ag-bar-label { font-size: 12px; max-width: 45%; }
    .ag-bar-row { gap: 16px; }
  }

  @media (max-width: 420px) {
    .ag-expect-card { padding: 18px 20px; border-radius: 12px; }
    .ag-bar-label { font-size: 11px; max-width: 50%; }
    .ag-bar-val { font-size: 12px; min-width: 28px; }
    .ag-bar-row { gap: 14px; margin-bottom: 12px; }
    .ag-expect-header { gap: 14px; margin-bottom: 16px; }
  }


/* --- widget 8 --- */

  .ag-pcw8 {
    container-type: inline-size;
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #353535;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 64px) clamp(28px, 4vw, 72px);
    background: transparent;
    border-left: 3px solid #A09B5F;
  }

  .ag-pcw8::before {
    content: "";
    position: absolute;
    top: clamp(24px, 2.5vw, 36px);
    right: clamp(28px, 3vw, 48px);
    width: clamp(36px, 3.5vw, 56px);
    height: 2px;
    background-color: #A09B5F;
  }

  .ag-pcw8 .eyebrow {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09B5F;
    margin: 0 0 clamp(14px, 1.5vw, 24px) 0;
  }

  .ag-pcw8 h2 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 4.5vw, 60px);
    line-height: 1.15;
    margin: 0 0 clamp(20px, 2.5vw, 36px) 0;
    color: #353535;
    letter-spacing: -0.02em;
  }

  .ag-pcw8 p {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2vw, 28px);
    line-height: 1.5;
    margin: 0 0 clamp(16px, 1.6vw, 24px) 0;
    color: #353535;
  }

  .ag-pcw8 .divider {
    width: clamp(48px, 5vw, 80px);
    height: 1px;
    background-color: #A09B5F;
    opacity: 0.5;
    margin: clamp(24px, 3vw, 44px) 0 clamp(20px, 2.4vw, 32px) 0;
    border: none;
  }

  .ag-pcw8 ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ag-pcw8 ul li {
    position: relative;
    padding-left: clamp(24px, 2.5vw, 40px);
    margin-bottom: clamp(12px, 1.4vw, 20px);
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2vw, 28px);
    line-height: 1.5;
    color: #353535;
  }

  .ag-pcw8 ul li:last-child {
    margin-bottom: 0;
  }

  .ag-pcw8 ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: clamp(14px, 1.6vw, 24px);
    height: 2px;
    background-color: #A09B5F;
  }

  /* ============== MOBIL ============== */
  @media (max-width: 480px) {
    .ag-pcw8::before {
      display: none;
    }
    .ag-pcw8 {
      border-left-width: 2px;
      padding-bottom: 0;
    }
    .ag-pcw8 .divider {
      margin: 20px 0 16px 0;
    }
    .ag-pcw8 ul li {
      margin-bottom: 10px;
    }

    /* ===========================================================
       VIKTIG FIKS for det tomme rommet etter oliven-linjen:

       Elementor-widgeten har 'flex-grow: 1' fra container-flex,
       som tvinger widgeten til å fylle hele høyden av flexboksen.
       Border-left på kortet følger denne høyden.

       Disse reglene tvinger widgeten og dens wrappers til å bare
       være så høye som innholdet krever — ikke fylle resten.
       =========================================================== */
    .elementor-widget:has(> .elementor-widget-container > .ag-pcw8) {
      flex-grow: 0 !important;
      flex-shrink: 0 !important;
      align-self: flex-start !important;
      height: auto !important;
      min-height: 0 !important;
    }
    .elementor-widget:has(> .elementor-widget-container > .ag-pcw8) > .elementor-widget-container {
      height: auto !important;
      min-height: 0 !important;
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
    .ag-pcw8 {
      height: auto !important;
      min-height: 0 !important;
    }
  }


/* --- widget 10 --- */

.ageri-choose{background:#382D2E;}
.ageri-choose__inner{max-width:1000px;margin:0 auto;padding:74px 20px;font-family:inherit;}
.ageri-choose__head{text-align:center;margin-bottom:38px;}
.ageri-choose__eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:17px;color:#C1BC91;font-weight:700;margin:0 0 14px;}
.ageri-choose__title{font-size:33px;line-height:1.2;margin:0;color:#F5F3EC;}
.ageri-choose__grid{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch;}
.ageri-choose__card{flex:1 1 320px;display:flex;flex-direction:column;background:#E8E4D5;border-radius:14px;padding:36px 30px;text-align:center;box-shadow:0 12px 34px rgba(0,0,0,.25);}
.ageri-choose__card h3{font-size:22px;margin:0 0 10px;color:#382D2E;}
.ageri-choose__card p{font-size:16px;color:#4B4B4D;margin:0 0 26px;line-height:1.5;flex:1;}

/* Knappe-stat-komplettering (CodeRabbit): eksplisitt :active + -webkit-text-fill-color
   på hero-CTA-en, som ellers manglet dem. Vinner deterministisk over widget-
   overstyringene over. Inverterer (lys flate → mørkere tekst) som resten. */
.ag-engasjement-hero__cta {
	-webkit-text-fill-color: #F5F3EC;
}
.ag-engasjement-hero__cta:hover,
.ag-engasjement-hero__cta:focus,
.ag-engasjement-hero__cta:active {
	background: #C1BC91;
	color: #382D2E !important;
	-webkit-text-fill-color: #382D2E;
}
