/* Maayan | Principal letter closing (mpc-) | 2026-11-19
   Scoped to #nice-to-meet .pw-close > .mpc-close only. No global resets.
   Palette/fonts = site tokens: navy #1b4285, ink #1d3d5f, teal #246c89 / #328794, pale #fffbec,
   aqua #44d1ce, orange #ff8545, lime #daf14b. Fonts: Ploni (body), MaayanGeula (quote). */

/* 1) the host .pw-close: only when the component is inside it (via :has) - replace the hard rule line with the spring flow */
html body #nice-to-meet#nice-to-meet.pw-word .pw-close:has(>.mpc-close){display:block;grid-column:1/-1;margin-top:56px;padding-top:0;border-top:0}

/* 2) component root + local tokens */
html body #nice-to-meet#nice-to-meet.pw-word .mpc-close{
  --mpc-navy:var(--pw-navy,#1b4285);--mpc-ink:var(--pw-ink,#1d3d5f);--mpc-teal:#328794;--mpc-pale:var(--pw-pale,#fffbec);
  --mpc-aqua:var(--pw-aqua,#44d1ce);--mpc-orange:var(--pw-orange,#ff8545);--mpc-lime:var(--pw-lime,#daf14b);
  position:relative;isolation:isolate;direction:rtl;text-align:right;font-family:Ploni,Arial,sans-serif;color:var(--mpc-ink)}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-close *{box-sizing:border-box}

/* 3) flow from the letter body: a soft line that "opens" into spring ripples */
html body #nice-to-meet#nice-to-meet.pw-word .mpc-flow{display:flex;align-items:center;gap:18px;margin:0 0 44px;pointer-events:none}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-flow:before,
html body #nice-to-meet#nice-to-meet.pw-word .mpc-flow:after{content:"";flex:1 1 0;height:2px;border-radius:2px}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-flow:before{background:linear-gradient(to left,#44d1ce00,#44d1ce99)}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-flow:after{background:linear-gradient(to right,#44d1ce00,#44d1ce99)}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-drop{flex:0 0 auto;position:relative;width:58px;height:58px;border-radius:50%;
  background:radial-gradient(circle,var(--mpc-orange) 0 6px,transparent 7px),repeating-radial-gradient(circle,transparent 0 11px,#44d1ce 11px 13px,transparent 13px 20px);opacity:.95}

/* 4) the quote: big Geula words, orange opening mark, spring ripples behind it - no card, no box */
html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote{position:relative;margin:0 auto 56px!important;padding:0 clamp(72px,8vw,112px) 0 0!important;max-width:980px;border:0!important;background:none!important;quotes:none}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote:before{content:"";position:absolute;z-index:-1;top:-74px;inset-inline-start:-90px;width:260px;height:260px;border-radius:50%;pointer-events:none;
  background:repeating-radial-gradient(circle,transparent 0 30px,#44d1ce30 30px 32px);-webkit-mask:radial-gradient(circle,#000 35%,transparent 70%);mask:radial-gradient(circle,#000 35%,transparent 70%)}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote:after{content:"\201D";position:absolute;top:-6px;inset-inline-start:0;width:clamp(56px,6vw,86px);height:clamp(56px,6vw,86px);border-radius:50%;
  background:var(--mpc-orange);color:#fff;font-family:MaayanGeula,Ploni,serif;font-weight:900;font-size:clamp(64px,7vw,100px);line-height:1.15;text-align:center;overflow:hidden;box-shadow:0 10px 24px #ff854533}
/* p stays Ploni so its line-height is the strut (the site's typography JS forces .8 only on Geula elements) */
html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote-text{margin:0!important;font-family:Ploni,Arial,sans-serif!important;font-size:clamp(30px,3.35vw,48px)!important;line-height:1.3!important;color:var(--mpc-navy)!important;text-align:right!important;max-width:none!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote-ink{font-family:MaayanGeula,Ploni,sans-serif;font-weight:900;color:var(--mpc-navy)}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote-mark{position:relative;color:var(--mpc-teal);
  background:linear-gradient(transparent 64%,var(--mpc-lime) 64% 88%,transparent 88%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:4px}

/* 5) foot: invitation + greeting on the reading side, sign-off on the other side - sharing one baseline area */
html body #nice-to-meet#nice-to-meet.pw-word .mpc-foot{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px clamp(40px,6vw,96px);align-items:end;max-width:980px;margin:0 auto}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-words{position:relative;padding-inline-start:26px;border-inline-start:3px solid #44d1ce66}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-invite{margin:0!important;font-family:Ploni,Arial,sans-serif!important;font-size:20px!important;line-height:1.7!important;color:var(--mpc-ink)!important;text-align:right!important;max-width:520px!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-bye{margin:20px 0 0!important;font-family:Ploni,Arial,sans-serif!important;font-size:21px!important;font-weight:700!important;line-height:1.4!important;color:var(--mpc-navy)!important;text-align:right!important}

/* 6) sign-off: the ORIGINAL signature element (unchanged markup/SVG) sitting on a lime "sun" - same shapes as the portrait */
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff{position:relative;justify-self:end;padding:22px 0 0 0;min-width:0;max-width:100%}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-sun{position:absolute;z-index:-1;top:0;inset-inline-end:-18px;width:118px;height:118px;border-radius:50%;background:var(--mpc-lime);opacity:.85;pointer-events:none}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;justify-self:auto!important;align-self:auto!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink{width:260px!important;max-width:100%!important;overflow:visible!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink svg{display:block!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-id{display:flex!important;flex-direction:row!important;align-items:baseline!important;flex-wrap:wrap;gap:4px 12px!important;padding:12px 0 0!important;border:0!important;border-top:2px solid #32879440!important;align-self:stretch}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-id strong{display:inline!important;color:var(--mpc-navy)!important;font-size:22px!important;font-weight:700!important;line-height:1.3!important;margin:0!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-id span{display:inline!important;color:var(--mpc-teal)!important;font-size:17px!important;line-height:1.3!important}

/* 7) tablet / mobile: one calm column, generous reading size, signature never cropped */
@media (max-width:820px){
  html body #nice-to-meet#nice-to-meet.pw-word .pw-close:has(>.mpc-close){margin-top:40px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-flow{margin-bottom:34px;gap:12px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-drop{width:46px;height:46px;background:radial-gradient(circle,var(--mpc-orange) 0 5px,transparent 6px),repeating-radial-gradient(circle,transparent 0 9px,#44d1ce 9px 11px,transparent 11px 16px)}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote{padding:62px 0 0!important;margin-bottom:40px!important}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote:before{top:-60px;inset-inline-start:-70px;width:200px;height:200px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote:after{top:0;width:48px;height:48px;font-size:58px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-quote-text{font-size:clamp(25px,7vw,34px)!important;line-height:1.32!important}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-foot{grid-template-columns:1fr;gap:34px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-words{padding-inline-start:18px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-invite{font-size:18px!important;line-height:1.7!important}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-bye{font-size:19px!important;margin-top:16px!important}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff{justify-self:start;padding-top:18px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-sun{width:96px;height:96px;inset-inline-end:auto;inset-inline-start:-14px}
  html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink{width:min(240px,100%)!important}
}

html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink .hwsig-ink{stroke:#1b4285!important}
html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink svg{color:#1b4285!important}html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink svg path[stroke]{stroke:#1b4285!important}html body #nice-to-meet#nice-to-meet.pw-word .mpc-signoff .pw-sign-ink svg path[fill]:not([fill="none"]){fill:#1b4285!important}
