/* Buddhist Stamps — Buddha Life Journey 4.0 */
.bsbj-shell{--ink:#263248;--muted:#756f65;--sand:#f5efe3;--paper:#fbfaf7;--line:#ddd1bc;--gold:#9b7a3c;--gold2:#c4a66a;max-width:1280px;margin:40px auto;padding:28px;border:1px solid var(--line);border-radius:26px;background:var(--paper);box-sizing:border-box;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);box-shadow:0 18px 50px rgba(55,45,25,.07)}
.bsbj-header{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:24px}
.bsbj-kicker,.bsbj-section-kicker{font-size:11px;letter-spacing:.18em;font-weight:800;color:var(--gold)}
.bsbj-header h2{font-size:clamp(30px,4vw,52px);line-height:1.03;margin:8px 0 10px;letter-spacing:-.04em}
.bsbj-header p{max-width:760px;color:var(--muted);font-size:16px;line-height:1.65;margin:0}
.bsbj-counter{min-width:95px;text-align:right;color:var(--muted)}.bsbj-counter strong{display:block;color:var(--ink);font-size:32px}.bsbj-counter span{font-size:12px;text-transform:uppercase;letter-spacing:.12em}
.bsbj-layout{display:grid;grid-template-columns:265px 1fr;gap:22px}
.bsbj-timeline{display:flex;flex-direction:column;gap:5px;padding:8px}
.bsbj-step{display:grid;grid-template-columns:36px 1fr;gap:10px;text-align:left;border:1px solid transparent;background:transparent;padding:12px 10px;border-radius:14px;color:var(--ink);cursor:pointer;transition:.18s}
.bsbj-step:hover{background:#f3ede1;border-color:#eadfca}.bsbj-step.is-active{background:#eee6d7;border-color:#e3d4b7;box-shadow:0 5px 16px rgba(60,45,20,.06)}
.bsbj-step-no{font-size:11px;font-weight:800;color:var(--gold);padding-top:3px}.bsbj-step b{display:block;font-size:12px;line-height:1.35}.bsbj-step small{display:block;color:#918979;margin-top:3px}
.bsbj-main{min-width:0}
.bsbj-chapter-hero{padding:26px 28px 25px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fffdf9 0%,#f5efe3 100%)}
.bsbj-story-top{display:flex;justify-content:space-between;gap:15px;color:var(--gold);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.bsbj-title{font-size:clamp(28px,3.2vw,44px);line-height:1.08;margin:10px 0 5px;letter-spacing:-.03em}
.bsbj-place{color:var(--muted);font-size:14px;margin-bottom:10px}.bsbj-summary{max-width:900px;color:#514e48;font-size:16px;line-height:1.65;margin:0}
.bsbj-significance{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}.bsbj-significance span{font-size:11px;padding:6px 9px;border-radius:99px;background:#eee6d7;color:#765d2e;font-weight:700}
.bsbj-story{margin-top:16px;padding:22px 28px;border:1px solid var(--line);border-radius:20px;background:#fff}
.bsbj-story-heading{font-size:10px;letter-spacing:.17em;color:var(--gold);font-weight:800;margin-bottom:8px}.bsbj-story-text{max-width:920px;font-size:15px;line-height:1.78;color:#504d47;margin:0}
.bsbj-stamps-section{margin-top:16px;padding:24px 28px;border:1px solid var(--line);border-radius:20px;background:#fff}
.bsbj-buddha-story-section{margin-top:16px;padding:26px 28px 30px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#fffdf9 0%,#f7f1e6 100%)}
.bsbj-buddha-story-section[hidden]{display:none}
.bsbj-buddha-story-heading{margin-bottom:14px}.bsbj-buddha-story-heading h4{font-size:26px;line-height:1.18;margin:6px 0 0;color:var(--ink)}
.bsbj-buddha-story-body{max-width:920px}.bsbj-buddha-story-body p{font-size:15px;line-height:1.82;color:#4f4b45;margin:0 0 15px}.bsbj-buddha-story-body p:last-child{margin-bottom:0}
.bsbj-stamps-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:16px}.bsbj-stamps-head h4{font-size:22px;margin:5px 0 0}.bsbj-stamps-tools{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.bsbj-stamp-count{font-size:12px;color:var(--muted);font-weight:700}.bsbj-sort-control{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap}.bsbj-sort-control select{appearance:auto;border:1px solid #ddd1bc;border-radius:9px;background:#fbfaf7;color:var(--ink);font:inherit;font-weight:600;padding:7px 28px 7px 9px;min-height:34px;cursor:pointer}.bsbj-sort-control select:focus{outline:2px solid rgba(155,122,60,.25);outline-offset:1px}
.bsbj-stamp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.bsbj-stamp-card{overflow:hidden;border:1px solid #e5dccb;border-radius:15px;background:#fbfaf7;box-shadow:0 8px 22px rgba(55,45,25,.05);transition:.2s}
.bsbj-stamp-card:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(55,45,25,.10)}
.bsbj-stamp-image{aspect-ratio:360/470;background:#f2ecdf;display:flex;align-items:center;justify-content:center;padding:10px}
.bsbj-stamp-image img{width:100%;height:100%;object-fit:contain;border-radius:5px}
.bsbj-stamp-art{width:86%;height:90%;border:2px dashed #a98d57;background:#eee6d7;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:18px;box-sizing:border-box}
.bsbj-stamp-symbol{font-size:54px;color:#9b7a3c}.bsbj-stamp-art-country{font:700 15px Georgia,serif;color:#263248}.bsbj-stamp-art-year{font-size:12px;color:#756f65}.bsbj-stamp-art-name{font-size:12px;font-weight:700;color:#263248;line-height:1.35}
.bsbj-stamp-meta{padding:14px}.bsbj-stamp-meta h5{font-size:14px;line-height:1.35;margin:0 0 8px}.bsbj-stamp-facts{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#5e5a53}.bsbj-stamp-denom{font-size:10px;color:var(--gold);font-weight:800;margin-top:7px}.bsbj-stamp-meta p{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0}.bsbj-stamp-occasion{font-size:10px;color:#6d5932;background:#f0e8d9;display:inline-block;border-radius:99px;padding:5px 7px;margin-top:2px}
.bsbj-empty-stamps{grid-column:1/-1;padding:24px;border-radius:14px;background:#f7f2e9;color:var(--muted);font-size:13px}
@media(max-width:980px){.bsbj-layout{grid-template-columns:220px 1fr}.bsbj-stamp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.bsbj-stamps-head{align-items:flex-start;flex-direction:column}.bsbj-stamps-tools{width:100%;justify-content:space-between}.bsbj-sort-control{flex:1}.bsbj-sort-control select{flex:1;min-width:0}.bsbj-shell{margin:20px 12px;padding:18px;border-radius:20px}.bsbj-header{align-items:flex-start}.bsbj-counter{display:none}.bsbj-layout{grid-template-columns:1fr}.bsbj-timeline{order:2;display:grid;grid-template-columns:repeat(3,1fr);overflow:auto;padding:0}.bsbj-main{order:1}.bsbj-step{grid-template-columns:1fr;padding:9px}.bsbj-step-no{display:none}.bsbj-step b{font-size:11px}.bsbj-step small{font-size:10px}.bsbj-chapter-hero,.bsbj-story,.bsbj-stamps-section{padding:20px}.bsbj-stamp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.bsbj-timeline{grid-template-columns:repeat(2,1fr)}.bsbj-header h2{font-size:30px}.bsbj-header p{font-size:14px}.bsbj-stamp-grid{grid-template-columns:1fr}.bsbj-story-top{font-size:10px}.bsbj-title{font-size:28px}}


/* 2.0 image reliability */
.bsbj-stamp-image img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:contain;
  object-position:center;
  background:#f5efe3;
}
.bsbj-stamp-image{
  overflow:hidden;
}
.bsbj-stamp-art{
  min-height:260px;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:24px;
  box-sizing:border-box;
  background:#f5efe3;
  color:#28334a;
  text-align:center;
}
.bsbj-stamp-symbol{
  font-size:54px;
  line-height:1;
  opacity:.7;
}
.bsbj-stamp-art-country{
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.bsbj-stamp-art-year{
  font-size:13px;
  color:#8d7140;
}
.bsbj-stamp-art-name{
  max-width:85%;
  font-size:14px;
  font-weight:700;
}
.bsbj-stamp-empty{
  grid-column:1/-1;
  padding:32px;
  border:1px dashed #d9ccb5;
  border-radius:14px;
  color:#77736b;
  background:#faf7f0;
}


/* 3.0 stamp viewer — restored click-to-open lightbox */
body.bsbj-modal-open{overflow:hidden}
.bsbj-stamp-card{cursor:zoom-in}
.bsbj-stamp-card:focus{outline:2px solid rgba(155,122,60,.45);outline-offset:3px}
.bsbj-stamp-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.bsbj-stamp-modal.is-open{opacity:1;visibility:visible}
.bsbj-stamp-modal-backdrop{position:absolute;inset:0;background:rgba(24,27,34,.78);backdrop-filter:blur(3px)}
.bsbj-stamp-modal-panel{position:relative;z-index:1;display:grid;grid-template-columns:minmax(280px,58vh) minmax(240px,360px);max-width:min(940px,94vw);max-height:92vh;overflow:hidden;border:1px solid rgba(255,255,255,.22);border-radius:20px;background:#fbfaf7;box-shadow:0 28px 80px rgba(0,0,0,.35);transform:translateY(8px) scale(.985);transition:transform .18s ease}
.bsbj-stamp-modal.is-open .bsbj-stamp-modal-panel{transform:translateY(0) scale(1)}
.bsbj-stamp-modal-close{position:absolute;top:10px;right:10px;z-index:2;width:38px;height:38px;border:1px solid #ded3c0;border-radius:50%;background:rgba(255,255,255,.94);color:#263248;font-size:27px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(40,35,25,.12)}
.bsbj-stamp-modal-close:hover{background:#fff}
.bsbj-stamp-modal-close:focus{outline:2px solid rgba(155,122,60,.45);outline-offset:2px}
.bsbj-stamp-modal-image{min-height:420px;max-height:92vh;padding:22px;background:#f2ecdf;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.bsbj-stamp-modal-image img{display:block;width:100%;height:100%;max-width:100%;max-height:calc(92vh - 44px);object-fit:contain;border-radius:5px}
.bsbj-stamp-modal-image .bsbj-stamp-art{width:86%;height:86%;min-height:0}
.bsbj-stamp-modal-info{padding:42px 30px 30px;overflow:auto;align-self:stretch}
.bsbj-stamp-modal-kicker{font-size:10px;letter-spacing:.18em;font-weight:800;color:#9b7a3c;margin-bottom:7px}
.bsbj-stamp-modal-info h3{margin:0 0 12px;font-size:26px;line-height:1.15;color:#263248}
.bsbj-stamp-modal-facts{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:#5e5a53;padding-bottom:12px;border-bottom:1px solid #e7dfd1}
.bsbj-stamp-modal-catalogue{font-size:11px;color:#9b7a3c;font-weight:800;margin-top:12px}
.bsbj-stamp-modal-info p{font-size:13px;line-height:1.65;color:#756f65;margin:14px 0 0}
.bsbj-stamp-modal-occasion{display:inline-block;margin-top:14px;padding:6px 9px;border-radius:99px;background:#f0e8d9;color:#6d5932;font-size:11px}
@media(max-width:720px){.bsbj-stamp-modal{padding:12px}.bsbj-stamp-modal-panel{grid-template-columns:1fr;grid-template-rows:minmax(0,58vh) auto;max-height:94vh;max-width:94vw}.bsbj-stamp-modal-image{min-height:0;padding:16px}.bsbj-stamp-modal-image img{max-height:calc(58vh - 32px)}.bsbj-stamp-modal-info{padding:20px 22px 22px}.bsbj-stamp-modal-info h3{font-size:21px}}
