/* Buddhist Stamps — Buddha Life Journey 1.1.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-stamps-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-end;margin-bottom:16px}.bsbj-stamps-head h4{font-size:22px;margin:5px 0 0}.bsbj-stamp-count{font-size:12px;color:var(--muted);font-weight:700}
.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-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;
}


.bsbj-stamp-image img.bsbj-stamp-clickable{cursor:zoom-in}
.bsbj-stamp-image img.bsbj-stamp-clickable:focus{outline:2px solid var(--gold);outline-offset:3px}
body.bsbj-popup-open{overflow:hidden}
.bsbj-image-popup{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-image-popup.is-open{opacity:1;visibility:visible}
.bsbj-image-popup-backdrop{position:absolute;inset:0;background:rgba(25,29,37,.78)}
.bsbj-image-popup-panel{position:relative;z-index:1;max-width:min(92vw,900px);max-height:92vh;padding:12px;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28);transform:scale(.97);transition:transform .18s ease;box-sizing:border-box}
.bsbj-image-popup.is-open .bsbj-image-popup-panel{transform:scale(1)}
.bsbj-image-popup-panel img{display:block;max-width:calc(92vw - 24px);max-height:calc(92vh - 24px);width:auto;height:auto;object-fit:contain;border-radius:8px}
.bsbj-image-popup-close{position:absolute;right:-12px;top:-12px;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#263248;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.18);z-index:2}
.bsbj-image-popup-close:hover{transform:scale(1.04)}
@media(max-width:600px){
  .bsbj-image-popup{padding:14px}
  .bsbj-image-popup-panel{max-width:96vw;max-height:94vh;padding:8px}
  .bsbj-image-popup-panel img{max-width:calc(96vw - 16px);max-height:calc(94vh - 16px)}
  .bsbj-image-popup-close{right:-7px;top:-7px}
}
