/* Brain Health Smarts members area + login + after-purchase (job 108). Loaded after bhs.css (uses its tokens).
   Nothing a member reads is under 16px; no sideways scroll at 390px; tap targets >= 44px. */
body.bhsm{background:linear-gradient(180deg,var(--blue-50) 0,#f6fafd 420px,#f6fafd 100%)}
.bhsm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bhsm-main{padding-bottom:56px}
.bhsm-wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.bhsm-wrap--narrow{max-width:900px}
.bhsm-center,.txt-center{text-align:center}
.bhsm-demo{background:var(--yellow-lt);color:var(--ink);text-align:center;font:600 16px/1.4 var(--f-head);padding:8px 12px;border-bottom:1px solid #f1df9c}
.bhsm-note{background:var(--yellow-lt);border:1px solid #f1df9c;border-radius:12px;padding:14px 16px;margin:0 0 20px;font-size:16px;line-height:1.5;color:var(--ink)}
.bhsm-alert{background:#fdecec;border:1px solid #f3b9b9;color:#8a1414;border-radius:12px;padding:14px 16px;margin:0 0 20px;font-weight:500}
.bhsm-alert--ok{background:#e7f6ee;border-color:#9fd8b8;color:#145c34}

/* header */
.bhsm-hdr__tag{font:700 16px/1 var(--f-head);color:var(--blue-700);background:var(--blue-50);border:1px solid var(--blue-100);
  padding:8px 12px;border-radius:999px;white-space:nowrap}
.bhsm-hdr .bhs-hdr__nav .bhsm-hi span{display:block;font:600 16px/1 var(--f-head);color:var(--muted);padding:14px 10px}
@media(max-width:820px){
  .bhsm-hdr__tag{display:none}
  .bhsm-hdr .bhs-hdr__nav .bhsm-hi span{padding:12px 12px 4px}
}
@media(max-width:1060px) and (min-width:821px){.bhsm-hdr__tag{display:none}}

/* cards + typography */
.bhsm-card{background:#fff;border-radius:18px;box-shadow:var(--shadow);border:1px solid #e5eef6;padding:30px 28px;margin:0 0 24px}
@media(max-width:600px){.bhsm-card{padding:22px 18px;border-radius:16px}}
.bhsm h1,.bhsm h2,.bhsm h3{font-family:var(--f-head);color:var(--ink);line-height:1.25;margin:0 0 .6em}
.bhsm h1{font-size:clamp(28px,4vw,40px);font-weight:800;color:var(--navy)}
.bhsm h2{font-size:clamp(24px,3vw,30px);font-weight:800;color:var(--navy)}
.bhsm h3{font-size:clamp(19px,2.2vw,22px);font-weight:700}
.bhsm-sig{font-family:var(--f-head);font-weight:700;color:var(--navy)}
.bhsm-sig em{font-family:var(--f-body);font-weight:400;color:var(--muted)}

/* hub */
.bhsm-hero{padding:34px 0 8px}
.bhsm-welcome{max-width:900px;margin:0 auto 28px}
.bhsm-welcome h1{text-align:center}
.bhsm-video,.video-responsive{position:relative;display:block;width:100%;margin:0 0 24px;border-radius:14px;overflow:hidden;background:#0b2a40}
video.video-responsive{aspect-ratio:16/9;height:auto}
div.video-responsive{padding:0;aspect-ratio:16/9}
div.video-responsive::before{display:none}
.video-responsive-item,div.video-responsive iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.bhsm-video video{display:block;width:100%;aspect-ratio:16/9;background:#0b2a40}
.bhsm-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1000px;margin:0 auto 34px}
.bhsm-tiles > div{margin:0}
.bhsm-tiles a{display:block;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);background:#fff;transition:transform .15s ease,box-shadow .15s ease}
.bhsm-tiles a:hover,.bhsm-tiles a:focus-visible{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.bhsm-tiles img{display:block;width:100%;height:auto}
@media(max-width:700px){.bhsm-tiles{grid-template-columns:1fr;gap:16px}}
.bhsm-help{max-width:900px;margin:10px auto 0}
.bhsm-help h2{font-size:clamp(22px,2.6vw,26px)}
.bhsm-help a{overflow-wrap:anywhere}

/* course pages */
.bhsm-shell{max-width:1240px;margin:0 auto;padding:28px 20px 0;display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;align-items:start}
.bhsm-side{overflow:hidden;
  background:#fff;border-radius:18px;box-shadow:var(--shadow);border:1px solid #e5eef6}
.bhsm-side__grp summary{list-style:none;cursor:pointer;font:800 16px/1 var(--f-head);letter-spacing:.06em;color:#fff;
  background:linear-gradient(135deg,var(--blue-700),var(--blue));padding:18px 20px;display:flex;align-items:center;justify-content:space-between;min-height:54px}
.bhsm-side__grp summary::-webkit-details-marker{display:none}
.bhsm-side__grp summary::after{content:"";width:10px;height:10px;border-right:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(45deg);margin:-4px 4px 0 12px;transition:transform .15s}
.bhsm-side__grp[open] summary::after{transform:rotate(-135deg);margin-top:6px}
.bhsm-side__list{list-style:none;margin:0;padding:8px;counter-reset:none}
.bhsm-side__list li{margin:0}
.bhsm-side__list a{display:block;padding:12px 14px;min-height:44px;border-radius:12px;color:var(--ink);text-decoration:none;font:500 16px/1.4 var(--f-body)}
.bhsm-side__list a:hover{background:var(--blue-50);color:var(--blue-700)}
.bhsm-side__list a.is-on{background:var(--blue-50);color:var(--blue-700);font-weight:700;box-shadow:inset 4px 0 0 var(--blue-700)}
.bhsm-side__list i{color:var(--muted);font-size:16px}
.bhsm-content{min-width:0}
.bhsm-crumb{font:600 16px/1.5 var(--f-head);color:var(--muted);margin:0 0 14px}
.bhsm-crumb a{color:var(--blue-700);text-decoration:none}
.bhsm-crumb a:hover{text-decoration:underline}
.course-details-wrap{overflow-wrap:break-word}
.course-details-wrap > h2:first-child{margin-top:0}
.course-details-wrap img{border-radius:10px}
.course-download-area{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px;align-items:start;background:var(--blue-50);
  border:1px solid var(--blue-100);border-radius:16px;padding:22px;margin:24px 0}
.course-download-area > div:first-child{text-align:center}
.course-download-area > div:first-child img{width:100%;max-width:230px;height:auto;max-height:320px;object-fit:contain}
.course-download-area h3{margin-top:4px}
@media(max-width:640px){.course-download-area{grid-template-columns:1fr;gap:16px;padding:18px 16px}
  .course-download-area > div:first-child img{max-width:200px}}
.download-btn,.downloads-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 24px;margin:6px 8px 6px 0;
  border-radius:999px;background:var(--blue-700);color:#fff;text-decoration:none;font:700 16px/1.25 var(--f-head);letter-spacing:.02em;
  box-shadow:0 6px 16px rgba(37,122,187,.25);text-align:center}
.download-btn:hover,.downloads-btn:hover{background:var(--navy);color:#fff}
.download-btn::before{content:"";width:18px;height:18px;margin-right:10px;flex:none;
  background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 19h16' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 19h16' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:640px){.download-btn,.downloads-btn{display:flex;width:100%;margin:8px 0}}
.multiple-download-btns{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}
.multiple-download-btns .download-btn{font-size:16px;letter-spacing:0}
.course-details-wrap audio{display:block;width:100%;max-width:520px;margin:14px 0 6px;height:48px}
.course-details-wrap center{display:block;text-align:center}
.course-details-wrap center + audio,.course-details-wrap center b{display:block}
.course-details-wrap center b{font-family:var(--f-head);color:var(--ink);margin-top:14px}
.course-details-wrap center + audio{margin-left:auto;margin-right:auto}
.course-details-wrap iframe{max-width:100%}
.course-details-wrap > h3:last-child{margin:28px 0 0;padding:18px 20px;background:#fff;border:2px dashed var(--blue-100);border-radius:14px;font-size:18px;color:var(--ink)}
.pink{color:var(--blue-700)}
.pink a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:800;color:var(--link)}
@media(max-width:900px){
  .bhsm-shell{grid-template-columns:1fr;gap:18px;padding-top:18px}
  .bhsm-side{position:static;max-height:none}
}

/* login, lost password, change password */
.bhsm-login{padding:40px 20px 30px;background:linear-gradient(160deg,var(--blue-700) 0,var(--blue) 55%,var(--blue-400) 100%)}
.bhsm-login--member{background:transparent}
.bhsm-login__card{max-width:560px;margin:0 auto;background:#fff;border-radius:20px;box-shadow:var(--shadow-lg);padding:34px 32px}
@media(max-width:600px){.bhsm-login{padding:22px 14px}.bhsm-login__card{padding:24px 18px}}
.bhsm-form h1{font-size:clamp(28px,4vw,34px);text-align:center}
.bhsm-form h2{font-size:clamp(22px,3vw,26px);text-align:center}
.bhsm-form .field{margin:0 0 14px}
.bhsm-form .btn{margin-top:6px}
.bhsm-login__rule{margin:30px 0}

/* after purchase */
.bhsm-thanks__band{padding:34px 20px 20px}
.bhsm-thanks__hero{text-align:center;max-width:860px;margin:0 auto 22px}
.bhsm-thanks__tick{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--green);color:#fff;font-size:34px;font-weight:700;margin-bottom:12px;box-shadow:0 10px 24px rgba(31,157,85,.3)}
.bhsm-thanks__card{max-width:760px;margin:0 auto}
.bhsm-thanks__card h2{text-align:center}
.bhsm-thanks__card .reg-form{display:grid;gap:12px;margin:18px 0}
.bhsm-thanks__card .reg-form .field{margin:0}
.bhsm-thanks__card select.field{appearance:auto}
.bhsm-thanks__more{max-width:760px;margin:0 auto}
.bhsm-confirm{width:100%;border-collapse:collapse;margin:16px 0}
.bhsm-confirm td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.bhsm-confirm tr:first-child td{border-bottom:2px solid var(--blue-100)}
.bhsm-confirm input[type=radio]{width:22px;height:22px;vertical-align:-4px;margin-right:6px}
@media(max-width:600px){.bhsm-confirm td{display:block;padding:6px 4px;border:0}
  .bhsm-confirm tr{display:block;border-bottom:1px solid var(--line);padding:6px 0}}

/* footer */
.bhsm-ftr{margin-top:40px}
.bhsm-ftr__logo{display:block;width:200px;max-width:70%;height:auto}
