/* Five characters, one StudyPuff family. Loaded after the shared experience. */
.theme-sprinter{--card-bg:#f1dfa0;--card-dark:#755a1a;--card-light:#f8f0d7}
.theme-steady-learner{--card-bg:#d6e8ae;--card-dark:#375a37;--card-light:#ecf2df}
.theme-deep-diver{--card-bg:#c7dce5;--card-dark:#345d70;--card-light:#e7f0f3}
.theme-strategist{--card-bg:#e4d7e8;--card-dark:#65516f;--card-light:#f2ebf4}
.theme-power-planner{--card-bg:#f4beaa;--card-dark:#913f28;--card-light:#f9e6dc}
.profile-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.profile-preview{padding:17px 16px 15px}
.profile-preview h3{font-size:1.36rem;line-height:1.3;text-wrap:balance}
.profile-preview .card-meta{font-size:7px;gap:6px}
.profile-preview .card-meta .icon{width:14px;height:14px;flex:none}
.profile-preview .card-foot{font-size:7px;gap:5px}
.profile-preview p{font-size:.8rem}
.result-hero{grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:65px;align-items:start}
.result-intro h1{font-size:clamp(3.25rem,6vw,5.5rem);line-height:1.12;max-width:100%}
.result-intro h1 em{display:block;text-wrap:balance}
.result-tagline{margin-bottom:14px}
.result-summary{max-width:530px;margin-bottom:20px}
.result-card-wrap{margin-top:55px;position:sticky;top:30px}
.collectible-card h2{white-space:normal;font-size:2.2rem;line-height:1.18;text-align:center;text-wrap:balance}
.result-facts{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:25px 0 28px;padding-top:23px;border-top:1px solid var(--line)}
.result-facts dt{display:flex;align-items:center;gap:7px;font-size:.72rem;font-weight:600;margin-bottom:9px}
.result-facts dt .icon{width:16px;height:16px;flex:none}
.result-facts dd{margin:0;color:var(--muted);font-size:.86rem;line-height:1.65}
.result-next{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center}
.result-next p{margin:0;flex:1;min-width:180px}
.result-next .eyebrow{display:block;margin-bottom:5px;font-size:.59rem}
.result-next strong{display:block;font:400 1.4rem/1.4 var(--serif)}
.result-next .primary{padding:15px 18px;min-height:50px;flex:none}
.result-blend{border-left:3px solid var(--card-dark);background:var(--card-light);padding:14px 17px;margin:18px 0 0;border-radius:0 8px 8px 0}
.result-blend .eyebrow{font-size:.6rem;margin-bottom:5px}
.result-blend p:last-child{margin:0;font-size:.81rem;line-height:1.6;color:var(--forest)}
.preference-panel{padding:29px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.preference-measure+.preference-measure{margin-top:29px}
.preference-heading{display:flex;justify-content:space-between;gap:15px;align-items:baseline;margin-bottom:14px}
.preference-heading h3{font:600 .92rem/1.4 var(--sans);margin:0}
.preference-heading>span{font:italic 1rem/1.4 var(--serif);text-align:right;color:var(--card-dark)}
.preference-track{position:relative;height:7px;margin:0 7px 11px;background:#e7e9dd;border-radius:7px}
.preference-track::before{content:'';position:absolute;left:50%;top:-2px;height:11px;border-left:1px solid #aeb9a0}
.preference-track i{position:absolute;top:50%;left:calc(var(--position)*100%);width:17px;height:17px;transform:translate(-50%,-50%);border:3px solid var(--white);border-radius:50%;background:var(--card-dark);box-shadow:0 0 0 1px var(--card-dark)}
.preference-ends{display:flex;justify-content:space-between;gap:15px;font-size:.68rem;color:var(--muted)}
.preference-panel .method-detail{margin-top:27px;padding-top:19px;border-top:1px solid var(--line)}
.preference-panel .method-detail summary{font-size:.82rem;font-weight:600;cursor:pointer}
.preference-panel .method-detail p{font-size:.8rem;line-height:1.7}
.profile-tools{margin-top:30px}
.profile-tools>.eyebrow{font-size:.55rem}
.profile-tool{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 0;text-decoration:none;border-top:1px solid var(--line)}
.profile-tool strong{display:block;font:400 1.25rem/1.4 var(--serif);margin-bottom:5px}
.profile-tool span span{display:block;font-size:.8rem;color:var(--muted);line-height:1.6}
.profile-tool>.icon{width:20px;height:20px;flex:none;transition:transform .18s}
.profile-tool:hover>.icon{transform:translate(2px,-2px)}
.profile-tools>.small{margin-top:12px;font-size:.72rem}
@media(max-width:1100px){
  .profile-gallery{grid-template-columns:repeat(6,minmax(0,1fr));gap:23px}
  .profile-preview{grid-column:span 2;padding:20px}
  .profile-preview:nth-child(4){grid-column:2 / span 2}
  .profile-preview:nth-child(5){grid-column:4 / span 2}
  .profile-preview h3{font-size:1.65rem}
  .profile-preview p{font-size:.86rem}
  .profile-preview:nth-child(even){--preview-rest:0px;transform:none}
  .result-hero{gap:35px}
  .result-facts{grid-template-columns:1fr;gap:17px}
}
@media(max-width:760px){
  .profile-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
  .profile-preview,.profile-preview:nth-child(4),.profile-preview:nth-child(5){grid-column:auto}
  .profile-preview:last-child{grid-column:1 / -1;width:calc(50% - 10px);justify-self:center}
  .result-hero{grid-template-columns:1fr}
  .result-intro h1{font-size:clamp(3.2rem,10vw,4.7rem)}
  .result-facts{grid-template-columns:1fr 1fr}
  .result-card-wrap{position:relative;top:auto;margin-top:15px}
  .collectible-card h2{font-size:2rem}
}
@media(max-width:540px){
  .profile-gallery{grid-template-columns:1fr;gap:16px}
  .profile-preview,.profile-preview:last-child{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px 12px;width:100%;padding:16px;grid-column:auto}
  .profile-preview .card-meta,.profile-preview .card-foot{grid-column:1 / -1;font-size:.58rem}
  .profile-preview .character{width:92px;height:110px;margin:0;align-self:center;object-fit:contain}
  .profile-preview .preview-copy{align-self:center}
  .profile-preview h3{font-size:1.35rem;text-wrap:initial;margin-bottom:7px}
  .profile-preview p{font-size:.8rem;margin-bottom:5px;min-height:0}
  .profile-preview .card-foot{padding-top:10px}
  .result-intro h1{font-size:clamp(2.95rem,11.8vw,4rem)}
  .result-tagline{font-size:1.18rem}
  .result-summary{font-size:.9rem}
  .result-facts{gap:19px;grid-template-columns:1fr;margin-top:20px}
  .result-facts dt{font-size:.76rem}
  .result-facts dd{font-size:.87rem}
  .result-next{display:block}
  .result-next p{margin-bottom:17px}
  .result-next .primary{width:100%;justify-content:center}
  .result-blend{padding:13px 15px}
  .preference-panel{padding:22px 19px}
  .preference-heading{gap:12px}
  .preference-heading h3{font-size:.83rem}
  .preference-heading>span{font-size:.91rem}
  .preference-ends{font-size:.68rem}
}
@media(prefers-reduced-motion:reduce){.profile-tool>.icon{transition:none}}
@media print{
  .result-hero{grid-template-columns:1fr 170px;gap:25px}
  .result-card-wrap{position:static;margin-top:0}
  .result-intro h1{font-size:32pt}.collectible-card h2{font-size:15pt}
  .result-facts{grid-template-columns:1fr 1fr;margin:15px 0;padding-top:15px}
  .result-facts dt,.result-facts dd,.result-blend p:last-child{font-size:9pt}
  .result-next{display:block}.result-next strong{font-size:13pt}
  .preference-panel{padding:18px;break-inside:avoid}.preference-track{print-color-adjust:exact}
  .preference-heading h3,.preference-heading>span{font-size:10pt}
  .profile-tools{break-inside:avoid}.profile-tool>.icon{display:none}
}

/* Explain the next step with a small picture; keep extra detail optional. */
.help-heading,.help-label,.result-about{display:flex;align-items:center;gap:6px;min-width:0}
.help-heading>p,.help-label>.field-label{margin:0}
.help-heading>.sp-context-help,.help-label>.sp-context-help{flex:none}
.help-label{margin-bottom:7px;justify-content:space-between}
.result-about{margin-top:-5px;color:var(--muted);font-size:.78rem}
.result-summary-print{display:none}
.study-sketch{display:block;width:120px;max-width:100%;height:90px;color:var(--forest);flex:none}
.visual-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;margin:22px 0;padding:0}
.visual-journey li{min-width:0;padding:15px 11px 18px;border:1px solid var(--line);border-radius:16px;background:var(--white);text-align:center}
.visual-journey li:nth-child(2){background:#edf1e3}
.visual-journey li:nth-child(3){background:#f5eadf}
.visual-journey .journey-picture{display:flex;align-items:center;justify-content:center;min-height:95px;margin-bottom:8px}
.visual-journey h3{font:500 1.25rem/1.3 var(--serif);margin:0 0 6px;color:var(--forest)}
.visual-journey p{font-size:.78rem;line-height:1.55;color:var(--muted);margin:0}
.how-section .how-journey{align-self:center;margin:0;gap:12px}
.how-journey li{position:relative;padding-top:22px;padding-bottom:25px}
.how-journey li+li::before{content:'→';position:absolute;left:-13px;top:62px;z-index:1;width:14px;background:var(--paper);color:var(--forest);font-size:14px}
.science-section .science-note p{max-width:220px}
.result-blend{padding:12px 15px 14px}
.result-blend .help-heading{justify-content:space-between}
.result-blend .help-heading .eyebrow{margin:0}
.blend-portraits{display:flex;gap:12px;flex-wrap:wrap;list-style:none;margin:1px 0 0;padding:0}
.blend-portraits li{display:flex;align-items:center;gap:5px;min-width:0;font-size:.75rem;line-height:1.35;color:var(--forest);max-width:calc(50% - 6px)}
.blend-portraits .blend-character{width:45px;height:50px;object-fit:contain;flex:none;margin:0}
.blend-portraits span{overflow-wrap:anywhere}
.desk-handoff .desk-journey{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 14px;max-width:550px}
.desk-journey li{padding:7px 7px 9px;background:#f8faf1;border-color:#cdd8bc;border-radius:12px}
.desk-journey .journey-picture{min-height:59px;margin-bottom:0}
.desk-journey .study-sketch{height:58px;width:77px}
.desk-journey h3{font:500 .82rem/1.3 var(--sans);margin:1px 0 0}
.desk-handoff .help-heading p,.snapshot-section .help-heading p{margin:0}
.calendar-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;list-style:none;padding:0;margin:22px 0 12px;max-width:420px}
.calendar-preview li{min-width:0;padding:12px 8px 14px;border:1px solid var(--line);border-top:6px solid #cfdfb3;border-radius:8px;background:var(--white);text-align:center}
.calendar-preview li:nth-child(2){border-top-color:#eddb9d}
.calendar-preview li:nth-child(3){border-top-color:#c4dbe4}
.calendar-preview span{display:block;color:var(--muted);font-size:.65rem;margin-bottom:7px}
.calendar-preview strong{display:block;font:500 1.12rem/1.3 var(--serif);color:var(--forest)}
.plan-section .help-heading{align-items:flex-start;max-width:420px}
.plan-section .help-heading>.small{margin-top:10px;font-size:.77rem;line-height:1.5}
.download-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0 10px;max-width:520px}
.download-preview{min-width:0;padding:12px 14px 16px;border:1px solid #cbd6b7;border-radius:12px;background:#f8faf1;display:flex;flex-direction:column;align-items:flex-start}
.download-preview .study-sketch{width:87px;height:67px;margin-left:-10px;margin-bottom:4px}
.download-preview strong{font:500 1.07rem/1.4 var(--serif);color:var(--forest)}
.download-preview>span{font-size:.75rem;line-height:1.5;color:var(--muted);margin-top:4px}
.keep-copy .help-heading{margin-bottom:20px;max-width:550px;align-items:flex-start}
.keep-copy .help-heading .small{padding-top:10px;font-size:.76rem;line-height:1.6}
.practice-sheet>.sp-context-help{display:inline-flex;margin-top:-10px;margin-bottom:8px}
.practice-file-preview{display:flex;align-items:center;gap:14px;margin-top:10px;margin-bottom:14px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#f2f4e8}
.practice-file-preview .study-sketch{width:76px;height:66px}
.practice-file-preview .practice-file-label{margin:0}
.practice-file-preview .small{margin:4px 0 0}
.return-journey{margin-top:26px;margin-bottom:22px}
.return-page .help-heading{margin-bottom:22px;align-items:flex-start}
.return-page .help-heading .small{padding-top:10px}
@media(max-width:1000px){.how-section{grid-template-columns:1fr}.how-section .how-journey{max-width:620px}.how-journey .journey-picture{min-height:80px}.how-journey .study-sketch{height:80px}}
@media(max-width:540px){
  .visual-journey{gap:8px}.visual-journey li{padding:12px 8px 15px;border-radius:12px}
  .visual-journey h3{font-size:1.12rem}.visual-journey p{font-size:.74rem}
  .visual-journey .journey-picture{min-height:68px;margin-bottom:5px}.visual-journey .study-sketch{width:91px;height:68px}
  .how-journey li+li::before{left:-10px;width:11px;top:44px;font-size:12px}
  .desk-handoff .desk-journey{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:320px;gap:8px}
  .desk-journey li{display:flex;align-items:center;gap:5px;padding:6px}.desk-journey .journey-picture{min-height:43px;margin:0}.desk-journey .study-sketch{width:49px;height:41px}.desk-journey h3{font-size:.78rem;text-align:left}
  .blend-portraits{gap:8px}.blend-portraits li{max-width:100%;font-size:.76rem}.blend-portraits .blend-character{width:38px;height:43px}
  .calendar-preview{gap:7px}.calendar-preview strong{font-size:1rem}.calendar-preview span{font-size:.63rem}
  .download-previews{gap:9px}.download-preview{padding:10px 11px 14px}.download-preview strong{font-size:.96rem}.download-preview>span{font-size:.72rem}
  .practice-file-preview{padding:12px;gap:10px}.practice-file-preview .study-sketch{width:56px;height:55px}
  .return-journey{grid-template-columns:1fr;gap:8px}.return-journey li{display:flex;align-items:center;gap:14px;text-align:left;padding:10px 15px}.return-journey .journey-picture{min-height:52px;flex:none}.return-journey .study-sketch{width:75px;height:56px}.return-journey h3{margin-bottom:3px}
}
@media print{.result-summary-print{display:block}.sp-context-help,.result-about{display:none}.visual-journey li,.calendar-preview li,.download-preview{break-inside:avoid}.blend-portraits .blend-character{width:32px;height:35px}.blend-portraits li{font-size:9pt}.calendar-preview{max-width:330px}.desk-handoff{display:none!important}}
