/* Movable print components for the diagnosis, dispatch desk and character letters. */
.fortuneLayout,.dispatchLayout,.dispatchIndex,.letterReading{
  width:min(100%,1080px);
  margin-inline:auto;
  color:var(--ink);
  background:var(--paper) var(--grain);
}
.page-result,.page-filter,.page-cast,.page-letter{
  min-height:calc(100svh - 58px);
  padding:clamp(12px,3vw,46px) clamp(12px,4vw,66px);
  background-color:#13263a;
  background-image:repeating-linear-gradient(42deg,transparent 0 11px,#e2c89b0c 11px 12px);
}
.fortuneLayout,.dispatchLayout,.letterReading{display:grid;align-items:center;border:1px solid #c0a581;box-shadow:0 7px 28px #0c192b38}
.fortuneLayout{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
.inkLabel,.fortuneName p,.letterHouse,.letterMatch,.sameHouse,.nameStrip{
  font:700 .9rem/1.6 var(--body);
  letter-spacing:.05em;
}
.inkLabel{margin:0 0 .9em;color:var(--red)}
.fortuneCard{align-self:stretch;display:flex;flex-direction:column;border-right:4px double #a78c67;min-width:0}
.fortuneName{padding:clamp(16px,2.7vw,42px) 18px 16px;text-align:center}
.fortuneName p,.fortuneName h2,.fortuneMotto,.fortuneReading h3,.dispatchCopy h2,.indexHeader h2,.letterPaper h2{margin:0}
.fortuneName h2,.dispatchCopy h2,.indexHeader h2,.letterPaper h2{
  font:800 clamp(27px,3.4vw,54px)/1.25 var(--book);letter-spacing:.025em;
}
.fortuneName p{color:var(--red);margin-bottom:.45em}
.woodcutPortrait{
  display:block;position:relative;isolation:isolate;overflow:hidden;
  background:radial-gradient(ellipse at 70% 36%,#f9edcf8c,transparent 68%),linear-gradient(167deg,#c9aa7e33 0%,#fbedd157 78%),var(--grain);
}
.woodcutPortrait img.portraitMon{
  position:absolute;top:4%;left:4%;height:49%;width:44%;object-fit:contain;background:transparent;opacity:.20;mix-blend-mode:multiply
}
.woodcutPortrait img.bustFigure{
  position:absolute;inset:auto 0 0;width:100%;height:98%;background:transparent;object-fit:contain;object-position:bottom;
}
.fortuneCard .woodcutPortrait{flex:1 0 auto;min-height:230px;max-height:460px;aspect-ratio:1.16}
.sameHouse,.nameStrip{margin:0;padding:6px 12px;text-align:center;color:#f8e8ce;background:#172c41}
.fortuneMotto{font:700 clamp(17px,1.6vw,23px)/1.6 var(--book);padding:16px 22px;text-align:center}
.resultSharing{text-align:center;padding:0 14px 12px}
.shareActions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px}
.shareActions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.45rem .8rem;font:700 .94rem/1.45 var(--body)}
.shareX{color:#fff5e5;background:#192c46;border:3px double #d7bd98;text-decoration:none}
.shareImage{color:#853921;text-underline-offset:.22em}
.shareActions a:focus-visible{outline:3px solid #176587;outline-offset:2px}
.pastResults{list-style:none;margin:0;padding:0}.pastResults li{padding:14px 0;border-top:1px solid #ad906c}
.pastResults h3,.pastResults p{margin:.3rem 0}.pastResults .shareActions{justify-content:flex-start;margin-top:.55rem}
.fortuneReading,.dispatchCopy,.letterPaper{min-width:0;padding:clamp(22px,4.6vw,65px)}
.fortuneReading h3{font:800 clamp(20px,2.1vw,32px)/1.48 var(--book);margin:0 0 .65em}
.fortuneReading .prose,.dispatchCopy>p:not(.inkLabel),.indexHeader p:not(.inkLabel),.letterPaper>p:not(.inkLabel):not(.selectionEvidence){font:500 1rem/1.8 var(--body)}
.fortuneReading .selectionEvidence,.letterPaper .selectionEvidence{margin:1.4rem 0;font:500 .94rem/1.75 var(--body);border-block:1px solid #b9a17e;padding:.8em 0;color:#504536}
.fortuneReading blockquote,.letterPaper blockquote{margin:.6rem 0 1.2rem;padding:.25em 0 .25em .8em;border-left:3px solid var(--red);font:650 clamp(18px,1.75vw,25px)/1.6 var(--book);background:transparent}
.actionBand,.castFilters{display:flex;flex-wrap:wrap;gap:10px}
.actionBand{margin:1.4rem 0 .25rem}
.dispatchLayout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:480px}
.envelopeScene{position:relative;overflow:hidden;align-self:stretch;min-height:285px;background:#c9ac81 var(--grain);border-right:4px double #9b7958}
.envelopeScene img{position:absolute;display:block;filter:drop-shadow(1px 4px 3px #5033233b)}
.envelopeScene .foldedMap{width:74%;left:-4%;top:12%;transform:rotate(-14deg)}
.envelopeScene .sealedEnvelope{width:72%;right:1%;top:39%;transform:rotate(8deg);animation:sealArrive .45s ease-out both}
@keyframes sealArrive{from{opacity:.2;translate:12px 12px}to{opacity:1;translate:0 0}}
.senderChoices{display:grid;gap:10px;margin:1.2rem 0 .5rem}
.senderChoice{
  padding:.64rem 1rem;min-height:48px;text-align:center;background:transparent;color:var(--ink);
  border:7px solid transparent;border-image:url("assets/story-choice-frame.webp") 8 12 8 12 / 7px 9px stretch;font:700 1.09rem/1.55 var(--book)
}
.senderChoice:hover,.senderChoice:focus-visible{background:#f8d8ad}
.dispatchIndex{padding:clamp(18px,3.4vw,48px)}
.indexHeader{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:18px;border-bottom:4px double #a98c6d;padding-bottom:18px}
.indexHeader .inkLabel{margin-bottom:.45em}.indexHeader p:not(.inkLabel){margin:.6em 0 0}
.castFilters{gap:0;border:1px solid var(--ink)}
.castFilter{padding:.55em 1em;background:transparent;color:var(--ink);font:650 .95rem/1.4 var(--body);min-height:44px}
.castFilter[aria-pressed="true"]{color:#fbecd2;background:var(--ink)}
.letterGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2.1vw,28px);margin:22px 0 10px}
.letterGrid .letter{
  display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:0;padding:0;
  background:transparent;color:var(--ink);border:1px solid #998062;box-shadow:none;overflow:hidden
}
.letterGrid .woodcutPortrait{width:100%;aspect-ratio:1.35;min-height:0;border-bottom:3px solid var(--ink)}
.letterGrid .letterBody{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;padding:14px 16px 15px}
.letterHouse{font-size:.86rem;color:var(--red)}
.letterBody strong{font:800 1.85rem/1.45 var(--book)}
.letterVoice{display:block;margin:.25rem 0 12px;font:600 1rem/1.65 var(--book)}
.letterMatch{margin-top:auto;padding-top:.55rem;width:100%;border-top:1px solid #c3a986;font-size:.86rem}
.letterReading{display:block;width:min(100%,800px)}
.letterArtwork{border-bottom:3px double #aa8964;background:var(--paper) var(--grain)}
.letterArtwork .woodcutPortrait{min-height:310px;flex:1}
.letterArtwork .woodcutPortrait img.bustFigure{height:92%}
.letterPaper blockquote{margin:1.1rem 0}
@media(hover:hover){.letterGrid .letter:hover .bustFigure{transform:scale(1.025);transform-origin:bottom}.letterGrid .letter:hover{border-color:var(--red)}.letterGrid .bustFigure{transition:transform .22s ease-out}}
@media(max-width:760px){
  .page-result,.page-filter,.page-letter,.page-cast{padding:0}
  .fortuneLayout,.dispatchLayout,.letterReading{display:block}
  .fortuneCard,.envelopeScene,.letterArtwork{border-right:0}
  .fortuneCard,.envelopeScene{border-bottom:4px double #a98c6d}
  .fortuneName{padding:17px 14px 8px}
  .fortuneCard .woodcutPortrait,.letterArtwork .woodcutPortrait{min-height:0;height:clamp(150px,27svh,270px);flex:auto;max-height:none;aspect-ratio:auto}
  .fortuneCard .woodcutPortrait img.portraitMon,.letterArtwork .woodcutPortrait img.portraitMon{left:8%;height:55%;width:37%}
  .envelopeScene{height:clamp(150px,22svh,225px);min-height:0}
  .envelopeScene .foldedMap{width:min(48%,260px);left:12%;top:-10%}
  .envelopeScene .sealedEnvelope{width:min(48%,260px);right:10%;top:6%}
  .fortuneReading,.dispatchCopy,.letterPaper{padding:22px max(18px,5vw)}
  .letterGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .letterGrid .letterBody{padding:10px}.letterBody strong{font-size:1.55rem}
  .letterGrid .woodcutPortrait{aspect-ratio:1.04}
  .letterHouse,.letterMatch{letter-spacing:0}
  .actionBand>*{flex:1 1 auto}
}
@media(max-width:440px){
  .letterGrid{grid-template-columns:1fr}
  .letterGrid .letter{display:grid;grid-template-columns:minmax(116px,39%) minmax(0,1fr)}
  .letterGrid .woodcutPortrait{height:100%;min-height:146px;aspect-ratio:auto;border-bottom:0;border-right:1px solid #b59e7e}
  .letterGrid .woodcutPortrait img.bustFigure{max-height:200px}
  .letterGrid .letterBody{padding:12px}
}
@media(prefers-reduced-motion:reduce){.envelopeScene .sealedEnvelope,.letterGrid .bustFigure{animation:none;transition:none}}

/* The night market on the other side of the station bridge. */
.romanceEntry{max-width:1080px;margin-inline:auto;color:var(--ink);background:var(--paper) var(--grain);border:1px solid #a58c70;box-shadow:0 7px 28px #0c192b38}
.dateIntro{display:grid;grid-template-columns:1fr 1.12fr;border-bottom:4px double #ac8a61}
.dateIntro>img{width:100%;height:100%;max-height:390px;min-height:220px;object-fit:cover;object-position:57% 55%}
.dateCopy,.dateDesk{padding:clamp(20px,3.2vw,42px)}
.dateCopy h2,.dateDesk h3,.pickNote h3,.letterPaper h3{font-family:var(--book);color:var(--ink);line-height:1.4;margin:0}
.dateCopy h2{font-size:clamp(1.55rem,3.1vw,2.7rem)}
.dateDesk h3,.pickNote h3,.letterPaper h3{font-size:clamp(1.1rem,1.7vw,1.45rem)}
.dateCopy p:not(.inkLabel),.dateDesk p,.pickNote p,.resultNext{font:500 1rem/1.75 var(--body);margin:.65em 0 0}
.dateDesk{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(26px,4vw,60px)}
.dateDesk strong,.pickNote h3,.firstPick{color:#8f321d}.dateChoices .senderChoices{margin:.75em 0 .2em}
.dateDesk dl{margin:.7rem 0}.dateDesk dt{font:700 .95rem/1.6 var(--body);color:#82341f}.dateDesk dd{font:500 1rem/1.6 var(--body);margin:0 0 .6rem}
.pickNote{background:#f6e5c8;border-left:4px solid #9f3d26;margin:1.3rem 0 0;padding:1rem clamp(14px,2vw,24px)}.pickNote p{margin:.25rem 0}.letterPaper h3{margin-top:1.2rem}.letterPaper .selectionEvidence{margin-top:.35rem}
.letterGrid .datePreview{display:block;margin:0 0 .8rem;font:500 .96rem/1.6 var(--body)}.letterMatch.firstPick{font-weight:800}.resultNext{margin-top:1rem}
@media(max-width:760px){.dateIntro{display:flex;flex-direction:column}.dateIntro>img{height:clamp(84px,19vw,135px);min-height:0;object-position:50% 56%}.dateDesk{grid-template-columns:1fr;gap:1rem}.dateDesk,.dateCopy{padding:16px max(18px,5vw)}.dateDesk .senderChoices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dateChoices .senderChoice:first-child{grid-column:1/-1}.dateChoices .senderChoice{padding:.3rem .1rem;font-size:1rem}.dateCopy .inkLabel{margin:0 0 .3rem}.dateDesk dl{margin-bottom:.3rem}}


/* The original printed character sheets are the covers of the invitation letters. */
.letterGrid .printMount,.profileOriginal{
  background-color:#e7d4b3;
  background-image:repeating-linear-gradient(135deg,transparent 0 6px,#a9885c2e 6px 7px);
}
.letterGrid .printMount{
  position:relative;display:block;flex:none;aspect-ratio:1;width:100%;
  border-bottom:3px double #9c7954;
}
.letterGrid .profilePrint{
  position:absolute;inset:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);
  object-fit:contain;background:transparent;
}
.letterGrid [data-value="c"] .profilePrint{object-fit:cover;object-position:center 58%}
.letterGrid .letter:focus-visible,.profileNav button:focus-visible,.profileOriginal:focus-visible{
  outline:3px solid #13607c;outline-offset:3px;
}
.profileNav{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;
  width:min(100%,800px);margin:0 auto;padding:8px clamp(12px,2.5vw,26px);
  border:1px solid #b69c76;border-bottom:3px double #9b7756;
  background:var(--paper) var(--grain);color:var(--ink);
}
.profileNav button{
  min-height:44px;padding:5px 12px;font:700 .95rem/1.4 var(--body);color:var(--ink);background:transparent;
}
.profileNav .backToCast{border:1px solid currentColor;color:#82341f}
.profilePager{display:flex;gap:5px;align-items:center}.profilePager span{font:700 .85rem var(--body);white-space:nowrap}
.profileNav .pagerKey:hover,.profileNav .backToCast:hover{background:#f3d8b3}
.letterReading .letterPaper{padding:clamp(18px,3vw,32px) clamp(18px,5vw,56px) clamp(28px,4vw,48px)}
.profileOriginal{
  display:block;width:fit-content;max-width:100%;margin:0 auto;padding:0;border:0;
  cursor:zoom-in;text-align:right;
}
.profileOriginal .profilePrint{display:block;max-width:100%;height:auto;object-fit:contain}
.profileOriginal>span{
  display:inline-block;margin:3px 6px;color:#fff5df;background:#1c2e42;
  padding:.33em .75em;border:1px solid #dfc9a2;font:650 .8rem/1.3 var(--body);
}
#modal .dialoghead{position:sticky;top:0;z-index:2;background:var(--paper) var(--grain)}
@media(max-width:760px){
  .letterGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .letterGrid .letter{display:flex;flex-direction:column}
  .letterGrid .letterBody{padding:9px 11px}
  .letterGrid .letterBody strong{font-size:1.4rem}
  .letterGrid .letterVoice{font-size:.9rem;margin-bottom:.6rem}
  .letterGrid .letterHouse,.letterGrid .letterMatch{font-size:.78rem}
  .profileNav{gap:2px 6px;padding:6px 10px}
  .profileNav button{padding:5px 7px;font-size:.85rem}
  .profilePager{gap:2px}
}
dialog:has(.profileZoom){width:min(94vw,960px);max-height:90svh}
.profileZoom{overflow-x:auto;overscroll-behavior-x:contain}
.profileZoom .profilePrint{display:block;width:max-content;max-width:none;height:auto;margin-inline:auto}
.zoomHint{display:none}
@media(max-width:600px){.zoomHint{display:block;margin:.25rem 0 .75rem;font:500 .9rem/1.5 var(--body)}}


.loveTags{display:flex;flex-wrap:wrap;gap:.25rem .85rem;color:#80331f;font:650 .94rem/1.65 var(--body);text-align:left}
.loveTags>span{max-width:100%;overflow-wrap:anywhere}
.letterBody .loveTags{margin:.15rem 0 .35rem;font-size:.88rem}
.letterPaper .loveTags{padding:.3rem 0 .55rem}

.loveCompass{min-width:0;padding:clamp(18px,3vw,38px);color:#1b3046}
.loveCompass h2{font:800 clamp(1.55rem,3vw,2.25rem)/1.25 var(--book);margin:0}
.compassSub{font:500 1rem/1.7 var(--body);margin:.35rem 0 .9rem}
.radarSwitch{position:relative;display:grid;grid-template-columns:1fr 1fr;min-width:0;border:none;padding:0;margin:0;gap:0}
.radarSr,.radarSwitch>input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.radarSwitch>label{display:grid;place-items:center;text-align:center;min-height:44px;padding:.45em .25em;border:1px solid #8e7860;cursor:pointer;font:700 clamp(.875rem,1.65vw,1rem)/1.4 var(--body)}
.radarSwitch>input:checked+label{background:#1d354a;color:#fff6db;border-color:#1d354a}
.radarSwitch>input.radarWish:checked+label{background:#853925;border-color:#853925}
.radarSwitch>input:focus-visible+label{outline:3px solid #bb6320;outline-offset:2px;z-index:1}
.radarPane{grid-column:1/-1;min-width:0;--chart-ink:#294d66;--chart-fill:#4b819244;display:none}
.wishPane{--chart-ink:#963e28;--chart-fill:#cb764941}
.radarSelf:checked~.selfPane,.radarWish:checked~.wishPane{display:block}
.radarPlot{display:block;width:min(100%,390px);height:auto;margin:0 auto}
.radarPlot line,.radarRing{stroke:#a89780;stroke-width:1;fill:none}
.radarPlot text{font:700 15px var(--body);fill:#20354a}
.radarInk{fill:var(--chart-fill);stroke:var(--chart-ink);stroke-width:2.4;stroke-linejoin:round}
.radarDot{fill:var(--chart-ink);stroke:#fff4db;stroke-width:1.2}
.radarGuide,.radarEvidence small,.axisDetails small,.axisDetails>p,.radarEmpty p+.radarEmpty p{color:#635341;font:500 .875rem/1.65 var(--body)}
.radarGuide{margin:0 0 .85rem}
.loveCompass h3{margin:.65rem 0;font:800 1.2rem/1.6 var(--book)}
.radarEvidence{border-left:3px solid var(--chart-ink);padding:.2rem 0 .2rem .85rem}
.radarEvidence blockquote{margin:.25em 0;font:700 1.04rem/1.65 var(--book)}
.radarEvidence p,.axisDetails p,.characterClose,.characterContrast,.crossReading{font:500 1rem/1.75 var(--body);margin:.35rem 0}
.axisDetails{margin:.85rem 0 0;border-top:1px solid #b29978}
.axisDetails summary{cursor:pointer;padding:.75rem 0;font:700 .94rem/1.6 var(--body)}
.axisDetails>ul{list-style:none;margin:0;padding:0}
.axisDetails>ul>li{padding:.65rem 0;border-top:1px dotted #ad987a}
.axisDetails li>div{display:flex;justify-content:space-between;gap:.5rem;align-items:baseline}
.axisDetails li>div span{font:650 .9rem var(--body)}
.axisDetails li>ul{padding-inline-start:1.3rem;font:500 .9375rem/1.65 var(--body)}
.radarEmpty{padding:1.1rem 0;font:500 1rem/1.75 var(--body)}
.crossReading,.characterContrast{border-top:1px solid #ba9e79;padding-top:.6rem}
.pastResults .soft{margin-block:.4em}
#modalBody .loveCompass{padding:.8rem 0}
/* One intact character print leads both the personal and shared result. */
.page-result{padding:0;background-color:#101a26}
.resultBook{width:min(100%,1120px);margin-inline:auto;background:var(--paper) var(--grain);color:var(--ink);box-shadow:0 8px 32px #060f1966}
.resultBook .resultOpening{width:100%;max-width:none;display:block;border:0;box-shadow:none}
.resultOpening .fortuneCard{display:block;border:0;background:#152536}
.resultIdentity{display:flex;align-items:center;justify-content:center;background:var(--paper) var(--grain);text-align:start;gap:clamp(10px,1.6vw,22px);padding:clamp(14px,2.1vw,28px) clamp(12px,1.8vw,24px)}
.resultIdentity .clanEmblem{display:block;flex:none;width:clamp(55px,6.4vw,84px);height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 0 #5434152e)}
.resultIdentity p{margin:0 0 .25em}
.resultIdentity h1{font:800 clamp(1.45rem,2.7vw,2.5rem)/1.22 var(--book);letter-spacing:0;text-wrap:balance}
.completePortrait{margin:0;background:#101b28}
.completePortrait .profilePrint{display:block;width:100%;height:auto;max-height:none;margin:0;object-fit:contain;border-block:1px solid #69523e}
.completePortrait .profilePrint[width="505"]{max-width:760px;margin-inline:auto}
.completePortrait .sameHouse{padding:.48rem .8rem;border-bottom:1px solid #987952}
.completePortrait strong{font:750 1.25rem var(--book);margin-left:.25rem}
.openingReading{padding:clamp(18px,3.8vw,44px) max(20px,calc((100% - 670px)/2))}
.openingReading h2{font:800 clamp(1.4rem,2.4vw,2rem)/1.52 var(--book);margin:0 0 .65em;text-wrap:pretty}
.openingMotto{margin:0 0 .75rem;font:650 1.08rem/1.75 var(--book)}
.fortuneLine,.characterPassage>p{font:500 1rem/1.85 var(--body);margin:.24rem 0}
.characterPassage{border-top:1px solid #ac9272;margin-top:clamp(19px,2.2vw,32px);padding-top:1.05rem}
.characterPassage h3,.wishExample h4{color:#833b26;font:750 .95rem/1.6 var(--body);margin:0}
.characterPassage blockquote{margin:.45rem 0 .8rem;color:#152e43}
.characterTags{list-style:none;display:flex;flex-wrap:wrap;gap:.2rem .9rem;padding:0;margin:.7rem 0 0;color:#783622;font:650 .94rem/1.55 var(--body)}
.resultBrand{color:inherit;text-decoration:none}
.readingFlow,.resultJourney,.resultAfterword{border-top:4px double #aa8b67}
.readingFlow{padding:clamp(24px,4vw,44px) max(20px,calc((100% - 670px)/2));overflow-wrap:anywhere}
.readingFlow h2,.resultJourney h2{font:800 clamp(1.55rem,3vw,2.1rem)/1.4 var(--book);margin:0 0 .3em}
.readingFlow .radarSwitch{margin-top:1.25rem}
.radarSwitch>label{min-height:52px;padding:.65em .45em;font-weight:750}
.readingFlow .radarPlot{margin:.8rem auto .25rem;width:min(100%,430px)}
.readingFlow .radarEvidence{margin:.65rem 0 1rem}
.readingFlow h4{font:700 1.04rem/1.55 var(--book);margin:.8rem 0 .35rem}
.graphExample{margin:.5rem 0 1rem;padding:.55rem .85rem;border-left:3px solid var(--chart-ink);font:500 1rem/1.75 var(--body)}
.readingFlow .axisDetails{margin-top:.4rem}
.wishExample{margin:1.05rem 0 0;padding:.8rem 1rem;border-left:3px solid #974a31;background:#c1a07618}
.wishExample p{font:500 .95rem/1.7 var(--body)}
.wishExample blockquote{margin:.4rem 0 0;font:700 1.12rem/1.65 var(--book)}
.evidenceLink{display:inline-flex;align-items:center;min-height:44px}
.resultJourney,.resultAfterword{padding:clamp(22px,3.4vw,38px) max(20px,calc((100% - 670px)/2))}
.resultJourney{background:#182b3d;color:#fff3dc}
.resultJourney p{line-height:1.8;margin:.3rem 0 1rem}
.resultJourney :is(.cta,.sharedEntry){display:inline-flex;align-items:center;min-height:48px;padding:.7em 1.25em;background:#f6e6cb;border:3px double #9c7652;color:#472c20;text-decoration:none;font:750 1rem/1.5 var(--book)}
.resultJourney .sharedEntry small{margin-left:.6rem}
.resultAfterword{font:500 1rem/1.7 var(--body)}
.resultAfterword h2{margin:0 0 .45rem;font:750 1.18rem/1.55 var(--book)}
.resultAfterword .shareActions,.recordLinks{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:.2rem .75rem}
.resultAfterword .textbtn{min-height:44px}
.resultAfterword details,.optionalSurvey{border-top:1px solid #bda487;padding-top:1rem;margin-top:1.25rem}
.resultAfterword summary{display:list-item;cursor:pointer;font:650 1rem/1.5 var(--body);padding:.3em 0}
.shareUnavailable{padding:1.2rem max(18px,5%);font:500 1rem/1.8 var(--body)}
.shareMasthead{position:sticky;top:0;z-index:4;background:#111f2c;border-bottom:2px solid #9d7853}
.shareMasthead .bar{max-width:1184px;min-height:64px;height:auto;padding:5px clamp(12px,3vw,32px);gap:12px}
.shareMasthead .resultBrand{color:#ffefd3}
.shareMasthead .brandSeal{color:#e7a579;border-color:#e7a579}
.diagnoseNow,.resultJourney .sharedEntry{display:inline-flex;justify-content:center;align-items:center;gap:.65em;min-height:50px;padding:.55rem clamp(14px,2.8vw,38px);border:3px double #ffd4a3;color:#fff9e9;background:#96381f;text-decoration:none;font:750 clamp(1rem,1.55vw,1.25rem)/1.45 var(--book)}
.diagnoseNow>span,.resultBrand b span{white-space:nowrap}
.diagnoseNow small,.resultJourney .sharedEntry small{font:650 .875rem/1.4 var(--body);white-space:nowrap}
.shareMasthead a:focus-visible,.resultJourney a:focus-visible{outline:3px solid #ffd585;outline-offset:2px}
html:has(.shareMasthead){scroll-padding-top:78px}
@media(max-width:760px){
 .page-result{padding:0}
 .resultIdentity{justify-content:flex-start;padding:10px 16px;gap:14px}
 .resultIdentity .clanEmblem{width:clamp(52px,14vw,80px)}
 .resultIdentity h1{font-size:clamp(1.4rem,6.9vw,2.35rem)}
 .openingReading{padding:19px max(18px,5vw)}
 .readingFlow,.resultJourney,.resultAfterword{padding-inline:max(16px,4.5vw)}
 .shareMasthead .bar{gap:8px;padding:5px 8px;min-height:56px}
 .shareMasthead .edition{display:none}
 .shareMasthead .resultBrand b{font-size:.88rem;line-height:1.3}
 .diagnoseNow{min-height:46px;gap:.38rem;padding:.45rem .65rem;font-size:1rem}
 .diagnoseNow small{font-size:.75rem}
 .resultJourney .sharedEntry{width:100%}
}
@media(max-width:430px){
 .shareMasthead .resultBrand b span{display:block}
 .shareMasthead .resultBrand{gap:6px}
 .diagnoseNow{flex:1;flex-direction:column;row-gap:0;min-height:50px;padding:4px 6px}
}
@media(max-width:345px){.shareMasthead .brandSeal{display:none}.diagnoseNow{font-size:.97rem;padding-inline:3px}}
.sharePortrait{margin:0 auto 1rem}
.sharePortrait .profilePrint{display:block;width:auto;height:auto;max-width:100%;max-height:62vh;margin:auto;object-fit:contain}
