
/* PROJECT v2.1 — a vertical editorial archive, layered over shared site CSS */
body:has(.pv21-hero) main{max-width:800px}
body:has(.pv21-hero) .pv21-eyebrow{font:11px/1.5 Consolas,'Courier New',monospace;color:#ff00aa;letter-spacing:.09em;margin:35px 0 15px}
body:has(.pv21-hero) .pv21-hero{margin:0 auto 30px;min-height:0;padding:0}
body:has(.pv21-hero) .pv21-hero .title-image{max-width:min(100%,570px);width:100%;height:auto;object-fit:contain}
body:has(.pv21-hero) .pv21-nav{display:flex;flex-wrap:wrap;gap:9px 16px;border-top:1px solid #383838;border-bottom:1px solid #383838;padding:14px 0;margin:15px 0 55px}
.pv21-nav button{background:transparent;border:0;padding:0;cursor:pointer;font:10px/1.6 Consolas,'Courier New',monospace;text-decoration:none;color:#a5a5a5}
.pv21-nav button:hover,.pv21-nav button:focus-visible{color:#ff00aa}
body:has(.pv21-hero) .project-section{max-width:680px;margin:0 auto 78px;padding:0;scroll-margin-top:95px}
body:has(.pv21-hero) .project-section h2{font:700 clamp(17px,3vw,21px)/1.3 Consolas,'Courier New',monospace;color:#ff00aa;margin:0 0 5px;letter-spacing:.035em}
.pv21-meta{font:10px/1.5 Consolas,'Courier New',monospace;color:#777;letter-spacing:.08em;margin:0 0 25px}
body:has(.pv21-hero) #story p,body:has(.pv21-hero) #world p{max-width:650px;line-height:1.85}
body:has(.pv21-hero) .character-grid,body:has(.pv21-hero) .phenomena-grid{display:block!important;grid-template-columns:none!important;gap:0!important;width:100%;max-width:none}
body:has(.pv21-hero) article.character,body:has(.pv21-hero) article.phenomenon{display:block!important;position:relative;width:100%!important;max-width:none!important;margin:0!important;border-bottom:1px solid #363636;padding:0!important}
body:has(.pv21-hero) article.character:first-child,body:has(.pv21-hero) article.phenomenon:first-child{border-top:1px solid #363636}
body:has(.pv21-hero) button.pv21-trigger{display:flex!important;align-items:center;gap:18px;text-align:left;width:100%!important;max-width:none!important;min-height:180px;border:0;background:transparent;color:#eee;padding:14px 0!important;margin:0!important;cursor:pointer;box-shadow:none;transform:none}
body:has(.pv21-hero) button.pv21-trigger:hover,body:has(.pv21-hero) button.pv21-trigger:focus-visible{background:#141014;outline-offset:-2px}
body:has(.pv21-hero) button.pv21-trigger > img:not(.archive-scribble){width:190px!important;height:155px!important;max-width:190px!important;object-fit:contain;flex:0 0 190px;position:static!important;transform:none!important;margin:0!important}
body:has(.pv21-hero) button.pv21-trigger img.archive-scribble{display:none!important}
.pv21-row-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;font-family:Consolas,'Courier New',monospace}
.pv21-number{color:#ff00aa;font-size:10px;letter-spacing:.06em}
.pv21-row-text strong{font-size:14px;font-weight:600;letter-spacing:.04em;color:#eee}
.pv21-row-text small{font-size:10px;color:#888;line-height:1.4}
.pv21-toggle{font:22px/1 Consolas,'Courier New',monospace;color:#ff00aa;padding:0 8px;transition:transform .15s}
button[aria-expanded="true"] .pv21-toggle{transform:rotate(45deg)}
body:has(.pv21-hero) .pv21-panel{display:block;position:relative;max-width:none;width:100%;margin:0;padding:24px 0 30px;background:transparent;border:0;box-shadow:none;overflow:visible;scroll-margin-top:95px}
body:has(.pv21-hero) .pv21-panel[hidden]{display:none!important}
body:has(.pv21-hero) .pv21-subject-panel{display:grid;grid-template-columns:minmax(140px,230px) minmax(0,1fr);gap:24px;align-items:start}
body:has(.pv21-hero) .pv21-subject-panel .character-portrait{width:100%;max-width:230px;height:auto;object-fit:contain;position:static}
body:has(.pv21-hero) .pv21-subject-panel .character-info{width:auto;min-width:0}
body:has(.pv21-hero) .pv21-subject-panel .character-info p{overflow-wrap:anywhere}
body:has(.pv21-hero) .pv21-phen-panel{padding:22px 0 30px}
body:has(.pv21-hero) .pv21-phen-panel p{max-width:650px;line-height:1.8}
body:has(.pv21-hero) .pv21-phen-panel img{max-width:100%;height:auto}
body:has(.pv21-hero) .archive-scribble{pointer-events:none}
body:has(.pv21-hero) .project-world .project-world-wave{opacity:.5}
body:has(.pv21-hero) #evidence .image-grid{max-width:100%}
body:has(.pv21-hero) #evidence .recovered-intro{font-size:12px;color:#aaa}
@media(max-width:650px){
body:has(.pv21-hero) .pv21-eyebrow{margin-top:22px}
body:has(.pv21-hero) .pv21-nav{gap:9px 13px;margin-bottom:43px}
body:has(.pv21-hero) .project-section{margin-bottom:60px;scroll-margin-top:65px}
body:has(.pv21-hero) button.pv21-trigger{gap:13px;min-height:128px}
body:has(.pv21-hero) button.pv21-trigger > img:not(.archive-scribble){width:120px!important;height:105px!important;max-width:120px!important;flex-basis:120px}
.pv21-row-text strong{font-size:12px}
.pv21-row-text small{font-size:9px}
body:has(.pv21-hero) .pv21-subject-panel{grid-template-columns:1fr;gap:16px}
body:has(.pv21-hero) .pv21-subject-panel .character-portrait{max-width:min(100%,270px)}
}
@media(prefers-reduced-motion:reduce){.pv21-toggle{transition:none}}

@media(max-width:370px){body:has(.pv21-hero) button.pv21-trigger > img:not(.archive-scribble){width:96px!important;height:95px!important;max-width:96px!important;flex-basis:96px}}

/* v2.4: expanded phenomena records align left */
body:has(.pv21-hero) .pv21-phen-panel{text-align:left;}
body:has(.pv21-hero) .pv21-phen-panel p{margin-left:0;margin-right:auto;text-align:left;}
body:has(.pv21-hero) .pv21-phen-panel h3,
body:has(.pv21-hero) .pv21-phen-panel .phenomenon-number{text-align:left;}

/* v2.5 — dossier readability + restrained archive cross references */
body:has(.pv21-hero) .pv21-subject-panel{border-top:1px solid #383038;margin-top:0;padding-top:28px;padding-bottom:34px}
body:has(.pv21-hero) .pv25-dossier-info{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0}
body:has(.pv21-hero) .pv25-dossier-info .character-number{font:10px/1.5 Consolas,'Courier New',monospace;letter-spacing:.1em;color:#ff00aa;margin:0 0 7px}
body:has(.pv21-hero) .pv25-dossier-info h3{font:700 20px/1.35 Consolas,'Courier New',monospace;color:#f2edf0;margin:0 0 17px}
body:has(.pv21-hero) .pv25-dossier-info .pv25-field{display:grid;grid-template-columns:minmax(105px,42%) minmax(0,1fr);gap:12px;padding:9px 0;margin:0;border-top:1px solid #2c292c;line-height:1.5;font-size:11px}
.pv25-field-label{color:#8b8189;font-size:10px;letter-spacing:.03em}
.pv25-field-value{color:#e2dce0;overflow-wrap:anywhere}
body:has(.pv21-hero) .pv25-dossier-info > p:not(.pv25-field){font-size:11px;line-height:1.75;color:#c4bfc3;margin:12px 0}
.pv25-references{display:flex;gap:8px 14px;flex-wrap:wrap;border-top:1px solid #474047;padding-top:15px;margin-top:20px}
.pv25-ref-title{flex:0 0 100%;font:10px/1.5 Consolas,'Courier New',monospace;letter-spacing:.06em;color:#858085;margin-bottom:3px}
.pv25-references a{font:11px/1.6 Consolas,'Courier New',monospace;color:#ff00aa;text-decoration:none;padding:5px 0;overflow-wrap:anywhere}
.pv25-references a:hover,.pv25-references a:focus-visible{text-decoration:underline;text-underline-offset:3px}
body:has(.pv21-hero) .pv21-panel:focus{outline:none}
body:has(.pv21-hero) .pv21-panel:focus-visible{outline:1px dashed #ff00aa;outline-offset:5px}
@media(max-width:650px){
 body:has(.pv21-hero) .pv21-subject-panel{padding-top:20px}
 body:has(.pv21-hero) .pv25-dossier-info .pv25-field{grid-template-columns:minmax(95px,38%) minmax(0,1fr);gap:8px}
 body:has(.pv21-hero) .pv25-dossier-info h3{font-size:18px}
 .pv25-references{gap:9px 16px}
 .pv25-references a{padding:6px 0}
}

/* v2.6: connected open-file treatment, clear state, readable rhythm */
body:has(.pv21-hero) .project-section{margin-bottom:74px}
body:has(.pv21-hero) .pv21-trigger[aria-expanded="true"]{background:#110d10!important}
body:has(.pv21-hero) .pv21-trigger[aria-expanded="true"] .pv21-row-text strong{color:#ff8ed4}
body:has(.pv21-hero) .pv21-trigger[aria-expanded="true"] .pv21-number{color:#ff00aa}
body:has(.pv21-hero) .pv21-panel:not([hidden]){border-left:2px solid #ff00aa!important;padding-left:20px!important;margin-left:0!important;box-sizing:border-box}
body:has(.pv21-hero) .pv21-subject-panel:not([hidden]){border-top:1px solid #383038}
.pv26-state{font:9px/1.5 Consolas,'Courier New',monospace;letter-spacing:.08em;color:#777}
button[aria-expanded="true"] .pv26-state{color:#ff00aa}
button[aria-expanded="true"] .pv21-toggle{transform:none}
button[aria-expanded="true"] .pv21-toggle::first-letter{color:#ff00aa}
body:has(.pv21-hero) button.pv21-trigger:focus-visible,body:has(.pv21-hero) .pv21-nav button:focus-visible{outline:2px solid #ff00aa!important;outline-offset:-3px}
body:has(.pv21-hero) .pv25-references a:focus-visible{outline:2px solid #ff00aa;outline-offset:4px}
body:has(.pv21-hero) #story p,body:has(.pv21-hero) #world p,body:has(.pv21-hero) .pv21-phen-panel p{line-height:1.85}
@media(max-width:650px){body:has(.pv21-hero) .pv21-panel:not([hidden]){padding-left:12px!important}body:has(.pv21-hero) .project-section{margin-bottom:60px}body:has(.pv21-hero) button.pv21-trigger{min-height:128px}.pv26-state{font-size:8px}}
@media(prefers-reduced-motion:reduce){body:has(.pv21-hero) .pv21-trigger *,body:has(.pv21-hero) .pv21-panel{transition:none!important}}


/* v2.7: restrained subject identities and refined interactions */
body:has(.pv21-hero) #subjects article.character[data-subject="mandy"]{--pv27-accent:#FF75B5}
body:has(.pv21-hero) #subjects article.character[data-subject="tribunal"]{--pv27-accent:#20e13e}
body:has(.pv21-hero) #subjects article.character[data-subject="judge"]{--pv27-accent:#b17bdf}
body:has(.pv21-hero) #subjects article.character .pv21-trigger[aria-expanded="true"] .pv21-number,
body:has(.pv21-hero) #subjects article.character .pv21-trigger[aria-expanded="true"] .pv21-row-text strong,
body:has(.pv21-hero) #subjects article.character .pv21-trigger[aria-expanded="true"] .pv26-state,
body:has(.pv21-hero) #subjects article.character .pv21-trigger[aria-expanded="true"] .pv21-toggle{color:var(--pv27-accent)!important}
body:has(.pv21-hero) #subjects .pv21-subject-panel:not([hidden]){border-left-color:var(--pv27-accent)!important}
body:has(.pv21-hero) #subjects .pv21-subject-panel:not([hidden]) .character-number{color:var(--pv27-accent)!important}
body:has(.pv21-hero) #subjects .pv21-subject-panel:not([hidden]) .pv25-references a{color:var(--pv27-accent)}
body:has(.pv21-hero) .pv21-panel:not([hidden]){animation:pv27-reveal .16s ease-out both}
@keyframes pv27-reveal{from{opacity:.55}to{opacity:1}}
.pv27-back-index,.pv27-return{display:inline-block;appearance:none;border:0;background:transparent;color:#999;font:10px/1.6 Consolas,'Courier New',monospace;letter-spacing:.05em;text-align:left;cursor:pointer;padding:10px 0;margin-top:18px}
.pv27-return{color:#ff00aa;display:block;margin-top:12px}
.pv27-return[hidden]{display:none!important}
.pv27-back-index:hover,.pv27-return:hover,.pv27-back-index:focus-visible,.pv27-return:focus-visible{color:#ff00aa;text-decoration:underline;text-underline-offset:4px}
.pv27-back-index:focus-visible,.pv27-return:focus-visible{outline:2px solid #ff00aa;outline-offset:3px}
body:has(.pv21-hero) .pv21-panel.pv27-flash:not([hidden]){box-shadow:inset 3px 0 0 #ff00aa}
@media(max-width:650px){.pv27-back-index,.pv27-return{min-height:44px;display:inline-flex;align-items:center}}
@media(prefers-reduced-motion:reduce){body:has(.pv21-hero) .pv21-panel:not([hidden]){animation:none!important}}

/* v2.8 — restrained readability, recovered-material presentation, mobile */
body:has(.pv21-hero) .pv28-close-all{display:block;margin:-36px 0 48px auto;padding:8px 0;border:0;background:none;color:#ff00aa;font:10px/1.6 Consolas,'Courier New',monospace;letter-spacing:.04em;cursor:pointer}
body:has(.pv21-hero) .pv28-close-all[hidden]{display:none!important}
body:has(.pv21-hero) .pv28-close-all:hover{text-decoration:underline;text-underline-offset:3px}
body:has(.pv21-hero) .pv28-close-all:focus-visible{outline:2px solid #ff00aa;outline-offset:4px}
body:has(.pv21-hero) .pv25-dossier-info .pv25-field{line-height:1.65;padding-block:11px}
body:has(.pv21-hero) .pv25-dossier-info > p:not(.pv25-field){font-size:12px;line-height:1.8}
body:has(.pv21-hero) .pv21-phen-panel{text-align:left}
body:has(.pv21-hero) #evidence .image-grid{align-items:start;gap:28px 18px}
body:has(.pv21-hero) #evidence .pv28-evidence{min-width:0;margin:0;display:flex;flex-direction:column;gap:0}
body:has(.pv21-hero) #evidence .pv28-evidence .recovered-image{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}
body:has(.pv21-hero) #evidence .pv28-evidence .recovered-data{width:100%;box-sizing:border-box;margin:0;padding:13px 0 0;border-top:1px solid #484048;text-align:left}
body:has(.pv21-hero) #evidence .pv28-evidence .recovered-file{display:block;margin:0 0 8px;color:#ff00aa}
body:has(.pv21-hero) #evidence .pv28-evidence .recovered-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
body:has(.pv21-hero) #evidence .pv28-evidence-pending{align-self:start}
@media(max-width:650px){body:has(.pv21-hero) .pv28-close-all{margin:-28px 0 37px auto;min-height:44px}body:has(.pv21-hero) .pv25-dossier-info .pv25-field{grid-template-columns:minmax(80px,36%) minmax(0,1fr)}body:has(.pv21-hero) #evidence .image-grid{gap:26px}}


/* v2.9 — folder polish: preserve full-size artwork */
body:has(.pv21-hero) #subjects article.character{border-bottom-color:#3c333b}
body:has(.pv21-hero) #subjects button.pv21-trigger{gap:24px;padding-block:20px!important;min-height:190px;transition:background-color .15s ease}
body:has(.pv21-hero) #subjects button.pv21-trigger > img:not(.archive-scribble){width:190px!important;max-width:190px!important;height:155px!important;flex:0 0 190px;object-fit:contain;filter:drop-shadow(0 3px 9px rgba(0,0,0,.22))}
body:has(.pv21-hero) #subjects .pv21-row-text{gap:8px}
body:has(.pv21-hero) #subjects .pv21-row-text strong{font-size:15px;letter-spacing:.06em}
body:has(.pv21-hero) #subjects .pv21-row-text small{line-height:1.6}
body:has(.pv21-hero) #subjects button.pv21-trigger[aria-expanded="true"]{background:linear-gradient(90deg,rgba(255,0,170,.055),transparent 75%)}
body:has(.pv21-hero) #subjects button.pv21-trigger[aria-expanded="true"] > img:not(.archive-scribble){filter:drop-shadow(0 3px 12px rgba(255,0,170,.12))}
body:has(.pv21-hero) #subjects .pv21-toggle{margin-left:auto;flex:0 0 20px;text-align:center}
/* Zoom is limited to the three catalogued images; pending artifact stays inert. */
body:has(.pv21-hero) #evidence figure.pv28-evidence > img.recovered-image{cursor:zoom-in}
body:has(.pv21-hero) #evidence figure.pv28-evidence > img.recovered-image:focus-visible{outline:2px solid #ff00aa;outline-offset:5px}
.pv29-lightbox[hidden]{display:none!important}
.pv29-lightbox{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.96);display:flex;align-items:center;justify-content:center;padding:55px 24px 35px;box-sizing:border-box}
.pv29-lightbox-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;max-width:100%;max-height:100%;min-width:0}
.pv29-lightbox-image{display:block;max-width:min(96vw,1400px);max-height:calc(100dvh - 125px);width:auto;height:auto;object-fit:contain;box-shadow:0 0 0 1px #333}
.pv29-lightbox-caption{color:#b9b0b7;font:11px/1.5 Consolas,'Courier New',monospace;text-align:center;max-width:85vw}
.pv29-lightbox-close{position:absolute;top:14px;right:19px;border:1px solid #666;background:#111;color:#ff00aa;font:13px/1.2 Consolas,'Courier New',monospace;min-width:46px;min-height:42px;cursor:pointer}
.pv29-lightbox-close:focus-visible{outline:2px solid #ff00aa;outline-offset:3px}
@media(max-width:650px){body:has(.pv21-hero) #subjects button.pv21-trigger{gap:14px;min-height:135px;padding-block:12px!important}body:has(.pv21-hero) #subjects button.pv21-trigger > img:not(.archive-scribble){width:120px!important;max-width:120px!important;height:105px!important;flex-basis:120px}body:has(.pv21-hero) #subjects .pv21-row-text strong{font-size:12px}.pv29-lightbox{padding:60px 12px 25px}.pv29-lightbox-image{max-width:96vw;max-height:calc(100dvh - 135px)}}
@media(max-width:370px){body:has(.pv21-hero) #subjects button.pv21-trigger > img:not(.archive-scribble){width:96px!important;max-width:96px!important;height:95px!important;flex-basis:96px}}
@media(prefers-reduced-motion:reduce){body:has(.pv21-hero) #subjects button.pv21-trigger{transition:none}}

/* v3.0 — compact, left-aligned cross-references */
body:has(.pv21-hero) .pv25-references{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  flex-wrap:nowrap;gap:2px;text-align:left;margin-top:15px;padding-top:11px;
}
body:has(.pv21-hero) .pv25-references .pv25-ref-title{
  flex:none;width:auto;text-align:left;margin:0 0 4px;
}
body:has(.pv21-hero) .pv25-references a{
  display:block;align-self:flex-start;width:auto;text-align:left;
  margin:0;padding:3px 0;line-height:1.45;
}
@media(max-width:650px){
  body:has(.pv21-hero) .pv25-references{gap:2px}
  body:has(.pv21-hero) .pv25-references a{padding:5px 0;min-height:0}
}

/* v3.0.1 — Mandy soft neon accents, without altering other subject colors */
body:has(.pv21-hero) #subjects article.character[data-subject="mandy"] .pv21-number{color:#FF75B5}
body:has(.pv21-hero) #subjects article.character[data-subject="mandy"] button.pv21-trigger:focus-visible{outline-color:#FF75B5!important}
