

  /* ===== ROOT / EDITABLE SETTINGS ======================== */
  #wwep-tm.wwep-tm{
    --wwep-tm-image: url("https://pjhestateplanning.co.uk/wp-content/uploads/2026/08/PJH-Testimonial-Wiltshire-and-Somerset.png.webp");
    --wwep-radius: clamp(22px, 3vw, 40px);
    --wwep-gutter: clamp(12px, 3vw, 32px);
    --wwep-font: "Poppins","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;
    --wwep-ink: #0f2133;                          /* main text colour (dark navy) */
    --wwep-muted: rgba(15,33,51,.6);              /* secondary text */
    --wwep-border: rgba(15,33,51,.12);
    --wwep-accent: #3f9c8c;
    --wwep-accent-deep: #164d46;
    --wwep-accent-text: #1f7a6c;                  /* darker teal, readable on white */

    position:relative !important;
    display:block !important;
    margin:var(--wwep-gutter) !important;
    padding:0 !important;
    width:auto !important;
    max-width:100% !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    isolation:isolate;
    font-family:var(--wwep-font) !important;
    font-size:16px !important;
    color:var(--wwep-ink) !important;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  /* ===== SCOPED RESET (beats theme CSS) ================= */
  #wwep-tm.wwep-tm *,
  #wwep-tm.wwep-tm *::before,
  #wwep-tm.wwep-tm *::after{
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:0;
    background:none !important;
    box-shadow:none !important;
    text-shadow:none !important;
    text-decoration:none !important;
    text-transform:none !important;
    letter-spacing:normal !important;
    list-style:none !important;
    float:none !important;
    max-width:100%;
    min-width:0;
    font-family:var(--wwep-font) !important;
    font-style:normal !important;
    color:inherit !important;
    -webkit-text-fill-color:currentColor !important;
    line-height:1.4;
    transform:none;
    transition:none;
    animation:none;
    filter:none;
    opacity:1;
  }
  #wwep-tm.wwep-tm img,
  #wwep-tm.wwep-tm svg{display:block;max-width:100%;height:auto;}

  /* ===== ENTRANCE (staggered fade/rise) ================ */
  #wwep-tm.wwep-tm .wwep-tm__media,
  #wwep-tm.wwep-tm .wwep-tm__content > *{
    animation:wwep-tm-in .8s cubic-bezier(.2,.7,.2,1) both;
  }
  #wwep-tm.wwep-tm .wwep-tm__content > :nth-child(2){animation-delay:.08s;}
  #wwep-tm.wwep-tm .wwep-tm__content > :nth-child(3){animation-delay:.16s;}
  #wwep-tm.wwep-tm .wwep-tm__content > :nth-child(4){animation-delay:.24s;}
  @media (prefers-reduced-motion:reduce){
    #wwep-tm.wwep-tm .wwep-tm__media,
    #wwep-tm.wwep-tm .wwep-tm__content > *{animation:none !important;}
  }
  @keyframes wwep-tm-in{
    from{opacity:0; transform:translateY(14px);}
    to{opacity:1; transform:translateY(0);}
  }

  /* ===== LAYOUT (desktop) ============================== */
  #wwep-tm.wwep-tm .wwep-tm__frame{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,0.8fr) minmax(0,1.2fr) !important;
    gap:clamp(32px,5vw,72px) !important;
    align-items:center !important;
    padding:clamp(28px,4vw,56px) !important;
    border:1.5px solid var(--wwep-border) !important;
    border-radius:var(--wwep-radius) !important;
    box-shadow:0 30px 70px -40px rgba(15,33,51,.22) !important;
    overflow:hidden !important;
  }
  /* soft teal glow behind the content — decoration only */
  #wwep-tm.wwep-tm .wwep-tm__frame::before{
    content:"" !important;
    position:absolute !important;
    z-index:-1 !important;
    right:-15% !important; top:-30% !important;
    width:60% !important; aspect-ratio:1 !important;
    border-radius:50% !important;
    background:radial-gradient(closest-side, rgba(63,156,140,.16), transparent) !important;
    pointer-events:none !important;
  }

  /* ===== PHOTO PANEL ================================== */
  /* the photo fills the whole panel edge to edge; it's scaled up slightly
     so any rounded / transparent corners baked into the image are cropped off */
  #wwep-tm.wwep-tm .wwep-tm__media{
    position:relative !important;
    padding:0 !important;
    border-radius:clamp(18px,2.4vw,26px) !important;
    aspect-ratio:4/5 !important;
    overflow:hidden !important;
    background:none !important;
    isolation:isolate;
  }
  #wwep-tm.wwep-tm .wwep-tm__media-inner{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    border-radius:0 !important;
    background:var(--wwep-tm-image) center/cover no-repeat !important;
    transform:scale(1.08);
  }

  /* ===== CONTENT ======================================= */
  #wwep-tm.wwep-tm .wwep-tm__content{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    gap:clamp(18px,2vw,24px) !important;
    max-width:60ch !important;
  }
  #wwep-tm.wwep-tm .wwep-tm__headline{
    font-size:clamp(1.65rem, 1.1rem + 1.9vw, 2.6rem) !important;
    font-weight:600 !important;
    line-height:1.18 !important;
    letter-spacing:-.015em !important;
    color:var(--wwep-ink) !important;
    text-wrap:balance;
  }
  #wwep-tm.wwep-tm .wwep-tm__headline em{
    color:var(--wwep-accent-text) !important;
  }
  #wwep-tm.wwep-tm .wwep-tm__body{
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
  }
  #wwep-tm.wwep-tm .wwep-tm__body p{
    font-size:clamp(.98rem, .94rem + .2vw, 1.06rem) !important;
    line-height:1.75 !important;
    color:rgba(15,33,51,.72) !important;
    text-wrap:pretty;
  }
  #wwep-tm.wwep-tm .wwep-tm__body .wwep-tm__callout{
    padding:4px 0 4px 18px !important;
    border-left:3px solid var(--wwep-accent) !important;
    font-weight:500 !important;
    color:var(--wwep-ink) !important;
  }

  /* attribution */
  #wwep-tm.wwep-tm .wwep-tm__sig{
    display:flex !important;
    flex-direction:column !important;
    gap:2px !important;
    padding-top:20px !important;
    border-top:1px solid var(--wwep-border) !important;
  }
  #wwep-tm.wwep-tm .wwep-tm__name{
    font-size:1.05rem !important;
    font-weight:700 !important;
    color:var(--wwep-ink) !important;
  }
  #wwep-tm.wwep-tm .wwep-tm__place{
    font-size:.85rem !important;
    font-weight:500 !important;
    color:var(--wwep-muted) !important;
  }

  /* =====================================================
     TABLET / PHONE (<= 980px)
     content stays in the bordered card; photo drops below
     ===================================================== */
  @media (max-width:980px){
    #wwep-tm.wwep-tm .wwep-tm__frame{
      display:flex !important;
      flex-direction:column !important;
      gap:clamp(18px,5vw,30px) !important;
      padding:0 !important;
      border:0 !important;
      border-radius:0 !important;
      box-shadow:none !important;
      overflow:visible !important;
    }
    #wwep-tm.wwep-tm .wwep-tm__frame::before{display:none !important;}
    #wwep-tm.wwep-tm .wwep-tm__content{
      order:1 !important;
      max-width:none !important;
      padding:clamp(28px,7vw,48px) clamp(22px,6vw,40px) !important;
      border:1.5px solid var(--wwep-border) !important;
      border-radius:var(--wwep-radius) !important;
    }
    #wwep-tm.wwep-tm .wwep-tm__media{
      order:2 !important;
      width:100% !important;
      max-width:420px !important;
      border-radius:16px !important;
      margin:0 auto !important;
    }
  }

  /* ===== PHONE (<= 600px) ============================= */
  @media (max-width:600px){
    #wwep-tm.wwep-tm .wwep-tm__media{display:none !important;}   /* no photo on phones */
    #wwep-tm.wwep-tm .wwep-tm__body .wwep-tm__callout{padding-left:14px !important;}
  }
  