
/* ==========================================================================
   LETTERS OF LOVE — words worth keeping.

   Warm, timeless, restrained. Deep navy type on warm white, with ink-blue,
   soft clay and a muted gold. Deliberately NOT a greeting-card shop: no
   pastel confetti, no script overload, no craft-shop texture. Generous space,
   long line lengths, and serif reserved for the things people actually read.

   PREFIX CHECKED: `lov-` returns zero (`llx-` was taken). Scoped throughout.
   ========================================================================== */
#page-letters-of-love{
  --lov-navy:#1F3054;
  --lov-ink:#3E4B65;
  --lov-clay:#9C6B58;
  --lov-clay-l:#F6EEE9;
  --lov-gold:#8C6A2C;
  --lov-gold-l:#FBF3E3;
  --lov-paper:#FCF9F4;
  --lov-stone:#EFEAE3;
  --lov-sage-l:#EBF0E9;
  --lov-line:#E7E0D6;
  background:#FEFDFB !important;
  font-family:'Nunito',system-ui,-apple-system,sans-serif;
}
#page-letters-of-love .lov-wrap{ max-width:1120px; margin:0 auto; padding:0 clamp(18px,4vw,34px); }
#page-letters-of-love .lov-wrap section{ padding:0 !important; }
#page-letters-of-love .lov-sec{ margin:0 0 clamp(42px,6vw,76px); min-width:0; }
#page-letters-of-love .lov-body{ padding:clamp(20px,3vw,32px) 0 120px; min-width:0; }
#page-letters-of-love .lov-backbar{ max-width:1120px; margin:0 auto;
  padding:14px clamp(18px,4vw,34px) 0; display:flex; gap:10px; flex-wrap:wrap; }
#page-letters-of-love .lov-sr{
  position:absolute !important; width:1px !important; height:1px !important; padding:0 !important;
  margin:-1px !important; overflow:hidden !important; clip:rect(0 0 0 0) !important;
  white-space:nowrap !important; border:0 !important; }

/* ---- type ---------------------------------------------------------------- */
#page-letters-of-love .lov-eb{
  font-size:.7rem; font-weight:800; letter-spacing:.24em; text-transform:uppercase; margin:0 0 12px;
  color:var(--lov-clay) !important; -webkit-text-fill-color:var(--lov-clay) !important; }
#page-letters-of-love .lov-h1{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(2rem,4.6vw,3rem) !important; font-weight:700 !important; line-height:1.1;
  margin:0 0 10px !important; color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-h2{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(1.3rem,2.6vw,1.85rem) !important; font-weight:700 !important; line-height:1.2;
  margin:0 0 6px !important; color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-h3{ font-size:1rem !important; font-weight:800 !important; margin:0 !important;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-tag{
  font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.05rem,2vw,1.3rem);
  font-style:italic; margin:0 0 14px;
  color:var(--lov-clay) !important; -webkit-text-fill-color:var(--lov-clay) !important; }
#page-letters-of-love .lov-lead{ margin:0; font-size:1rem; line-height:1.78; max-width:60ch;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important; }
#page-letters-of-love .lov-note{ margin:12px 0 0; font-size:.81rem; line-height:1.7;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important; }
#page-letters-of-love .lov-hrow{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin:0 0 20px; }

/* ---- buttons -------------------------------------------------------------- */
#page-letters-of-love .lov-b, #lovSheet .lov-b{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:50px; padding:14px 22px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.88rem; font-weight:800;
  background:#fff !important; border:1px solid var(--lov-line) !important;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease; }
#page-letters-of-love .lov-b:hover, #lovSheet .lov-b:hover{ background:var(--lov-stone) !important; }
#page-letters-of-love .lov-b.is-navy, #lovSheet .lov-b.is-navy{
  background:var(--lov-navy) !important; border-color:var(--lov-navy) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important; }
#page-letters-of-love .lov-b.is-navy:hover, #lovSheet .lov-b.is-navy:hover{ background:#16233F !important; }
#page-letters-of-love .lov-b.is-sm, #lovSheet .lov-b.is-sm{ min-height:44px; padding:11px 16px; font-size:.81rem; }
#page-letters-of-love .lov-b:focus-visible, #lovSheet .lov-b:focus-visible,
#page-letters-of-love .lov-opt:focus-visible, #page-letters-of-love .lov-card:focus-visible,
#page-letters-of-love .lov-mini:focus-visible{ outline:3px solid #CF9E3F; outline-offset:3px; }
#page-letters-of-love .lov-acts{ display:flex; gap:11px; flex-wrap:wrap; }

/* ---- hero ------------------------------------------------------------------ */
#page-letters-of-love .lov-hero{ padding:clamp(16px,2.6vw,30px) 0 clamp(20px,3vw,34px); }
#page-letters-of-love .lov-primary{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px; margin:26px 0 0; }
#page-letters-of-love .lov-opt{
  border-radius:20px; padding:18px 16px; cursor:pointer; font:inherit; text-align:left; min-width:0;
  background:var(--lov-paper) !important; border:1px solid #EFE6DA !important;
  font-size:.88rem; font-weight:800; min-height:66px;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important;
  transition:transform .16s ease, box-shadow .16s ease; }
#page-letters-of-love .lov-opt:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(31,48,84,.09); }
#page-letters-of-love .lov-opt[aria-pressed="true"]{
  background:var(--lov-navy) !important; border-color:var(--lov-navy) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important; }

/* ---- chips ------------------------------------------------------------------ */
#page-letters-of-love .lov-chips{ display:flex; gap:9px; flex-wrap:wrap; }
#page-letters-of-love .lov-ch{
  min-height:44px; padding:11px 16px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.83rem; font-weight:700;
  background:#fff !important; border:1px solid var(--lov-line) !important;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important; }
#page-letters-of-love .lov-ch:hover{ background:var(--lov-stone) !important; }
#page-letters-of-love .lov-ch[aria-pressed="true"]{
  background:var(--lov-clay) !important; border-color:var(--lov-clay) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important; }

/* ---- writing ----------------------------------------------------------------- */
#page-letters-of-love .lov-step{
  font-size:.7rem; font-weight:800; letter-spacing:.2em; text-transform:uppercase; margin:0 0 10px;
  color:var(--lov-gold) !important; -webkit-text-fill-color:var(--lov-gold) !important; }
#page-letters-of-love .lov-panel{
  background:#fff !important; border:1px solid var(--lov-line) !important; border-radius:26px;
  padding:clamp(20px,3vw,30px); box-shadow:0 3px 18px rgba(31,48,84,.05); }
#page-letters-of-love .lov-panel.is-paper{ background:var(--lov-paper) !important; border-color:#EFE6DA !important; }
#page-letters-of-love .lov-i, #lovSheet .lov-i{
  box-sizing:border-box; width:100%; min-height:50px; padding:13px 17px; border-radius:14px;
  font:inherit; font-size:.95rem; min-width:0;
  background:#fff !important; border:1px solid var(--lov-line) !important;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-write{
  min-height:260px; resize:vertical; line-height:1.9; font-size:1.02rem;
  font-family:'Playfair Display',Georgia,serif !important;
  background:var(--lov-paper) !important; padding:22px 24px !important; border-radius:18px !important; }
#page-letters-of-love .lov-i:focus, #lovSheet .lov-i:focus{ outline:none;
  border-color:var(--lov-clay) !important; box-shadow:0 0 0 3px rgba(156,107,88,.22); }
#page-letters-of-love .lov-fl, #lovSheet .lov-fl{
  display:block; margin:0 0 7px; font-size:.71rem; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important; }
#page-letters-of-love .lov-prompts{ margin:14px 0 0; }
#page-letters-of-love .lov-prompts summary{
  cursor:pointer; font-size:.83rem; font-weight:800; padding:11px 0; min-height:44px;
  display:flex; align-items:center;
  color:var(--lov-clay) !important; -webkit-text-fill-color:var(--lov-clay) !important; }
#page-letters-of-love .lov-prompts ul{ margin:6px 0 0; padding-left:20px; }
#page-letters-of-love .lov-prompts li{ margin:0 0 8px; font-size:.9rem; line-height:1.7;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important; }
#page-letters-of-love .lov-meta{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px; margin:16px 0 0; }

/* ---- letter cards --------------------------------------------------------------- */
#page-letters-of-love .lov-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
#page-letters-of-love .lov-grid.is-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
#page-letters-of-love .lov-card{
  background:#fff !important; border:1px solid var(--lov-line) !important; border-radius:22px;
  padding:22px; box-shadow:0 3px 16px rgba(31,48,84,.05); cursor:pointer; font:inherit;
  display:flex; flex-direction:column; gap:8px; text-align:left; width:100%; min-width:0;
  transition:transform .18s ease, box-shadow .18s ease; }
#page-letters-of-love .lov-card:hover{ transform:translateY(-3px); box-shadow:0 16px 38px rgba(31,48,84,.11); }
#page-letters-of-love .lov-card-k{ font-size:.7rem; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--lov-clay) !important; -webkit-text-fill-color:var(--lov-clay) !important; }
#page-letters-of-love .lov-card-t{
  font-family:'Playfair Display',Georgia,serif; font-size:1.08rem; font-weight:700; line-height:1.3;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-card-d{ font-size:.86rem; line-height:1.65;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }
#page-letters-of-love .lov-card-f{ margin-top:auto; padding-top:12px; font-size:.78rem; font-weight:800;
  color:var(--lov-gold) !important; -webkit-text-fill-color:var(--lov-gold) !important; }
#page-letters-of-love .lov-pill{
  align-self:flex-start; font-size:.7rem; font-weight:800; padding:4px 11px; border-radius:99px;
  background:var(--lov-stone) !important; color:#5A5145 !important; -webkit-text-fill-color:#5A5145 !important; }
#page-letters-of-love .lov-pill.is-private{ background:var(--lov-sage-l) !important;
  color:#3F5237 !important; -webkit-text-fill-color:#3F5237 !important; }
#page-letters-of-love .lov-mini{
  min-height:44px; padding:9px 14px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.77rem; font-weight:800;
  background:#fff !important; border:1px solid var(--lov-line) !important;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important; }
#page-letters-of-love .lov-mini:hover{ background:var(--lov-stone) !important; }
#page-letters-of-love .lov-empty{
  padding:42px 26px; text-align:center; border-radius:22px;
  border:1px dashed #E0D6C6 !important; background:var(--lov-paper) !important; }

/* ---- charity ---------------------------------------------------------------------- */
#page-letters-of-love .lov-charity{
  background:var(--lov-gold-l) !important; border:1px solid #EEE0C4 !important;
  border-radius:28px; padding:clamp(24px,3.5vw,36px); text-align:center; }
#page-letters-of-love .lov-tally{
  font-family:'Playfair Display',Georgia,serif; font-size:clamp(2.2rem,6vw,3.4rem);
  font-weight:700; line-height:1; margin:10px 0 4px;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-tally-l{ font-size:.9rem; font-weight:700;
  color:#6B5427 !important; -webkit-text-fill-color:#6B5427 !important; }
#page-letters-of-love .lov-model{
  display:inline-block; margin:16px 0 0; padding:12px 18px; border-radius:14px;
  background:#fff !important; font-size:.85rem; line-height:1.6; max-width:56ch;
  color:#5A4A2E !important; -webkit-text-fill-color:#5A4A2E !important; }

/* ---- honesty panel ------------------------------------------------------------------ */
#page-letters-of-love .lov-honest, #lovSheet .lov-honest{
  background:var(--lov-clay-l) !important; border-radius:20px; padding:20px 22px;
  font-size:.88rem; line-height:1.72;
  color:#6E4436 !important; -webkit-text-fill-color:#6E4436 !important; }
#page-letters-of-love .lov-honest p, #lovSheet .lov-honest p{ margin:0 0 12px;
  color:#6E4436 !important; -webkit-text-fill-color:#6E4436 !important; }
#page-letters-of-love .lov-honest p:last-child, #lovSheet .lov-honest p:last-child{ margin:0; }

/* ---- timeline -------------------------------------------------------------------------- */
#page-letters-of-love .lov-time{ display:flex; flex-direction:column; gap:0; }
#page-letters-of-love .lov-tl{
  display:flex; gap:18px; padding:0 0 20px; position:relative; }
#page-letters-of-love .lov-tl:before{
  content:''; position:absolute; left:52px; top:24px; bottom:0; width:1px; background:#E4D9C8; }
#page-letters-of-love .lov-tl:last-child:before{ display:none; }
#page-letters-of-love .lov-yr{
  flex:none; width:52px; font-family:'Playfair Display',Georgia,serif; font-size:1rem; font-weight:700;
  color:var(--lov-clay) !important; -webkit-text-fill-color:var(--lov-clay) !important; }
#page-letters-of-love .lov-tl-b{ flex:1; min-width:0; padding-left:16px; }
#page-letters-of-love .lov-tl-t{ font-size:.95rem; font-weight:800; margin:0 0 3px;
  color:var(--lov-navy) !important; -webkit-text-fill-color:var(--lov-navy) !important; }
#page-letters-of-love .lov-tl-d{ font-size:.85rem; line-height:1.6; margin:0;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }

/* ---- sheet -------------------------------------------------------------------------------- */
#lovSheet{
  position:fixed; inset:0; z-index:9550; display:none; align-items:flex-end; justify-content:center;
  background:rgba(20,28,44,.5); font-family:'Nunito',system-ui,sans-serif; }
#lovSheet.is-open{ display:flex; }
#lovSheet .lov-box{
  width:100%; max-width:640px; max-height:calc(100dvh - 40px); overflow-y:auto;
  background:#fff !important; border-radius:28px 28px 0 0; padding:26px clamp(18px,4vw,30px) 34px;
  box-shadow:0 -14px 68px rgba(20,28,44,.3); }
@media (min-width:720px){
  #lovSheet{ align-items:center; padding:16px; }
  #lovSheet .lov-box{ border-radius:28px; padding-bottom:28px; } }
#lovSheet .lov-box-h{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 8px; }
#lovSheet .lov-box-t{
  font-family:'Playfair Display',Georgia,serif !important; font-size:1.3rem !important; font-weight:700 !important;
  margin:0 !important; color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#lovSheet .lov-box-x{
  flex:none; width:44px; height:44px; min-height:44px; border-radius:50%; cursor:pointer; font:inherit; font-size:1.05rem;
  background:#EFEAE3 !important; border:1px solid #E7E0D6 !important;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#lovSheet .lov-box-b{ font-size:.92rem; line-height:1.74;
  color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#lovSheet .lov-box-b > p{ margin:0 0 13px; color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#lovSheet .lov-box-b ul{ margin:0 0 13px; padding-left:20px; }
#lovSheet .lov-box-b li{ margin:0 0 6px; }
#lovSheet .lov-k{
  font-size:.66rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase; margin:17px 0 5px;
  color:#9C6B58 !important; -webkit-text-fill-color:#9C6B58 !important; }
#lovSheet .lov-box-f{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin:20px 0 0; }
#lovSheet .lov-letter{
  font-family:'Playfair Display',Georgia,serif; font-size:1rem; line-height:1.95; white-space:pre-wrap;
  background:#FCF9F4 !important; border-radius:16px; padding:22px 24px; margin:12px 0 0;
  color:#2C3A54 !important; -webkit-text-fill-color:#2C3A54 !important; }
#lovSheet .lov-f{ margin:0 0 13px; }

#lovToast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,14px); z-index:9750;
  background:#1F3054 !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
  padding:14px 24px; border-radius:999px; font-family:'Nunito',system-ui,sans-serif;
  font-size:.87rem; font-weight:700; opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s; max-width:calc(100vw - 32px); text-align:center; }
#lovToast.on{ opacity:1; transform:translate(-50%,0); }

@media (max-width:1020px){
  #page-letters-of-love .lov-primary{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  #page-letters-of-love .lov-grid, #page-letters-of-love .lov-grid.is-4{
    grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px){
  #page-letters-of-love .lov-primary{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  #page-letters-of-love .lov-grid, #page-letters-of-love .lov-grid.is-4{ grid-template-columns:1fr; }
  #page-letters-of-love .lov-acts .lov-b{ flex:1 1 auto; }
  #page-letters-of-love .lov-write{ min-height:220px; padding:18px !important; }
}

/* ---- entry-point card, used on Life Vault, Care Circle, Community and the
   Widget Wall. Scoped by its own class rather than a page id, because it is
   deliberately placed inside pages this feature does not own. -------------- */
/* The card is inserted as a direct child of the page, OUTSIDE that page's own
   content wrapper, so it needs its own max-width to line up with the content
   rather than running edge to edge. */
.lov-entry{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap; text-align:left;
  box-sizing:border-box; width:100%; max-width:1124px; margin-left:auto; margin-right:auto;
  background:linear-gradient(180deg,#FCF9F4,#F6EFE7) !important;
  border:1px solid #EFE6DA !important; border-radius:22px; padding:20px 22px;
  cursor:pointer; font:inherit; margin:16px 0;
  font-family:'Nunito',system-ui,-apple-system,sans-serif;
  transition:transform .16s ease, box-shadow .16s ease;
}
.lov-entry:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(31,48,84,.10); }
.lov-entry:focus-visible{ outline:3px solid #CF9E3F; outline-offset:3px; }
.lov-entry-t{ flex:1 1 220px; min-width:0; }
.lov-entry-n{
  display:block; font-family:'Playfair Display',Georgia,serif; font-size:1.1rem; font-weight:700;
  margin:0 0 3px; color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
.lov-entry-d{ display:block; font-size:.85rem; line-height:1.55;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }
.lov-entry-c{
  flex:none; min-height:44px; display:inline-flex; align-items:center; padding:11px 18px;
  border-radius:999px; font-size:.82rem; font-weight:800;
  background:#1F3054 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; }
@media (max-width:620px){
  .lov-entry{ padding:16px 18px; }
  .lov-entry-c{ width:100%; justify-content:center; }
}

