/* BD Japanese — app interface: shell (top bar + bottom navigation), home, library, profile, lesson header. */

/* ===== pages made of our shortcodes sit on paper, without the theme's page title ===== */
body.bdja-page { background: var(--bj-paper); }
body.bdja-page .hero-section,
body.bdja-page .entry-header,
body.bdja-page .ct-breadcrumbs { display: none !important; }
body.bdja-page #main-container, body.bdja-page .site-main, body.bdja-page [data-prefix="single_page"] .entry-content, body.bdja-page .ct-container-full { background: transparent; }
body.bdja-page .entry-content > .bj { margin-left: auto; margin-right: auto; }

.bj-bar, .bj-nav { display: none; }

/* ===== page loader (replaces the old full-screen #loader) ===== */
#loader { display: none !important; }
.bj-ld { position: fixed; inset: 0; z-index: 1000002; pointer-events: none; }
.bj-ld-bar { position: fixed; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--bj-moss), var(--bj-pine)); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.bj-ld.go .bj-ld-bar { opacity: 1; animation: bj-ldbar 9s cubic-bezier(.08, .8, .2, 1) forwards; }
@keyframes bj-ldbar { 0% { transform: scaleX(0); } 6% { transform: scaleX(.3); } 100% { transform: scaleX(.94); } }
.bj-ld-c { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(243, 246, 244, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s ease; }
.bj-ld.show .bj-ld-c { opacity: 1; pointer-events: auto; }
.bj-ld-m { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.bj-ld-m::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #dfe8e3; border-top-color: var(--bj-stamp); border-right-color: var(--bj-pine); animation: bj-spin .95s linear infinite; }
.bj-ld-m img, .bj-ld-m .bj-bar-logo { width: 52px; height: 52px; border-radius: 50%; animation: bj-breath 1.8s ease-in-out infinite; }
@keyframes bj-spin { to { transform: rotate(360deg); } }
@keyframes bj-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .bj-ld-m::before, .bj-ld-m img { animation-duration: 2.4s; } }

/* ===== phone shell ===== */
@media (max-width: 768px) {
  body.bdja { padding-bottom: calc(var(--bj-nav-h) + env(safe-area-inset-bottom, 0px)) !important; }
  body.bdja-hidehdr header#header, body.bdja-hidehdr .ct-header { display: none !important; }
  body.bdja { --bdjk-off: var(--bj-bar-h); }
  body.bdja .bdjmt-bar { top: var(--bj-bar-h); }

  .bj-bar { display: flex; position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 9000; align-items: center; gap: 10px; height: var(--bj-bar-h); padding: 0 12px 0 16px; background: rgba(243, 246, 244, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(18, 49, 42, .07); font-family: var(--bj-sans); }
  .bj-bar-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--bj-pine) !important; font: 600 1.06rem/1 var(--bj-head); letter-spacing: .01em; text-decoration: none; }
  .bj-bar-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bj-bar-logo { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
  .bj-bar-logo.jp { display: grid; place-items: center; background: var(--bj-pine); color: #fff; font: 900 1.05rem/1 var(--bj-mincho); }
  .bj-bar-back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; color: var(--bj-pine) !important; border-radius: 12px; flex: none; }
  .bj-bar-back:active { background: rgba(18, 49, 42, .06); }
  .bj-bar-title { flex: 1; min-width: 0; font: 600 1rem/1.2 var(--bj-head); color: var(--bj-pine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bj-bar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
  .bj-bar-streak { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px 0 9px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--bj-line); color: var(--bj-mute) !important; font: 600 .92rem/1 var(--bj-head); text-decoration: none; }
  .bj-bar-streak.lit { background: var(--bj-stamp-s); box-shadow: none; color: var(--bj-stamp) !important; }

  .bj-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 999999; height: calc(var(--bj-nav-h) + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(18, 49, 42, .08); font-family: var(--bj-sans); }
  .bj-nav-i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #7d918a !important; font: 500 .7rem/1 var(--bj-head); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .bj-nav-i > svg, .bj-nav-i > .bj-ava { position: relative; z-index: 1; }
  .bj-nav-i::before { content: ""; position: absolute; top: 8px; left: 50%; width: 52px; height: 30px; margin-left: -26px; border-radius: 15px; background: var(--bj-leaf); transform: scaleX(.4); opacity: 0; transition: transform .22s var(--bj-ease), opacity .18s; }
  .bj-nav-i.on { color: var(--bj-pine) !important; font-weight: 600; }
  .bj-nav-i.on::before { transform: scaleX(1); opacity: 1; }
  .bj-nav-i.on svg { stroke-width: 2.1; }
  .bj-nav-i > svg, .bj-nav-i > .bj-ava { margin-top: 2px; margin-bottom: 4px; }
  .bj-nav-i .bj-ava { width: 24px; height: 24px; }
  .bj-nav-i.on .bj-ava { box-shadow: 0 0 0 2px var(--bj-leaf), 0 0 0 3.5px var(--bj-pine); }
  .premium-bottom-nav { display: none !important; }
}

/* ===== shared page parts ===== */
.bj-home, .bj-lib, .bj-me { max-width: 680px; margin: 0 auto; padding: 16px 16px 34px; }
.bj-pg-h { padding: 4px 0 2px; }
.bj-pg-h .bj-eyebrow { margin-bottom: 2px; }
.bj-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bj-level { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 124px; padding: 14px; overflow: hidden; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); color: var(--bj-ink) !important; text-decoration: none; transition: border-color .15s; }
.bj-level:hover { border-color: #b9cbc2; }
.bj-level.cur { border-color: var(--bj-pine); }
.bj-lv-k { position: absolute; right: 8px; top: -8px; font: 900 5.2rem/1 var(--bj-mincho); color: var(--bj-line-2); pointer-events: none; }
.bj-level b { position: relative; font: 600 1.7rem/1.05 var(--bj-head); color: var(--bj-pine); }
.bj-level small { position: relative; color: var(--bj-mute); font-size: .86rem; margin-bottom: 8px; }
.bj-level .bj-bar-p { position: relative; }

/* ===== home: guest ===== */
.bj-hero { display: grid; gap: 26px; padding: 8px 0 4px; }
.bj-hero-ey { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px; background: var(--bj-leaf); color: var(--bj-pine); font-weight: 600; }
.bj-hero h1 { font: 600 clamp(1.8rem, 7.4vw, 2.85rem)/1.2 var(--bj-head); color: var(--bj-pine); letter-spacing: -.012em; }
.bj-hero p { margin-top: 14px; color: var(--bj-mute); font-size: 1.02rem; max-width: 34em; }
.bj-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); }
.bj-how li { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--bj-line-2); }
.bj-how li:last-child { border-bottom: 0; }
.bj-how-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--bj-pine); color: var(--bj-pine); font: 700 1rem/1 var(--bj-mincho); }
.bj-how b { font: 600 1rem/1.4 var(--bj-head); color: var(--bj-pine); }
.bj-how p { color: var(--bj-mute); font-size: .9rem; }
.bj-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bj-feat-i { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); }
.bj-feat-i .bj-tile { margin-bottom: 8px; width: 40px; height: 40px; font-size: 1.15rem; }
.bj-feat-i b { font: 600 1rem/1.3 var(--bj-head); color: var(--bj-pine); }
.bj-feat-i small { color: var(--bj-mute); font-size: .84rem; line-height: 1.45; }
.bj-close { padding: 22px 18px; border-radius: 20px; background: var(--bj-pine); color: #fff; }
.bj-close b { display: block; font: 600 1.25rem/1.35 var(--bj-head); }
.bj-close p { color: #c6dbd2; margin: 4px 0 14px; font-size: .92rem; }

/* ===== home: member ===== */
.bj-hm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 2px; }
.bj-hm-id { min-width: 0; }
.bj-hm-hi { font: 600 1.42rem/1.25 var(--bj-head); color: var(--bj-pine); letter-spacing: -.005em; }
.bj-hm-ava { flex: none; border-radius: 50%; }
.bj-hm-ava .bj-ava { width: 44px; height: 44px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--bj-line); }

/* the dark "today's page": a notebook page with a red margin line */
.bj-focus { position: relative; margin-top: 18px; padding: 18px 18px 18px 26px; background: var(--bj-pine); color: #fff; border-radius: 20px; overflow: hidden; }
.bj-focus::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1.5px; background: rgba(232, 84, 108, .55); }
.bj-focus::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(255, 255, 255, .035) 31px 32px); pointer-events: none; }
.bj-focus > * { position: relative; z-index: 1; }
.bj-focus-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bj-focus-h b { font: 600 1.08rem var(--bj-head); }
.bj-focus-h span { color: #a9c9bb; font: 500 .84rem var(--bj-head); }
.bj-focus-lead { margin-top: 10px; font: 600 1.15rem/1.4 var(--bj-head); }
.bj-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.bj-dots i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .28); }
.bj-dots i.now { border: 2px solid var(--bj-mint); box-shadow: 0 0 0 4px rgba(143, 216, 180, .14); }
.bj-dots .bj-stamp { --s: 26px; outline-offset: -3.5px; }
.bj-next { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--bj-pine-2); color: #fff !important; text-decoration: none; }
.bj-next .bj-tile { width: 52px; height: 52px; font-size: 1.6rem; background: #fff; color: var(--bj-pine); }
.bj-next-t { display: flex; flex-direction: column; min-width: 0; }
.bj-next-t small { color: var(--bj-mint); font: 500 .8rem var(--bj-head); }
.bj-next-t b { font: 600 1.08rem/1.35 var(--bj-head); }
.bj-next-t em { font-style: normal; color: #c6dbd2; font-size: .86rem; }
.bj-focus-p { margin-top: 12px; color: #c6dbd2; font-size: .9rem; line-height: 1.55; }
.bj-focus-p b { color: #fff; font-weight: 600; }
.bj-focus .bj-cta { margin-top: 16px; }
.bj-done { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.bj-done b { font: 600 1.08rem var(--bj-head); }
.bj-done small { display: block; color: #c6dbd2; }
.bj-done .bj-stamp.fill { --s: 56px; }

.bj-wkcard { padding: 14px 14px 10px; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); }
.bj-wkcard-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bj-wkcard-h small { color: var(--bj-mute); font-size: .84rem; text-align: right; }
.bj-streak { display: flex; align-items: center; gap: 6px; color: var(--bj-mute); }
.bj-streak b { font-size: 1.5rem; line-height: 1; color: var(--bj-pine); }
.bj-streak span { font: 500 .86rem var(--bj-head); }
.bj-streak.lit svg, .bj-streak.lit b { color: var(--bj-stamp); }

.bj-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bj-quick-i { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 4px 12px; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: 14px; color: var(--bj-ink) !important; text-decoration: none; transition: border-color .15s, transform .12s var(--bj-ease); }
.bj-quick-i:hover { border-color: #b9cbc2; }
.bj-quick-i:active { transform: scale(.97); }
.bj-quick-i b { font: 600 .88rem var(--bj-head); }
.bj-sensei { background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); }
.bj-sensei .bj-tile { background: var(--bj-pine); color: #fff; }

/* ===== library: subject cards ===== */
.bj-lib:not(.js) .bj-seg { display: none; }
.bj-lib.js .bj-group[data-off] { display: none; }
.bj-lib.js .bj-group > .bj-h2 { display: none; }
.bj-lib .bj-group + .bj-group { margin-top: 26px; }
.bj-lvsum { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: 14px; }
.bj-lvsum-k { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--bj-pine); color: #fff; font: 900 1.25rem/1 var(--bj-mincho); }
.bj-lvsum-t { flex: 1; display: grid; gap: 6px; }
.bj-lvsum-t b { font: 600 .95rem var(--bj-head); color: var(--bj-pine); }
.bj-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bj-card { position: relative; display: flex; flex-direction: column; min-height: 148px; padding: 14px; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); color: var(--bj-ink) !important; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s, transform .12s var(--bj-ease); }
.bj-card:hover { border-color: #b9cbc2; }
.bj-card:active { transform: scale(.98); }
.bj-card .bj-tile { margin-bottom: 12px; }
.bj-card > b { font: 600 1.02rem/1.3 var(--bj-head); color: var(--bj-pine); }
.bj-card > small { color: var(--bj-mute); font-size: .82rem; line-height: 1.45; }
.bj-card-f { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.bj-card-f .bj-bar-p { flex: 1; }
.bj-card-f em { font: normal 600 .76rem var(--bj-head); color: var(--bj-mute); white-space: nowrap; }
.bj-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font: 600 .7rem/1 var(--bj-head); }
.bj-badge.lock { background: var(--bj-pine); color: #fff; }
.bj-badge.part { background: var(--bj-leaf); color: var(--bj-moss); }
.bj-card.is-lock { background: #f7f9f8; border-style: dashed; }
.bj-card.is-lock .bj-tile { background: #e9eeeb; color: #8fa39a; }
.bj-card.is-lock > b { color: #4f625b; }

/* ===== profile: the student card (学生証) ===== */
.bj-idc { position: relative; padding: 16px 18px 18px; border-radius: 22px; background: var(--bj-pine); color: #fff; overflow: hidden; }
.bj-idc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 0 0 26px rgba(255, 255, 255, .025); pointer-events: none; }
.bj-idc-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.bj-idc-ttl { font: 700 .9rem/1 var(--bj-mincho); letter-spacing: .3em; color: var(--bj-mint); }
.bj-idc-brand { font: 500 .76rem/1 var(--bj-head); letter-spacing: .08em; color: #a9c9bb; text-transform: uppercase; }
.bj-idc-body { display: flex; align-items: center; gap: 14px; }
.bj-ava-w { position: relative; flex: none; }
.bj-idc .bj-ava { width: 76px; height: 76px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.bj-ava-edit { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--bj-pine); border: 2px solid var(--bj-pine); cursor: pointer; }
.bj-id-t { min-width: 0; }
.bj-idc-name { font: 600 1.35rem/1.25 var(--bj-head); color: #fff; margin: 0; overflow-wrap: anywhere; }
.bj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bj-idc .bj-chip { background: rgba(255, 255, 255, .1); color: #e2efe9; }
.bj-idc .bj-chip.gold { background: #f3e3bd; color: #6f4d10; }
.bj-idc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.bj-idc-meta div { min-width: 0; }
.bj-idc-meta dt { font: 500 .72rem/1.3 var(--bj-head); color: #a9c9bb; }
.bj-idc-meta dd { margin: 2px 0 0; font: 600 .88rem/1.35 var(--bj-head); color: #fff; }
.bj-idc-meta dd.soon { color: #ffb3c0; }
.bj-idc.paid .bj-idc-body { padding-right: 54px; }
.bj-idc-seal { position: absolute; right: 18px; top: 66px; --s: 46px; border-color: #ff6b84; outline-color: rgba(255, 107, 132, .5); color: #ff6b84; opacity: .85; }
.bj-idc-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--bj-pine-2); }
.bj-idc-cta span { color: #c6dbd2; font-size: .86rem; line-height: 1.45; }
.bj-idc-cta .bj-btn { flex: none; }
.bj-idc.guest .bj-idc-g { display: block; font: 600 1.2rem/1.35 var(--bj-head); }
.bj-idc.guest p { color: #c6dbd2; margin-top: 4px; }
.bj-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 4px; padding: 14px 0; text-align: center; background: var(--bj-card); border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); }
.bj-nums > div + div { border-left: 1px solid var(--bj-line-2); }
.bj-nums b { display: block; font-size: 1.7rem; font-weight: 600; line-height: 1.15; color: var(--bj-pine); }
.bj-nums i { font-style: normal; font-size: .9rem; color: var(--bj-mute); margin-left: 1px; }
.bj-nums small { color: var(--bj-mute); font-size: .8rem; }
.bj-group { margin-top: 24px; }
.bj-edit > summary { list-style: none; cursor: pointer; }
.bj-edit > summary::-webkit-details-marker { display: none; }
.bj-edit[open] > summary .bj-row-c { transform: rotate(90deg); }
.bj-me.busy .bj-ava { opacity: .5; }
.bj-logout { margin-top: 26px; color: var(--bj-stamp) !important; }
.bj-logout:hover { background: var(--bj-stamp-s) !important; box-shadow: inset 0 0 0 1.5px var(--bj-stamp-s) !important; }

/* ===== lesson header ===== */
.bj-lh { margin: 0 0 20px; }
.bj-lh-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bj-lh-les { font-weight: 700; color: var(--bj-pine); }
.bj-lh-min { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--bj-mute); font-size: .86rem; }
.bj-lh-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bj-lh-steps::-webkit-scrollbar { display: none; }
.bj-lh-steps li { flex: 1 0 auto; min-width: 58px; }
.bj-lh-steps a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px; border: 1px solid transparent; border-radius: 12px; color: var(--bj-mute) !important; text-decoration: none; }
.bj-lh-steps a:hover { background: var(--bj-leaf); }
.bj-lh-t { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--bj-r-tile); background: var(--bj-leaf); color: var(--bj-pine); font: 900 1.15rem/1 var(--bj-mincho); }
.bj-lh-steps em { font-style: normal; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.bj-lh-steps .cur a { background: #fff; border-color: var(--bj-pine); color: var(--bj-pine) !important; }
.bj-lh-steps .cur .bj-lh-t { background: var(--bj-pine); color: #fff; }
.bj-lh-steps .done .bj-lh-t::after { content: ""; position: absolute; right: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--bj-stamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: 0 0 0 2px #fff; }
.bj-lh-steps .lock .bj-lh-t { opacity: .5; }

@media (min-width: 900px) {
  .bj-home.guest { max-width: 1040px; }
  .bj-hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding: 44px 0 16px; }
  .bj-home, .bj-lib, .bj-me { padding-top: 32px; }
  .bj-lh-steps li { flex: 0 0 auto; }
  .bj-cards { grid-template-columns: repeat(3, 1fr); }
  .bj-feat { grid-template-columns: repeat(3, 1fr); }
  .bj-lib { max-width: 860px; }
}

/* ===== lesson page skin (body.bdja-lesson): quieter rule cards, tidy margins ===== */
body.bdja-lesson { background: var(--bj-paper); }
body.bdja-lesson .entry-content { max-width: 780px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
body.bdja-lesson .hero-section { padding: 18px 16px 0 !important; max-width: 780px; margin: 0 auto; }
body.bdja-lesson .hero-section .page-title { font: 700 1.4rem/1.4 var(--bj-sans); color: var(--bj-pine); }
body.bdja-lesson .gs-accordion-item { margin: 0 0 10px !important; background: #fff !important; border: 1px solid var(--bj-line) !important; border-radius: 14px !important; overflow: hidden; box-shadow: none !important; }
body.bdja-lesson .gs-accordion-item__title { background: #fff !important; color: var(--bj-pine) !important; padding: 14px 16px !important; border-radius: 0 !important; border-left: 4px solid var(--bj-moss); display: flex !important; align-items: center; gap: 10px; }
body.bdja-lesson .gs-accordion-item__heading { margin: 0 !important; flex: 1; min-width: 0; color: var(--bj-pine) !important; font: 700 1rem/1.55 var(--bj-sans) !important; }
body.bdja-lesson .gs-accordion-item__heading strong { font-weight: 700; }
body.bdja-lesson .gs-accordion-item__title .icontitle svg path { fill: var(--bj-moss) !important; }
body.bdja-lesson .gs-accordion-item__title .iconfortoggle svg path, body.bdja-lesson .gs-accordion-item__title .iconfortoggle svg { fill: var(--bj-mute) !important; color: var(--bj-mute) !important; }
body.bdja-lesson .gs-accordion-item__text { padding: 6px 16px 18px; }
body.bdja-lesson .gs-accordion-item:not(.gsclose) .gs-accordion-item__title { border-bottom: 1px solid var(--bj-line); }
@media (max-width: 768px) {
  body.bdja-lesson .hero-section { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0 !important; }
  body.bdja-lesson .bj-lh { margin-top: 14px; }
}


@media (min-width: 900px) { .bj-home.guest .bj-sec { max-width: 760px; } }

/* ===== guest home v2: sensei, paths, plan, membership, help ===== */
.bj-senc { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--bj-pine); color: #fff !important; text-decoration: none; align-self: center; }
.bj-senc .bj-tile { background: #fff; color: var(--bj-pine); width: 42px; height: 42px; }
.bj-senc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bj-senc-t b { font: 600 1.02rem/1.25 var(--bj-head); }
.bj-senc-t small { color: #c6dbd2; font-size: .84rem; line-height: 1.4; }
.bj-senc-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bj-moss); }
.bj-paths .bj-card { min-height: 132px; }
.bj-paths .bj-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.bj-plan { display: block; padding: 16px; border: 1.5px solid var(--bj-pine); border-radius: 18px; background: var(--bj-card); color: var(--bj-ink) !important; text-decoration: none; transition: background .15s; }
.bj-plan:hover { background: #fbfdfc; }
.bj-plan-h { display: flex; align-items: center; gap: 12px; }
.bj-plan-h > div { flex: 1; min-width: 0; }
.bj-plan-h .bj-tile { background: var(--bj-pine); color: #fff; }
.bj-plan-h b { display: block; font: 600 1.08rem/1.3 var(--bj-head); color: var(--bj-pine); }
.bj-plan-h small { color: var(--bj-moss); font: 500 .82rem var(--bj-head); }
.bj-plan-go { color: var(--bj-pine); }
.bj-plan ul, .bj-mem ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bj-plan ul { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--bj-line); }
.bj-plan li, .bj-mem li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; line-height: 1.5; }
.bj-plan li svg { margin-top: 3px; color: var(--bj-moss); }
.bj-sec-p { margin: -2px 0 14px; color: var(--bj-mute); font-size: .92rem; line-height: 1.6; }
.bj-pk { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; margin: 0 -16px; padding: 4px 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.bj-pk::-webkit-scrollbar { display: none; }
.bj-pk-c { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; padding: 18px 16px 16px; border: 1px solid var(--bj-line); border-radius: 18px; background: var(--bj-card); }
.bj-pk-c.hot { border: 1.5px solid var(--bj-pine); box-shadow: 0 18px 40px -28px rgba(18, 49, 42, .5); }
.bj-pk-tag { position: absolute; top: -1px; right: 16px; padding: 4px 9px; border-radius: 0 0 8px 8px; background: var(--bj-pine); color: #fff; font: 600 .66rem/1.2 var(--bj-head); letter-spacing: .06em; }
.bj-pk-c.hot .bj-pk-tag { background: var(--bj-stamp); }
.bj-pk-n { font: 600 1.25rem/1.25 var(--bj-head); color: var(--bj-pine); }
.bj-pk-d { margin-top: 2px; color: var(--bj-mute); font-size: .86rem; line-height: 1.45; }
.bj-pk-p { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.bj-pk-p s { color: var(--bj-faint); font-size: .9rem; }
.bj-pk-p strong { font: 600 1.6rem/1 var(--bj-head); color: var(--bj-ink); }
.bj-pk-m { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 8px; padding: 3px 9px; border-radius: 6px; background: var(--bj-leaf); color: var(--bj-pine); font: 500 .78rem var(--bj-head); }
.bj-pk ul { list-style: none; margin: 14px 0 16px; padding: 12px 0 0; border-top: 1px dashed var(--bj-line); display: grid; gap: 7px; }
.bj-pk li { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; line-height: 1.45; }
.bj-pk li svg { margin-top: 3px; color: var(--bj-moss); }
.bj-pk .bj-btn { margin-top: auto; }
@media (min-width: 900px) { .bj-pk { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 4px 0; overflow: visible; } }
.bj-mem { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bj-mem-c { padding: 14px; border: 1px solid var(--bj-line); border-radius: var(--bj-r-panel); background: var(--bj-card); }
.bj-mem-c > b { display: block; margin-bottom: 10px; font: 600 1.05rem var(--bj-head); color: var(--bj-pine); }
.bj-mem-c.pro { border-color: var(--bj-pine); background: var(--bj-leaf); }
.bj-mem li { font-size: .84rem; }
.bj-mem li svg { margin-top: 3px; }
.bj-mem li.y svg { color: var(--bj-moss); }
.bj-mem li.n { color: var(--bj-mute); }
.bj-mem li.n svg { color: var(--bj-faint); }
.bj-mem-btn { margin-top: 12px; }
.bj-help { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; background: var(--bj-pine); color: #fff; }
.bj-help b { font: 600 1.12rem var(--bj-head); }
.bj-help p { color: #c6dbd2; font-size: .9rem; }
.bj-help .bj-cta { margin-top: 12px; }
.bj-help .bdjc-open { position: relative; }
@media (max-width: 360px) { .bj-mem { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .bj-paths { grid-template-columns: repeat(3, 1fr); } .bj-paths .bj-card:last-child:nth-child(odd) { grid-column: auto; } .bj-help { flex-direction: row; align-items: center; justify-content: space-between; } .bj-help .bj-cta { margin-top: 0; } }

/* hero call to action: one clear button with an arrow chip */
.bj-go { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 6px 6px 22px; border-radius: 28px; background: var(--bj-pine); color: #fff !important; font: 600 1.02rem/1 var(--bj-head); text-decoration: none; transition: background .15s, transform .12s var(--bj-ease); -webkit-tap-highlight-color: transparent; }
.bj-go i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bj-mint); color: var(--bj-pine); transition: transform .2s var(--bj-ease); }
.bj-go:hover { background: #0c2520; }
.bj-go:hover i { transform: translateX(3px); }
.bj-go:active { transform: scale(.98); }
