/* Editorial specimen profiles, contained entirely in the existing detail dialog. */
#detail-dialog.specimen-dialog{max-width:1080px;width:calc(100% - 64px);max-height:92dvh;height:fit-content;overflow:hidden;border-radius:10px}
#detail-dialog.specimen-dialog .dialog-shell{padding:0;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5e5b53 #101114}
#detail-dialog.specimen-dialog .close{position:sticky;float:right;top:14px;right:auto;margin:14px 14px -54px 0;width:40px;height:40px;z-index:20;background:#111318e8;backdrop-filter:blur(12px)}
.specimen-profile{clear:none;--profile-gold:#c9b899}
.profile-hero{display:grid;grid-template-columns:42% 1fr;min-height:285px;border-bottom:1px solid #ffffff14}
.profile-hero figure{position:relative;margin:0;min-height:285px;background:#191c1e;overflow:hidden}
.profile-hero figure>img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}
.profile-hero figcaption{position:absolute;bottom:0;left:0;right:0;padding:24px 22px 14px;background:linear-gradient(transparent,#08090bd9);font-size:10px;letter-spacing:.8px;color:#d2d1ca}
.profile-heading{padding:42px 38px 30px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
#detail-dialog .profile-heading .eyebrow{font-size:10px;line-height:1.6;margin:0 0 18px;max-width:90%}
#detail-dialog .profile-heading h2{font-size:clamp(34px,4vw,55px);line-height:1.05;letter-spacing:-1.1px;margin:0 0 12px}
#detail-dialog .profile-heading .profile-scientific{font-family:Georgia,serif;font-size:15px;color:#a5a7ac;margin:0 0 12px;line-height:1.5}
#detail-dialog .profile-heading .profile-deck{font-family:Georgia,serif;font-size:17px;line-height:1.5;margin:0 0 18px;color:#d2c7b2}
.profile-compare{font-size:12px;padding:10px 0;border-bottom:1px solid #c9b89955;color:#e1d5bf;min-height:40px;display:flex;gap:15px;align-items:center}
.profile-compare>span{font-size:21px;color:var(--profile-gold)}
.profile-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:22px 30px;border-bottom:1px solid #ffffff14;background:#ffffff02;gap:0}
.profile-facts>div{padding:0 22px;border-left:1px solid #ffffff18;min-width:0}.profile-facts>div:first-child{border:0;padding-left:8px}
.profile-facts dt{font-size:9px;letter-spacing:1.5px;color:#92959b;line-height:1.5;margin-bottom:9px}
.profile-facts dd{font-size:22px;color:#e6e3da;margin:0;font-weight:400;line-height:1.3}
.profile-facts>div:last-child dd{font-size:16px;padding-top:4px;overflow-wrap:anywhere}
.profile-tabs{display:flex;gap:28px;padding:0 38px;border-bottom:1px solid #ffffff20;position:sticky;top:0;z-index:8;background:#111216f2;backdrop-filter:blur(12px)}
.profile-tabs button{position:relative;font-size:13px;color:#a8aaae;min-height:60px;padding:16px 0;white-space:nowrap}
.profile-tabs button>span{font-size:9px;color:#7b8086;margin-right:10px}
.profile-tabs button[aria-selected=true]{color:#eadbc2}.profile-tabs button[aria-selected=true]::after{content:'';height:2px;background:#c9b899;position:absolute;bottom:-1px;left:0;right:0}
.profile-panel{padding:32px 38px 38px;min-height:340px}.profile-panel[hidden]{display:none!important}
#detail-dialog .profile-panel p{font-size:14px;line-height:1.8;margin:0;color:#bfc2c6;max-width:none}
#detail-dialog .profile-panel .profile-kicker{font-size:9px;letter-spacing:1.8px;line-height:1.5;color:#b8a58a;margin:0 0 12px}
#detail-dialog .profile-panel h3{font-family:Georgia,serif;font-weight:400;font-size:23px;line-height:1.35;margin:0 0 12px;color:#e8e4da}
.profile-overview{display:grid;grid-template-columns:1.2fr 1fr;gap:50px}
.profile-lineage{padding:0 0 0 27px;border-left:1px solid #ffffff1c}
.profile-lineage ol{list-style:none;margin:0 0 14px;padding:0;font-size:13px;color:#ded9cd}
.profile-lineage li{position:relative;padding:5px 0 5px 18px;border-left:1px solid #b8a58a4d}.profile-lineage li::before{content:'';position:absolute;top:50%;left:0;width:10px;height:1px;background:#b8a58a4d}
#detail-dialog .profile-lineage p:last-child{font-size:11px;line-height:1.6;color:#92979e}
.profile-world{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;align-items:start}
.profile-map{margin:0}.profile-map svg{display:block;width:100%;height:auto;background:#171b20;border:1px solid #ffffff16;border-radius:3px}
.map-grid{stroke:#ffffff0d;stroke-width:1;fill:none}.map-halo{fill:#d6b7791a}.map-ring{fill:none;stroke:#d1bb94;stroke-width:1.4}.map-point{fill:#edd7b0}
.profile-map figcaption{font-size:10px;line-height:1.6;color:#92979d;margin-top:10px}.profile-map figcaption a{border-bottom:1px solid #ffffff28}
#detail-dialog .profile-world .profile-map-note{font-size:11px;color:#959ba2;margin-top:15px}
.profile-evidence{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:27px}
.profile-evidence>section{display:flex;gap:15px}.evidence-number{font-family:Georgia,serif;font-size:25px;color:#8d7c62;line-height:1.2}
#detail-dialog .profile-evidence h3{font-size:20px}
.profile-uncertainty{border:1px solid #b8a58a35;background:#b8a58a06;padding:18px 22px;margin-bottom:25px;border-radius:3px}
#detail-dialog .profile-uncertainty p:last-child{font-size:13px;line-height:1.7}
.profile-sources{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:11px;color:#c3b08f;line-height:1.6}.profile-sources>span{font-size:9px;letter-spacing:1.5px;color:#838990}.profile-sources a{border-bottom:1px solid #c3b08f35;padding-bottom:3px}
.profile-back{display:block;padding:10px 0;margin:0 0 20px;font-size:12px;color:#cab89a;border-bottom:1px solid #cab89a44}
.jurassic-species{border-radius:4px;cursor:pointer;transition:border-color .25s,background-color .25s}
.jurassic-species:hover,.jurassic-species:focus-within{border-color:#cfb47a80;background-color:#131c18d9}
@media(max-width:760px){
 #detail-dialog.specimen-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0}
 #detail-dialog.specimen-dialog .dialog-shell{height:100dvh;max-height:100dvh}
 #detail-dialog.specimen-dialog .close{top:12px;margin:12px 12px -52px 0;width:40px;height:40px}
 .profile-hero{grid-template-columns:1fr;min-height:0}.profile-hero figure{height:190px;min-height:190px}.profile-hero figure>img{object-position:center 43%}
 .profile-hero figcaption{font-size:9px;padding:20px 22px 12px}.profile-heading{padding:23px 24px 21px}
 #detail-dialog .profile-heading .eyebrow{font-size:9px;margin-bottom:12px;max-width:none}
 #detail-dialog .profile-heading h2{font-size:37px;margin-bottom:10px}
 #detail-dialog .profile-heading .profile-deck{font-size:15px;margin-bottom:10px}.profile-compare{font-size:12px;padding:6px 0}
 .profile-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px 24px;row-gap:20px}.profile-facts>div{padding:0 14px;border:0}.profile-facts>div:nth-child(odd){padding-left:0}.profile-facts>div:nth-child(even){border-left:1px solid #ffffff18}
 .profile-facts dt{font-size:9px;letter-spacing:1px;margin-bottom:6px}.profile-facts dd{font-size:20px}.profile-facts>div:last-child dd{font-size:15px}
 .profile-tabs{gap:0;padding:0 20px;justify-content:space-between}.profile-tabs button{font-size:12px;min-height:54px}.profile-tabs button>span{display:none}
 .profile-panel{padding:26px 24px 34px;min-height:320px}.profile-overview,.profile-world,.profile-evidence{grid-template-columns:1fr;gap:25px}
 #detail-dialog .profile-panel p{font-size:14px;line-height:1.75}#detail-dialog .profile-panel h3{font-size:22px}
 .profile-lineage{padding-left:19px}.profile-map figcaption{font-size:10px}.profile-uncertainty{padding:17px}
 .profile-sources{align-items:flex-start;gap:12px;flex-direction:column;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.jurassic-species{transition:none}}
