
/* ==========================================================================
   MY KITCHEN LIBRARY + SOURCE ATTRIBUTION

   One reusable saving-and-credit system for the whole Kitchen, rather than
   separate save logic inside every feature.

   The design rule running through this file: ATTRIBUTION IS NEVER HIDDEN.
   The source row sits on the card itself, not behind a menu, and it is styled
   to read as a credit rather than as fine print.

   PREFIX CHECKED: `kl-` and `klx-` both return zero; `lib-` was taken (61).
   Scoped to #page-kitchen-library and the shared card classes regardless.
   ========================================================================== */
#page-kitchen-library{
  --klx-navy:#1F3054;
  --klx-ink:#3E4B65;
  --klx-gold:#8C6A2C;
  --klx-gold-l:#FBF3E3;
  --klx-stone:#EFEAE3;
  --klx-cream:#FBF7F1;
  --klx-sage:#5F7350;
  --klx-sage-l:#EBF0E9;
  --klx-blush:#C98A80;
  --klx-blush-d:#8C4C40;
  --klx-blush-l:#F9F0ED;
  --klx-line:#E7E0D6;
  background:#FEFDFB !important;
  font-family:'Nunito',system-ui,-apple-system,sans-serif;
}
#page-kitchen-library .klx-wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(18px,4vw,34px); }
#page-kitchen-library .klx-wrap section, #page-kitchen-library .klx-sec{ padding:0 !important; }
#page-kitchen-library .klx-sec{ margin:0 0 clamp(40px,6vw,72px); min-width:0; }
#page-kitchen-library .klx-body{ padding:clamp(20px,3vw,34px) 0 120px; min-width:0; }

/* ---- type ---------------------------------------------------------------- */
#page-kitchen-library .klx-eb{
  font-size:.7rem; font-weight:800; letter-spacing:.24em; text-transform:uppercase; margin:0 0 12px;
  color:var(--klx-blush-d) !important; -webkit-text-fill-color:var(--klx-blush-d) !important;
}
#page-kitchen-library .klx-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 8px !important; color:var(--klx-navy) !important; -webkit-text-fill-color:var(--klx-navy) !important;
}
#page-kitchen-library .klx-script{
  font-family:'Caveat','Brush Script MT',cursive; font-size:1.5rem; font-weight:600; margin:0 0 14px;
  color:#8A6A2E !important; -webkit-text-fill-color:#8A6A2E !important;
}
#page-kitchen-library .klx-h2{
  font-family:'Playfair Display',Georgia,serif !important;
  font-size:clamp(1.3rem,2.6vw,1.8rem) !important; font-weight:700 !important; line-height:1.2;
  margin:0 0 8px !important; color:var(--klx-navy) !important; -webkit-text-fill-color:var(--klx-navy) !important;
}
#page-kitchen-library .klx-lead{
  margin:0; font-size:clamp(.96rem,1.5vw,1.04rem); line-height:1.72; max-width:62ch;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-kitchen-library .klx-note{ margin:14px 0 0; font-size:.81rem; line-height:1.7;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important; }
#page-kitchen-library .klx-hrow{ display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; flex-wrap:wrap; margin:0 0 20px; }

/* ---- hero ---------------------------------------------------------------- */
#page-kitchen-library .klx-backbar{
  max-width:1180px; margin:0 auto; padding:14px clamp(18px,4vw,34px) 0;
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
#page-kitchen-library .klx-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;
}
#page-kitchen-library .klx-hero{ padding:clamp(16px,2.6vw,32px) 0 clamp(20px,3vw,34px); }
/* The three pills sit BELOW the hero, full width. Inside the hero's left
   column they were squeezed to a third of half the page and every label
   wrapped to five lines. */
#page-kitchen-library .klx-pill3{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px;
  margin:clamp(18px,3vw,26px) 0 0;
}
#page-kitchen-library .klx-pill{
  display:flex; gap:14px; align-items:flex-start;
  background:var(--klx-cream) !important; border:1px solid #EFE6DA !important;
  border-radius:20px; padding:18px 20px; min-width:0;
}
#page-kitchen-library .klx-pill-i{
  width:40px; height:40px; border-radius:50%; flex:none;
  background:var(--klx-stone) !important; display:flex; align-items:center; justify-content:center;
  color:#5A5145;
}
#page-kitchen-library .klx-pill-i svg{ width:19px; height:19px; stroke:currentColor; fill:none;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#page-kitchen-library .klx-pill-t{
  display:block; font-size:.72rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  margin:0 0 4px; color:var(--klx-navy) !important; -webkit-text-fill-color:var(--klx-navy) !important; }
#page-kitchen-library .klx-pill-d{ display:block; font-size:.85rem; line-height:1.55;
  color:#57647E !important; -webkit-text-fill-color:#57647E !important; }

/* ---- buttons -------------------------------------------------------------- */
#page-kitchen-library .klx-b, #klxSheet .klx-b{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:50px; padding:14px 24px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.89rem; font-weight:800; text-align:center;
  background:#fff !important; border:1px solid var(--klx-line) !important;
  color:var(--klx-navy) !important; -webkit-text-fill-color:var(--klx-navy) !important;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
#page-kitchen-library .klx-b:hover, #klxSheet .klx-b:hover{ background:var(--klx-stone) !important; }
#page-kitchen-library .klx-b.is-navy, #klxSheet .klx-b.is-navy{
  background:var(--klx-navy) !important; border-color:var(--klx-navy) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}
#page-kitchen-library .klx-b.is-sm, #klxSheet .klx-b.is-sm{ min-height:44px; padding:11px 17px; font-size:.82rem; }
#page-kitchen-library .klx-b svg, #klxSheet .klx-b svg{ width:17px; height:17px; flex:none;
  stroke:currentColor; fill:none; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
#page-kitchen-library .klx-b:focus-visible, #klxSheet .klx-b:focus-visible,
#page-kitchen-library .klx-ch:focus-visible, #page-kitchen-library .klx-heart:focus-visible,
#page-kitchen-library .klx-src:focus-visible, #page-kitchen-library .klx-card:focus-visible,
#klxSheet .klx-soc:focus-visible{ outline:3px solid #CF9E3F; outline-offset:3px; }
#page-kitchen-library .klx-acts{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---- filters --------------------------------------------------------------- */
#page-kitchen-library .klx-chips{ display:flex; gap:9px; flex-wrap:wrap; }
#page-kitchen-library .klx-ch{
  min-height:44px; padding:11px 16px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.82rem; font-weight:700;
  background:#fff !important; border:1px solid var(--klx-line) !important;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-kitchen-library .klx-ch:hover{ background:var(--klx-stone) !important; }
#page-kitchen-library .klx-ch[aria-pressed="true"]{
  background:var(--klx-navy) !important; border-color:var(--klx-navy) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}
#page-kitchen-library .klx-i{
  width:100%; box-sizing:border-box; min-height:50px; padding:13px 18px; border-radius:999px;
  font:inherit; font-size:.95rem; min-width:0;
  background:#fff !important; border:1px solid var(--klx-line) !important;
  color:var(--klx-navy) !important; -webkit-text-fill-color:var(--klx-navy) !important;
}
#page-kitchen-library textarea.klx-i, #klxSheet textarea.klx-i{ border-radius:16px; min-height:88px; resize:vertical; }
#page-kitchen-library .klx-i:focus, #klxSheet .klx-i:focus{ outline:none; border-color:var(--klx-blush) !important;
  box-shadow:0 0 0 3px rgba(201,138,128,.26); }
#klxSheet .klx-i{
  width:100%; box-sizing:border-box; min-height:50px; padding:13px 18px; border-radius:16px;
  font:inherit; font-size:.95rem;
  background:#fff !important; border:1px solid #E7E0D6 !important;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important;
}
#page-kitchen-library .klx-fl, #klxSheet .klx-fl{
  display:block; margin:0 0 7px; font-size:.72rem; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important;
}
#klxSheet .klx-f{ margin:0 0 15px; }

/* ---- the content card ------------------------------------------------------- */
#page-kitchen-library .klx-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
#page-kitchen-library .klx-card{
  background:#fff !important; border:1px solid var(--klx-line) !important; border-radius:22px;
  overflow:hidden; box-shadow:0 3px 16px rgba(31,48,84,.05);
  display:flex; flex-direction:column; min-width:0; position:relative;
  transition:transform .18s ease, box-shadow .18s ease;
}
#page-kitchen-library .klx-card:hover{ transform:translateY(-3px); box-shadow:0 16px 38px rgba(31,48,84,.11); }
#page-kitchen-library .klx-thumb{
  height:132px; display:flex; align-items:center; justify-content:center; position:relative;
}
#page-kitchen-library .klx-thumb svg{ width:32px; height:32px; stroke:currentColor; fill:none;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
#page-kitchen-library .klx-thumb img{ width:100%; height:100%; object-fit:cover; }
#page-kitchen-library .t-gold { background:var(--klx-gold-l) !important;  color:#7A5A1E; }
#page-kitchen-library .t-sage { background:var(--klx-sage-l) !important;  color:#3F5237; }
#page-kitchen-library .t-blush{ background:var(--klx-blush-l) !important; color:#8C4C40; }
#page-kitchen-library .t-stone{ background:var(--klx-stone) !important;   color:#5A5145; }
#page-kitchen-library .t-cream{ background:var(--klx-cream) !important;   color:#7A6136; }

#page-kitchen-library .klx-heart{
  position:absolute; top:10px; right:10px; z-index:2;
  width:44px; height:44px; min-height:44px; border-radius:50%; cursor:pointer; font:inherit; padding:0;
  background:rgba(255,255,255,.94) !important; border:1px solid rgba(231,224,214,.9) !important;
  display:flex; align-items:center; justify-content:center;
  color:var(--klx-blush-d) !important;
  box-shadow:0 3px 12px rgba(31,48,84,.12);
}
#page-kitchen-library .klx-heart svg{ width:19px; height:19px; stroke:currentColor; fill:none;
  stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
#page-kitchen-library .klx-heart.is-on svg{ fill:currentColor; }

#page-kitchen-library .klx-card-b{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
#page-kitchen-library .klx-card-t{ font-size:.95rem; font-weight:800; line-height:1.35;
  color:var(--klx-navy) !important; -webkit-text-fill-color:var(--klx-navy) !important; }
#page-kitchen-library .klx-kind{
  display:inline-flex; align-self:flex-start; font-size:.68rem; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase; padding:3px 9px; border-radius:99px;
  background:var(--klx-stone) !important; color:#5A5145 !important; -webkit-text-fill-color:#5A5145 !important;
}

/* THE ATTRIBUTION ROW. Visible on the card, never behind a menu. */
#page-kitchen-library .klx-srcrow{
  display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:10px;
  border-top:1px dashed #EFE7DB;
}
#page-kitchen-library .klx-src{
  display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:8px 4px;
  background:none !important; border:0 !important; cursor:pointer; font:inherit; text-align:left;
  font-size:.8rem; font-weight:800; min-width:0;
  color:var(--klx-blush-d) !important; -webkit-text-fill-color:var(--klx-blush-d) !important;
}
#page-kitchen-library .klx-src:hover{ text-decoration:underline; }
#page-kitchen-library .klx-src small{
  display:block; font-size:.66rem; font-weight:700; letter-spacing:.04em;
  color:#7A6B6A !important; -webkit-text-fill-color:#7A6B6A !important;
}
#page-kitchen-library .klx-src svg{ width:15px; height:15px; flex:none; stroke:currentColor; fill:none;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#page-kitchen-library .klx-mine{
  display:inline-flex; align-items:center; gap:6px; font-size:.76rem; font-weight:800;
  color:#41533A !important; -webkit-text-fill-color:#41533A !important;
}
#page-kitchen-library .klx-hu{
  display:inline-flex; align-items:center; gap:6px; font-size:.76rem; font-weight:800;
  color:#33456A !important; -webkit-text-fill-color:#33456A !important;
}
#page-kitchen-library .klx-cardacts{ display:flex; gap:8px; flex-wrap:wrap; margin:4px 0 0; }
#page-kitchen-library .klx-mini{
  min-height:44px; padding:9px 13px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:.76rem; font-weight:800;
  background:#fff !important; border:1px solid var(--klx-line) !important;
  color:#4A5670 !important; -webkit-text-fill-color:#4A5670 !important;
}
#page-kitchen-library .klx-mini:hover{ background:var(--klx-stone) !important; }
#page-kitchen-library .klx-tags{ display:flex; gap:6px; flex-wrap:wrap; }
#page-kitchen-library .klx-tag{
  font-size:.68rem; font-weight:800; padding:3px 9px; border-radius:99px;
  background:var(--klx-gold-l) !important; color:#7A5A1E !important; -webkit-text-fill-color:#7A5A1E !important;
}
#page-kitchen-library .klx-usernote{
  font-size:.8rem; line-height:1.55; font-style:italic;
  color:#5A6478 !important; -webkit-text-fill-color:#5A6478 !important;
}

/* ---- empty state --------------------------------------------------------------- */
#page-kitchen-library .klx-empty{
  padding:46px 26px; text-align:center; border-radius:24px;
  border:1px dashed #E0D6C6 !important; background:var(--klx-cream) !important;
}

/* ---- creator panel -------------------------------------------------------------- */
#klxSheet .klx-soc{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:11px 16px;
  border-radius:999px; cursor:pointer; font:inherit; font-size:.82rem; font-weight:800;
  background:#fff !important; border:1px solid #E7E0D6 !important;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; text-decoration:none;
}
#klxSheet .klx-soc:hover{ background:#EFEAE3 !important; }
#klxSheet .klx-soc svg{ width:16px; height:16px; stroke:currentColor; fill:none;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---- sheet ----------------------------------------------------------------------- */
#klxSheet{
  position:fixed; inset:0; z-index:9550; display:none; align-items:flex-end; justify-content:center;
  background:rgba(20,28,44,.48); font-family:'Nunito',system-ui,sans-serif;
}
#klxSheet.is-open{ display:flex; }
#klxSheet .klx-box{
  width:100%; max-width:620px; 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){
  #klxSheet{ align-items:center; padding:16px; }
  #klxSheet .klx-box{ border-radius:28px; padding-bottom:28px; }
}
#klxSheet .klx-box-h{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 10px; }
#klxSheet .klx-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; }
#klxSheet .klx-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; }
#klxSheet .klx-box-b{ font-size:.92rem; line-height:1.72;
  color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#klxSheet .klx-box-b > p{ margin:0 0 14px; color:#3E4B65 !important; -webkit-text-fill-color:#3E4B65 !important; }
#klxSheet .klx-k{
  font-size:.66rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase; margin:18px 0 6px;
  color:#8C4C40 !important; -webkit-text-fill-color:#8C4C40 !important; }
#klxSheet .klx-box-f{ display:flex; gap:11px; justify-content:flex-end; flex-wrap:wrap; margin:22px 0 0; }
#klxSheet .klx-honest{
  background:#FBF3E3 !important; border-radius:16px; padding:15px 17px; margin:16px 0 0;
  font-size:.86rem; line-height:1.65;
  color:#6B5427 !important; -webkit-text-fill-color:#6B5427 !important; }

/* ---- toast ------------------------------------------------------------------------- */
#klxToast{
  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;
}
#klxToast.on{ opacity:1; transform:translate(-50%,0); }

/* ---- the promo card that sits above PLAN on My Kitchen -------------------------------- */
#mkxSec .klx-promo{
  display:flex; align-items:center; gap:clamp(16px,3vw,30px); flex-wrap:wrap;
  background:linear-gradient(180deg,#FBF7F1,#F6F0E6) !important;
  border:1px solid #EFE6DA !important; border-radius:28px;
  padding:clamp(20px,3vw,30px); margin:0 0 clamp(20px,3vw,28px);
  text-align:left; width:100%; cursor:pointer; font:inherit;
  transition:transform .18s ease, box-shadow .18s ease;
}
#mkxSec .klx-promo:hover{ transform:translateY(-2px); box-shadow:0 16px 38px rgba(31,48,84,.10); }
#mkxSec .klx-promo:focus-visible{ outline:3px solid #CF9E3F; outline-offset:3px; }
#mkxSec .klx-promo-i{
  width:58px; height:58px; border-radius:18px; flex:none;
  background:#fff !important; display:flex; align-items:center; justify-content:center;
  color:#8A6A2E; box-shadow:0 3px 12px rgba(31,48,84,.08);
}
#mkxSec .klx-promo-i svg{ width:27px; height:27px; stroke:currentColor; fill:none;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#mkxSec .klx-promo-t{ flex:1 1 260px; min-width:0; }
#mkxSec .klx-promo-n{
  display:block; font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.15rem,2.2vw,1.5rem);
  font-weight:700; margin:0 0 4px;
  color:#1F3054 !important; -webkit-text-fill-color:#1F3054 !important; }
#mkxSec .klx-promo-s{
  display:block; font-family:'Caveat','Brush Script MT',cursive; font-size:1.2rem; font-weight:600;
  color:#8A6A2E !important; -webkit-text-fill-color:#8A6A2E !important; }
#mkxSec .klx-promo-c{
  display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:13px 22px;
  border-radius:999px; font-size:.85rem; font-weight:800; flex:none;
  background:#1F3054 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; }

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width:1020px){
  #page-kitchen-library .klx-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  #page-kitchen-library .klx-pill3{ grid-template-columns:1fr; }
}
@media (max-width:620px){
  #page-kitchen-library .klx-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  #page-kitchen-library .klx-thumb{ height:104px; }
  #page-kitchen-library .klx-card-b{ padding:13px 14px 15px; }
  #page-kitchen-library .klx-acts .klx-b{ flex:1 1 auto; }
  /* At 440px tall the promo dominated everything above the tiles. The icon and
     title share a row; only the CTA drops below. */
  #mkxSec .klx-promo{ gap:14px; padding:18px; }
  #mkxSec .klx-promo-i{ width:44px; height:44px; border-radius:14px; }
  #mkxSec .klx-promo-i svg{ width:21px; height:21px; }
  #mkxSec .klx-promo-t{ flex:1 1 0; min-width:0; }
  #mkxSec .klx-promo-n{ font-size:1.12rem; }
  #mkxSec .klx-promo-s{ font-size:1.05rem; line-height:1.25; }
  #mkxSec .klx-promo-c{ width:100%; justify-content:center; min-height:44px; padding:11px 18px; }
}

/* ---- hero image + promo thumbnail (Aug 2026, her artwork) ------------------- */
#page-kitchen-library .klx-hero2{
  display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(24px,4vw,46px); align-items:center;
}
#page-kitchen-library .klx-hero-t{ min-width:0; }
#page-kitchen-library .klx-hero-m{ min-width:0; }
#page-kitchen-library .klx-hero-img{
  display:block; width:100%; height:auto; border-radius:26px;
  box-shadow:0 22px 52px rgba(31,48,84,.16);
}
#mkxSec .klx-promo-img{
  width:132px; height:96px; border-radius:16px; overflow:hidden; flex:none;
  box-shadow:0 4px 16px rgba(31,48,84,.12); background:#F4EDE2;
}
#mkxSec .klx-promo-img img{ display:block; width:100%; height:100%; object-fit:cover; }
@media (max-width:1020px){
  #page-kitchen-library .klx-hero2{ grid-template-columns:1fr; }
  #page-kitchen-library .klx-hero-m{ order:-1; }
}
@media (max-width:620px){
  #mkxSec .klx-promo-img{ width:88px; height:66px; border-radius:13px; }
}

