/* Results and public portraits. Scoped so the quiz and collection keep their layout. */
[hidden]{display:none!important}
.result-mode{--rx-night:#173437;--rx-cream:#f4efdc;--rx-gold:#e8d39a}
.result-mode #main{width:100%;max-width:none}
.result-mode .site-header{width:100%;padding:25px max(24px,calc((100% - 1120px)/2));background:#142f32;color:#f4efdc;border-color:#ffffff19}
.result-mode .site-header .brand,.result-mode .site-header button{color:#e9ecd8}
.result-mode .site-header .edition{display:none}
.result-mode .site-header .brand small{color:#a9bba8}
.result-mode .site-header .brand-compass{border-color:#a9bba8}
.result-mode .site-header .header-right>.text-button:last-child{display:none}
.result-mode .site-header{flex-direction:row;align-items:center}
.result-mode .view-enter,.shared-mode .view-enter{animation:none}
.result-mode .site-footer{display:none}
.rx-content{width:min(1120px,calc(100% - 80px));margin:auto}
.rx-eyebrow{font-size:10px;font-weight:500;letter-spacing:1.8px;text-transform:uppercase;line-height:1.7;margin:0 0 16px;color:#85805b}
.rx-night{background:radial-gradient(ellipse at 78% 37%,#54745b23,transparent 53%),linear-gradient(120deg,#142d31,#173437);color:#f4efdc;overflow:hidden}
.rx-night p{color:inherit}
.rx-hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:35px;padding:47px 0 40px;min-height:550px}
.rx-hero .rx-eyebrow{color:#b9cbb3;margin-bottom:17px}
.rx-hero h1{font-size:66px;letter-spacing:-2px;margin:0 0 17px;max-width:580px;line-height:1.04;color:#f4efdc}
.rx-the{display:block;font-size:28px;letter-spacing:-.6px;font-style:italic;color:#d9d8b9;margin-bottom:7px}
.rx-hero .rx-tagline{font:italic 23px/1.5 Georgia,serif;color:#d9d5ad;margin:0 0 24px;max-width:450px}
.rx-orientation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:28px}
.rx-label{font-size:9px;letter-spacing:1.2px;text-transform:uppercase;color:#a8c0ad;margin-right:4px}
.rx-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #c4ceae4d;border-radius:25px;padding:5px 11px;font-size:11px;color:#e1e5ce;background:#fff4c403}
.rx-chip i{width:5px;height:5px;border-radius:50%;background:#e8d39a}
.rx-chip:last-child i{background:#c0bdd6}
.rx-strength{padding-left:16px;border-left:2px solid #ccbf86;max-width:430px}
.rx-strength .rx-eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:6px;color:#b0c6af}
.rx-strength p:last-child{font:24px/1.45 Georgia,serif;margin:0;color:#f0edce;letter-spacing:-.3px}
.rx-hero .rx-status-note{font-size:11px;line-height:1.7;color:#d6c08b;margin:17px 0 0;max-width:430px}
.rx-sigil-scene{min-width:0;max-width:520px;width:100%;margin:auto;text-align:center}
.rx-sigil-scene .rx-eyebrow{font-size:8px;letter-spacing:2.2px;color:#adc3b2;margin-bottom:-5px}
.rx-sky-frame{position:relative;aspect-ratio:600/490;width:100%;isolation:isolate}
.rx-sigil{display:block;width:100%;height:auto;overflow:visible}
.rx-pin{position:absolute;width:34px;height:34px;transform:translate(-50%,-50%);border:0;background:none;border-radius:50%;padding:0}
.rx-pin:after{content:'';position:absolute;inset:7px;border:1px solid #eedda773;border-radius:50%;opacity:0;transition:opacity .2s}
.rx-pin:hover:after,.rx-pin[aria-pressed=true]:after{opacity:1}
.rx-pin:focus-visible{outline-color:#e4cc8c;outline-offset:0}
.rx-hero .rx-sky-caption{min-height:50px;max-width:350px;margin:0 auto 9px;font:italic 16px/1.5 Georgia,serif;color:#d1d8bd}
.rx-sigil-tools{display:flex;justify-content:center;align-items:center;gap:20px;color:#afc4af}
.rx-sigil-tools .text-button{font-size:10px;color:inherit}
.rx-earned{display:flex;justify-content:space-between;align-items:center;gap:25px;border-top:1px solid #d1d4a626;padding:17px 0 19px;font-size:11px;color:#b7cbb7}
.rx-earned b{font-weight:500;color:#e5e3c5;margin-right:5px}
.rx-earned>span:last-child{font-size:9px;letter-spacing:1px;color:#a2bca9;white-space:nowrap}
.rx-reading{padding:50px 0 25px}
.rx-rule{display:flex;align-items:center;gap:24px;font-size:9px;color:#a3664d;margin-bottom:26px}
.rx-rule:after{content:'';height:1px;flex:1;background:#d9ddcf}
.rx-insight-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:65px;align-items:start}
.rx-insight-grid h2{font-size:35px;line-height:1.2;letter-spacing:-.9px;margin:0 0 16px}
.rx-insight-grid>div>p:not(.rx-eyebrow){font-size:14px;line-height:1.9;color:#60715e;max-width:490px;margin:0}
.rx-everyday{padding-left:24px;border-left:1px solid #bac8ad}
.rx-everyday .rx-eyebrow{font-size:9px;letter-spacing:1.2px;color:#7b815b;margin-bottom:11px}
.rx-insight-grid .rx-everyday p:last-child{font:20px/1.65 Georgia,serif;color:#5c705a}
.rx-evidence{margin-top:28px;border-bottom:1px solid #d9ddcf;padding-bottom:22px}
.rx-evidence summary,.rx-details>summary{font-size:12px;color:#5a7157;cursor:pointer;width:fit-content;padding:8px 0}
.rx-evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:22px}
.rx-evidence-grid article{background:#e9eddf;padding:21px 23px;border-radius:6px}
.rx-evidence-grid .rx-eyebrow{font-size:8px;letter-spacing:1.1px;color:#7c805b}
.rx-evidence-grid blockquote{font:22px/1.5 Georgia,serif;margin:7px 0 12px;letter-spacing:-.2px}
.rx-evidence-grid article>p:last-child{font-size:11px;line-height:1.85;margin:0}
.rx-fine{font-size:11px;line-height:1.8;color:#6a7863;margin:16px 0}
.rx-evidence>.text-button{font-size:11px}
.rx-inscription{text-align:center;padding:30px 25px 36px;max-width:840px;margin:auto}
.rx-inscription .rx-eyebrow{font-size:8px}
.rx-inscription>p:nth-child(2){font:italic 29px/1.5 Georgia,serif;letter-spacing:-.4px;max-width:700px;margin:0 auto 14px;color:#4b634c}
.rx-inscription .text-button{font-size:10px;color:#79816a}
.rx-inscription-options{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:19px}
.rx-inscription-options button{border:1px solid #b9c7ac;border-radius:20px;background:transparent;color:#66765c;padding:8px 12px;font-size:11px}
.rx-inscription-options button[aria-pressed=true]{background:#e3e8d7;border-color:#829776;color:#3e583f}
.rx-keepsake{margin:12px 0 41px;display:grid;grid-template-columns:155px 1fr auto;align-items:center;gap:32px;background:#e8ecdf;border:1px solid #d3dac7;border-radius:8px;padding:27px 32px}
.rx-mini{max-width:145px;transform:rotate(-3deg);box-shadow:4px 8px 16px #293c2c12;border-radius:5px;overflow:hidden}
.rx-mini svg,.rx-portrait svg{display:block;width:100%;height:auto}
.rx-keepsake .rx-eyebrow{font-size:8px;margin-bottom:9px}
.rx-keepsake h2{font-size:31px;margin:0 0 10px}
.rx-keepsake>div>p:last-child{font-size:12px;color:#68765d;max-width:395px;line-height:1.85;margin:0}
.rx-keep-action{text-align:center;min-width:165px}
.rx-keep-action .button{font-size:12px;min-height:44px}
.rx-keepsake .rx-keep-action p{font-size:9px;line-height:1.7;color:#728168;margin:9px 0 0}
.rx-next{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:7px 0 37px}
.rx-next .rx-eyebrow{font-size:8px;color:#9d7758;margin-bottom:7px}
.rx-next h3{font-size:25px;margin:0 0 8px}
.rx-next p:last-child{font-size:12px;color:#6a7366;margin:0;max-width:550px}
.rx-next .text-button{font-size:11px;white-space:nowrap;color:#536c50}
.rx-details{border-top:1px solid #d9ddcf;border-bottom:1px solid #d9ddcf;padding:12px 0}
.rx-details>summary{font-size:11px}
.rx-details .philosophy-grid{margin-top:25px}
.rx-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 0 35px}
.rx-bottom p,.rx-bottom .text-button{font-size:10px;color:#77836c;margin:0}
#summary-dialog{width:min(880px,calc(100% - 32px));padding:29px;border-radius:12px;max-height:92vh;background:#f7f5ee}
#summary-dialog::backdrop{background:#0b252cbf;backdrop-filter:blur(7px)}
.rx-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}
.rx-dialog-bar .rx-eyebrow{font-size:9px;color:#8b805b;margin:0}
.rx-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid #cbd2bf;border-radius:50%;background:transparent;font-size:21px;color:#304537}
.rx-share-layout{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
.rx-portrait{max-width:360px;width:100%;margin:auto;box-shadow:0 12px 35px #293b3020;border-radius:8px;overflow:hidden;background:#173437}
.rx-share-copy h2{font-size:34px;line-height:1.15;margin:0 0 13px}
.rx-share-copy>p{font-size:12px;line-height:1.9;color:#687467}
.rx-share-copy>label{display:block;font-size:11px;color:#64755d;margin:21px 0 6px}
.rx-share-copy>label span{font-size:10px;color:#788269}
#summary-name{border:1px solid #bdcbb0;background:#fffdf5;padding:9px 11px;border-radius:6px;width:100%;font:inherit;font-size:13px;color:#304537;box-sizing:border-box}
.rx-customize{margin:13px 0 21px;font-size:11px;color:#6f7d63}
.rx-customize summary{cursor:pointer;width:fit-content}
.rx-customize label{display:flex;align-items:center;gap:9px;margin:10px 0}
.rx-customize input{width:15px;height:15px;margin:0;accent-color:#354b3e}
.rx-customize p{font-size:11px}
.rx-share-buttons{display:flex;flex-wrap:wrap;gap:9px}
.rx-share-buttons .button{font-size:11px;padding:10px 13px;min-height:44px}
.rx-recipient-link{display:inline-block;font-size:11px;margin-top:18px;color:#6d7c62}
.rx-share-copy .rx-fine{font-size:10px;color:#6a7863}
.shared-mode #main{width:100%;max-width:none}
.shared-mode .header-right,.shared-mode .site-footer{display:none}
.shared-mode .site-header{width:min(520px,calc(100% - 40px));padding:24px 0 20px}
.rx-public{width:min(520px,calc(100% - 40px));margin:auto;padding:24px 0 35px}
.rx-public>.rx-eyebrow{font-size:9px;text-align:center;margin-bottom:20px}
.rx-public .rx-portrait{max-width:465px}
.rx-public-after{text-align:center;padding:28px 10px 0}
.rx-public-after h1{font-size:32px;line-height:1.25;letter-spacing:-.7px;margin:0 0 12px}
.rx-public-after p{font-size:13px;color:#687467}
.rx-public-after>.text-button{display:block;margin:22px auto 0;font-size:11px}
.rx-public-note{font-size:10px;line-height:1.7;color:#7c8873;text-align:center;margin:25px 10px 0}
.rx-invalid{padding-top:60px;min-height:65vh}
.rx-invalid h1{font-size:42px}
.rx-revealing .rx-new-branch .rx-branch-path{stroke-dasharray:700;stroke-dashoffset:700;animation:rx-draw 1.7s cubic-bezier(.2,.6,.4,1) forwards}
.rx-revealing .rx-new-branch .rx-star{animation:rx-star .55s ease both;animation-delay:var(--delay)}
.rx-revealing .rx-new-branch .rx-aura{animation:rx-aura 1.8s ease both;animation-delay:var(--delay)}
.rx-revealing .rx-hero-copy{animation:rx-recognize .75s ease .2s both}
@keyframes rx-draw{to{stroke-dashoffset:0}}@keyframes rx-star{from{opacity:.08}to{opacity:1}}@keyframes rx-aura{from{opacity:0}to{opacity:.075}}@keyframes rx-recognize{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:850px){.rx-content{width:calc(100% - 48px)}.rx-hero{gap:10px;min-height:510px}.rx-hero h1{font-size:51px}.rx-hero .rx-tagline{font-size:20px}.rx-strength p:last-child{font-size:21px}.rx-insight-grid{gap:34px}.rx-insight-grid h2{font-size:31px}.rx-keepsake{grid-template-columns:125px 1fr;gap:23px;padding:24px}.rx-mini{max-width:125px;grid-row:1/3}.rx-keep-action{grid-column:2;text-align:left;min-width:0}.rx-keepsake h2{font-size:27px}.rx-sigil-tools{gap:10px}.rx-earned{gap:18px}}
@media(max-width:590px){.rx-content{width:calc(100% - 40px)}.result-mode .site-header{padding:20px}.result-mode .site-header .brand{font-size:23px}.result-mode .header-atlas{font-size:11px}.rx-hero{grid-template-columns:1fr;padding:34px 0 29px;gap:15px;min-height:0}.rx-hero h1{font-size:49px;letter-spacing:-1.6px}.rx-the{font-size:24px}.rx-hero .rx-eyebrow{font-size:9px}.rx-hero .rx-tagline{font-size:21px;max-width:340px}.rx-strength p:last-child{font-size:22px}.rx-strength .rx-eyebrow{font-size:8px}.rx-sigil-scene{max-width:395px;margin:15px auto 0}.rx-sigil-scene .rx-eyebrow{font-size:8px}.rx-sky-frame{max-width:360px;margin:auto}.rx-earned{flex-direction:column;align-items:flex-start;gap:8px;font-size:11px}.rx-earned>span:last-child{font-size:8px}.rx-reading{padding:35px 0 20px}.rx-insight-grid{grid-template-columns:1fr;gap:25px}.rx-insight-grid h2{font-size:31px}.rx-everyday{padding-left:18px}.rx-evidence-grid{grid-template-columns:1fr;gap:14px}.rx-inscription{padding:25px 2px 29px}.rx-inscription>p:nth-child(2){font-size:25px}.rx-keepsake{grid-template-columns:90px 1fr;gap:18px;padding:22px 18px;margin-bottom:32px}.rx-mini{max-width:90px;grid-row:1/3}.rx-keepsake h2{font-size:25px}.rx-keepsake>div>p:last-child{font-size:11px}.rx-keepsake .rx-eyebrow{font-size:7px}.rx-keep-action{grid-column:1/-1;display:flex;align-items:center;gap:16px;justify-content:center;padding-top:7px}.rx-keepsake .rx-keep-action p{font-size:9px;margin:0}.rx-next{align-items:flex-start;flex-direction:column;gap:17px;padding-bottom:26px}.rx-bottom{flex-wrap:wrap;gap:17px}.rx-bottom p{flex-basis:100%}.rx-share-layout{grid-template-columns:1fr;gap:26px}.rx-share-layout .rx-portrait{max-width:260px}.rx-share-copy h2{font-size:30px}#summary-dialog{padding:20px}.rx-dialog-bar{margin-bottom:20px}.rx-dialog-bar .rx-eyebrow{font-size:8px}.rx-public{width:calc(100% - 32px)}.rx-public-after h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.rx-revealing *{animation:none!important;stroke-dashoffset:0!important}.rx-pin:after{transition:none}}

/* Quiet, accessible account entry and private profile controls. */
.header-profile { white-space: nowrap; }
.account-invitation { border-top: 1px solid #d9d7cb; border-bottom: 1px solid #d9d7cb; padding: 24px 0; margin: 24px 0; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.account-invitation p { margin: 4px 0; }
.account-invitation [data-account-status] { font-size: 12px; color: #566451; }
#account-dialog { width: min(600px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; }
#account-dialog h2 { font-family: Georgia, serif; font-size: clamp(28px, 5vw, 40px); margin-top: 20px; }
#account-dialog .button { margin: 8px 8px 8px 0; }
.account-note, .account-status { font-size: 14px; line-height: 1.6; color: #566451; }
.account-status, .account-import, .account-conflict { background: #eeeee3; padding: 16px; border-radius: 8px; }
.account-import, .account-conflict { margin: 20px 0; }
.account-import fieldset { margin: 16px 0; border: 1px solid #aab3a2; padding: 12px; }
.account-import label { display: block; margin: 10px 0; cursor: pointer; }
.account-import input { accent-color: #354b3e; width: 18px; height: 18px; vertical-align: middle; }
.account-history { border-top: 1px solid #d9d7cb; padding-top: 16px; margin-top: 24px; }
.account-history > button { display: block; text-align: left; margin: 10px 0; }
.account-signout { border-top: 1px solid #d9d7cb; padding-top: 12px; margin-top: 24px; }
@media(max-width:700px) { .header-profile { font-size: 12px; } .account-invitation { align-items: flex-start; gap: 12px; } .account-invitation > button { flex-shrink: 0; } }

/* A quiet optional chapter; evidence lives one click beneath the reveal. */
.rx-detour{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:25px 0;padding:30px;border:1px solid var(--line);border-radius:18px;background:#eeeee3}.rx-detour h3{font:400 28px Georgia,serif;margin:7px 0 10px}.rx-detour p{font-size:13px;line-height:1.7;margin:5px 0}.rx-detour .button{flex-shrink:0}.depth-heading{max-width:760px;margin:45px auto 25px}.depth-heading h1{font:400 clamp(35px,6vw,54px)/1.1 Georgia,serif;letter-spacing:-1px;margin:15px 0 24px}.depth-heading .lead{font-size:16px;line-height:1.8}.depth-original{margin:24px 0;font-size:13px;line-height:1.8}.depth-original summary,.branch-field-notes summary{cursor:pointer;padding:12px 0;min-height:44px}.depth-choices{max-width:760px;margin:0 auto 60px}.depth-choices h2{font:400 25px Georgia,serif}.depth-reflection{display:block;margin:28px 0 12px;font-size:13px}.depth-reflection span{color:var(--muted);font-size:11px}.depth-choices textarea{display:block;resize:vertical;width:100%;box-sizing:border-box;min-height:110px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:15px;font:inherit;font-size:14px;line-height:1.6;margin:0 0 20px}.depth-comparison{margin:28px 0;padding:22px 26px;border-left:2px solid var(--rust);background:#eeeee3;font-size:13px;line-height:1.8}.depth-nav{display:flex;gap:16px;margin:24px 0}.depth-nav button{min-width:44px;min-height:44px}.depth-nav [aria-current=step]{text-decoration:underline;color:var(--rust)}.reading-trails{display:flex;flex-direction:column;gap:8px;padding:0 0 25px}.reading-trails a{overflow-wrap:anywhere;font-size:12px;line-height:1.7}.branch-field-notes{font-size:12px;margin-bottom:15px}
@media(max-width:600px){.rx-detour{align-items:flex-start;flex-direction:column;padding:24px}.rx-detour h3{font-size:25px}.depth-heading{margin-top:30px}.depth-choices .answer{padding:15px}.depth-comparison{padding:18px}.depth-choices{margin-bottom:35px}}
