/* P297: identical 16:7 crop/preview, full-bleed portfolio cover, right-side profile,
   evidence overlap, and GAS 3E DPA card hover language. Requires p295/p296 CSS. */
body.e3-portfolio-fulltheme{overflow-x:clip}
body.e3-portfolio-fulltheme main.e3-profile-page{overflow:visible;padding-top:0;gap:20px}
body.e3-portfolio-fulltheme main.e3-profile-page section.e3-cover-wide{
  position:relative;display:block;isolation:isolate;box-sizing:border-box;
  width:100vw;max-width:none;margin:0 0 0 calc(50% - 50vw);
  padding:0!important;height:auto!important;aspect-ratio:16/7;min-height:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:var(--e3-accent)!important;overflow:hidden!important;
}
body.e3-portfolio-fulltheme main.e3-profile-page section.e3-cover-wide::before,
body.e3-portfolio-fulltheme main.e3-profile-page section.e3-cover-wide::after{content:none!important;display:none!important}
body.e3-portfolio-fulltheme .e3-cover-wide>.e3-cover-art{
  position:absolute;inset:0;display:block;z-index:0;width:100%;height:100%;
  background-color:var(--e3-accent);background-image:var(--e3-cover-image);
  background-size:100% 100%;background-position:center;background-repeat:no-repeat;
  padding:0!important;margin:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
/* On a photo the original 1600x700 crop occupies the entire 16:7 banner without recropping. */
body.e3-portfolio-fulltheme .e3-cover-wide:not(.e3-has-cover)>.e3-cover-art{background-image:none}
body.e3-person-pattern-stars .e3-cover-wide:not(.e3-has-cover)>.e3-cover-art{background-image:url('patterns/stars.svg');background-size:120px 120px;background-repeat:repeat}
body.e3-person-pattern-petals .e3-cover-wide:not(.e3-has-cover)>.e3-cover-art{background-image:url('patterns/petals.svg');background-size:120px 120px;background-repeat:repeat}
body.e3-person-pattern-clouds .e3-cover-wide:not(.e3-has-cover)>.e3-cover-art{background-image:url('patterns/clouds.svg');background-size:120px 120px;background-repeat:repeat}
body.e3-person-pattern-dots .e3-cover-wide:not(.e3-has-cover)>.e3-cover-art{background-image:url('patterns/dots.svg');background-size:120px 120px;background-repeat:repeat}
body.e3-person-pattern-grid .e3-cover-wide:not(.e3-has-cover)>.e3-cover-art{background-image:url('patterns/grid.svg');background-size:120px 120px;background-repeat:repeat}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-hero-fiscal{
  position:absolute;z-index:8;top:clamp(16px,2.5vw,35px);left:clamp(18px,4.3vw,74px);right:auto;
  padding:11px 16px;background:rgba(2,29,25,.74);border:1px solid rgba(255,255,255,.55);
  border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.24);font-size:clamp(12px,.94vw,15px);
}
body.e3-portfolio-fulltheme .e3-cover-wide>.e3-hero-identity{
  position:absolute;z-index:6;right:clamp(20px,4.7vw,90px);bottom:clamp(32px,5vw,88px);
  display:flex;flex-direction:row;align-items:center;gap:clamp(18px,2.5vw,35px);
  max-width:min(66vw,840px);width:auto;min-height:0;
  background:transparent!important;padding:0!important;margin:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.e3-portfolio-fulltheme .e3-cover-wide>.e3-hero-identity>.e3-identity-copy{
  min-width:0;max-width:min(43vw,570px);padding:clamp(18px,2vw,30px)!important;
  background:rgba(1,25,24,.80)!important;border-radius:20px!important;
  color:#fff;text-align:right;border:1px solid rgba(255,255,255,.25);
  box-shadow:0 12px 38px rgba(0,0,0,.22);backdrop-filter:blur(8px);
}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-identity-copy h1{
  font-size:clamp(22px,2.55vw,41px)!important;line-height:1.25;margin:6px 0 13px;
  color:#fff!important;text-shadow:0 2px 8px #001a18e8;
}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-identity-copy p{
  font-size:clamp(12px,.99vw,16px);line-height:1.5;color:#fff!important;text-shadow:0 1px 5px #001a18cc;
}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-profile-tag{
  display:inline-block;color:#fff!important;background:rgba(255,255,255,.19)!important;padding:6px 10px!important;
}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-welcome{
  margin:8px 0!important;padding:6px 10px!important;border-left:0;border-right:3px solid #fff9;
  background:#ffffff25!important;text-align:right;
}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-profile-photo{
  flex:0 0 clamp(160px,15vw,220px);width:clamp(160px,15vw,220px);height:clamp(160px,15vw,220px);
  min-width:0;border:5px solid #fff!important;border-radius:50%;background:var(--e3-accent-soft);
  box-shadow:0 0 0 5px #ffffff64,0 20px 48px #001b2480!important;overflow:hidden;
}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-profile-photo img{width:100%;height:100%;object-fit:cover}
body.e3-portfolio-fulltheme .e3-cover-wide .e3-profile-photo .e3-avatar-fallback{font-size:58px;font-weight:800;color:var(--e3-accent-deep)}
/* Evidence slightly overlaps the photo banner like the original 3E portfolio layout. */
body.e3-portfolio-fulltheme main.e3-profile-page #evidence{
  position:relative;z-index:10;margin-top:-62px;
  border-radius:25px 25px 18px 18px;box-shadow:0 -8px 30px rgba(3,34,38,.12),0 16px 35px rgba(15,55,58,.06);
  scroll-margin-top:98px;
}
/* GAS original DPA card hover: upward motion, emphasized outline and scaling icon. */
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-grid{gap:20px}
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card{
  position:relative;min-height:220px;padding:25px 17px;border:0!important;
  border-radius:20px;background:#fff;overflow:hidden;gap:15px;
  box-shadow:0 0 0 1px rgba(0,0,0,.09),0 4px 8px rgba(0,0,0,.035);
  transition:transform .3s ease,box-shadow .3s ease!important;
}
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card:hover,
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card:focus-within{
  transform:translateY(-8px);box-shadow:0 0 0 2px var(--e3-accent),0 16px 30px rgba(0,0,0,.11);
}
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-icon{
  display:grid;place-items:center;width:76px;height:76px;border-radius:50%;margin:0 auto 3px;
  font-size:30px;background:var(--e3-accent-soft);color:var(--e3-accent-deep);border:0;
  transition:transform .3s ease,background .3s ease,color .3s ease!important;
}
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card:hover .e3-public-evidence-icon,
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card:focus-within .e3-public-evidence-icon{
  background:var(--e3-accent)!important;color:#fff!important;transform:scale(1.11) rotate(-3deg);
}
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card b{
  display:flex;align-items:center;justify-content:center;line-height:1.45;font-size:clamp(.92rem,1vw,1.05rem);min-height:42px;
}
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-open,
body.e3-portfolio-fulltheme #evidence .e3-public-evidence-empty{margin-top:auto}
@media(max-width:980px){
 body.e3-portfolio-fulltheme .e3-cover-wide>.e3-hero-identity{right:3vw;bottom:4vw;max-width:83vw;gap:16px}
 body.e3-portfolio-fulltheme .e3-cover-wide>.e3-hero-identity>.e3-identity-copy{max-width:55vw;padding:15px!important}
 body.e3-portfolio-fulltheme .e3-cover-wide .e3-profile-photo{flex-basis:150px;width:150px;height:150px}
 body.e3-portfolio-fulltheme main.e3-profile-page #evidence{margin-top:-38px}
}
@media(max-width:680px){
 body.e3-portfolio-fulltheme main.e3-profile-page section.e3-cover-wide{
   aspect-ratio:auto;height:auto!important;min-height:0!important;padding-top:0!important;overflow:visible!important;
   background:var(--e3-accent-soft)!important;
 }
 body.e3-portfolio-fulltheme .e3-cover-wide>.e3-cover-art{
   inset:0 0 auto;height:43.75vw;width:100%;background-size:100% 100%;
 }
 body.e3-portfolio-fulltheme .e3-cover-wide>.e3-hero-identity{
   position:relative;right:auto;bottom:auto;display:flex;flex-direction:row;align-items:center;
   justify-content:center;gap:11px;margin-top:43.75vw!important;padding:14px 15px 28px!important;
   max-width:none;width:100%;background:var(--e3-accent-soft)!important;
 }
 body.e3-portfolio-fulltheme .e3-cover-wide>.e3-hero-identity>.e3-identity-copy{
   max-width:100%;flex:1;min-width:0;padding:11px 12px!important;border-radius:14px!important;
   background:var(--e3-accent-deep)!important;box-shadow:none;
 }
 body.e3-portfolio-fulltheme .e3-cover-wide .e3-identity-copy h1{font-size:clamp(17px,4vw,23px)!important;margin:2px 0 4px}
 body.e3-portfolio-fulltheme .e3-cover-wide .e3-identity-copy p{font-size:11px}
 body.e3-portfolio-fulltheme .e3-cover-wide .e3-profile-photo{
    width:clamp(96px,26vw,130px);height:clamp(96px,26vw,130px);
    flex:0 0 clamp(96px,26vw,130px);border-width:3px!important;
 }
 body.e3-portfolio-fulltheme .e3-cover-wide .e3-hero-fiscal{top:10px;left:12px;right:auto;padding:7px 10px;font-size:11px}
 body.e3-portfolio-fulltheme main.e3-profile-page #evidence{margin-top:-42px;border-radius:20px 20px 16px 16px}
 body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card{min-height:160px;padding:18px 13px}
 body.e3-portfolio-fulltheme #evidence .e3-public-evidence-icon{width:58px;height:58px;font-size:25px}
}
@media(prefers-reduced-motion:reduce){
 body.e3-portfolio-fulltheme #evidence .e3-public-evidence-card,
 body.e3-portfolio-fulltheme #evidence .e3-public-evidence-icon{transition:none!important;transform:none!important}
}
/* The legacy P296 "hero > div" rule caps child divs at 700px; cover art must not inherit it. */
body.e3-portfolio-fulltheme .e3-cover-wide>.e3-cover-art{max-width:none!important;min-width:100%!important}
