/* MADEALS v0.7b — Investor / Opportunity detail structure
   Reference: 05_REFERENCE_SCREENSHOTS/ma_Investor`s-page_5.png (1920x1900)
   The frozen v0.5 design system is not edited. The legacy/public header below is a
   screenshot-proven page variant because this reference belongs to another UI revision. */

.investor-v07b{background:#fff;color:#000;font-family:'Open Sans',Arial,Helvetica,sans-serif;}
.investor-v07b .container{width:1200px;max-width:1200px;}

/* Screenshot-proven header variant: 40px account bar + 170px main header. */
.legacy-account-bar{height:40px;background:#46423e;color:#fff;font-size:13px;line-height:40px;}
.legacy-account-bar .container{height:40px;position:relative;}
.legacy-account-user{position:absolute;right:15px;top:0;height:40px;color:#fff;font-size:13px;line-height:40px;}
.legacy-account-user .caret{display:inline-block;margin-left:4px;font-size:13px;transform:translateY(-1px);}
.legacy-account-user .gear{display:inline-block;width:12px;height:12px;margin-left:11px;border:2px solid #fff;border-radius:50%;font-size:0;vertical-align:-2px;box-sizing:border-box;}

.legacy-investor-header{height:170px;position:relative;overflow:hidden;background:#f8f6f1;margin:0;}
.legacy-header-shape{position:absolute;left:0;top:0;width:800px;height:170px;background:#fff;clip-path:polygon(0 0,87.5% 0,90% 27%,92% 50%,95% 72%,100% 100%,0 100%);}
.legacy-header-inner{height:170px;position:relative;}
.legacy-logo{position:absolute;left:15px;top:38px;width:291px;height:64px;display:block;}
.legacy-logo img{display:block;width:291px;height:64px;}
.legacy-nav a{position:absolute;top:62px;font-family:'Open Sans',Arial,Helvetica,sans-serif;font-weight:700;font-size:14px;line-height:18px;letter-spacing:4px;text-transform:uppercase;color:#000;text-decoration:none;white-space:nowrap;}
.legacy-nav-advisor{left:450px;}
.legacy-nav-support{left:578px;}
.legacy-nav-logout{right:15px;}
.legacy-language{position:absolute;left:15px;top:140px;width:130px;height:30px;box-sizing:border-box;border:1px solid #dbd4b8;background:#fff;font-family:'Open Sans',Arial,Helvetica,sans-serif;font-size:12px;font-weight:700;line-height:28px;letter-spacing:2px;text-transform:uppercase;text-align:center;padding:0;}
.legacy-language span{font-size:12px;margin-left:3px;}

/* Main geometry: header ends y=210, footer begins y=1620 in the 1920x1900 reference. */
.investor-page-main{height:1410px;min-height:1410px;margin:0;padding:0;background:#fff;}
.investor-container{height:1410px;position:relative;padding-left:15px;padding-right:15px;box-sizing:border-box;}
.investor-container h1{position:absolute;left:15px;top:70px;margin:0;font-family:Georgia,'Times New Roman',serif;font-size:40px;line-height:50px;font-weight:700;color:#000;white-space:nowrap;}
.investor-container h1 span{color:#ccc;font-weight:700;}

.investor-top-grid{position:absolute;left:15px;top:150px;width:1170px;height:370px;display:grid;grid-template-columns:770px 370px;column-gap:30px;}
.investor-hero{width:770px;height:370px;overflow:hidden;}
.investor-hero img{display:block;width:770px;height:370px;object-fit:cover;}
.investor-about-list{box-sizing:border-box;width:370px;height:370px;padding:36px 20px 20px;background:#f8f6f1;font-family:'Open Sans',Arial,Helvetica,sans-serif;}
.investor-stats{margin:0;padding:0;}
.investor-stats li{height:30px;margin:0;display:flex;align-items:center;justify-content:space-between;font-size:14px;line-height:20px;}
.investor-stats li p{margin:0;color:#999;font-weight:400;}
.investor-stats li span{font-weight:700;color:#000;text-align:right;white-space:nowrap;}
.investor-about-list h3{margin:31px 0 11px;color:#999;font-family:'Open Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:20px;font-weight:400;}
.investor-about-list>p{margin:0 0 2px;font-size:14px;line-height:20px;font-weight:700;color:#000;}

.investor-tabs{position:absolute;left:15px;top:560px;width:1170px;height:40px;border-bottom:1px solid #ccc;display:flex;align-items:flex-start;gap:0;}
.investor-tabs button{height:40px;border:0;background:transparent;margin:0;padding:0 20px 0 0;font-family:'Open Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:38px;font-weight:400;color:#000;cursor:pointer;}
.investor-tabs button+button{padding-left:4px;}
.investor-tabs button.active{color:#dbd4b8;}

.investor-lower-grid{position:absolute;left:15px;top:630px;width:1170px;height:540px;display:grid;grid-template-columns:770px 370px;column-gap:30px;}
.investor-tab-content{width:770px;min-height:540px;}
.tab-panel[hidden]{display:none!important;}
.investor-gallery{display:flex;margin:0;padding:0;list-style:none;gap:20px;align-items:flex-start;}
.investor-gallery li{margin:0;padding:0;width:300px;height:145px;}
.investor-gallery a,.investor-gallery img{display:block;width:300px;height:145px;}
.investor-gallery img{object-fit:cover;}

.investor-agent-card{width:370px;height:540px;box-sizing:border-box;background:#f8f6f1;padding:30px 65px 25px;text-align:center;font-family:'Open Sans',Arial,Helvetica,sans-serif;}
.investor-agent-photo{display:block;width:240px;height:300px;object-fit:cover;margin:0 auto 14px;}
.investor-agent-card h2{font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:22px;font-weight:700;margin:0 0 2px;color:#000;}
.investor-agent-card .company{display:block;font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:22px;color:#999;margin:0 0 5px;}
.investor-agent-card p{font-size:13px;line-height:19px;font-weight:700;margin:0;color:#000;}
.contact-agent{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:240px;height:40px;margin:17px auto 0;border:2px solid #dbd4b8;background:#fff;color:#000;text-decoration:none;font-family:'Open Sans',Arial,Helvetica,sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:3px;text-transform:uppercase;}
.contact-agent:hover{color:#000;text-decoration:none;}

/* Preserve the frozen footer geometry. */
.investor-v07b footer{margin:0;}

@media(max-width:1199px){
  .investor-v07b .container{width:100%;max-width:100%;}
  .legacy-header-shape{width:44%;}
  .legacy-logo{left:20px;}
  .legacy-nav{display:none;}
  .investor-page-main{height:auto;min-height:0;padding:50px 20px 80px;}
  .investor-container{height:auto;padding:0;}
  .investor-container h1,.investor-top-grid,.investor-tabs,.investor-lower-grid{position:static;width:100%;height:auto;}
  .investor-container h1{white-space:normal;margin-bottom:30px;font-size:34px;line-height:40px;}
  .investor-top-grid,.investor-lower-grid{display:grid;grid-template-columns:1fr;gap:30px;}
  .investor-hero,.investor-hero img,.investor-about-list,.investor-tab-content,.investor-agent-card{width:100%;height:auto;}
  .investor-hero img{aspect-ratio:770/370;}
  .investor-tabs{margin:30px 0;overflow:auto;white-space:nowrap;}
  .investor-agent-card{max-width:370px;justify-self:start;}
}

@page{size:1920px 1900px;margin:0;}

/* v0.7b structure correction: the reference tabs are a compact text row, not equal-width controls. */
.investor-tabs{gap:24px;}
.investor-tabs button,.investor-tabs button+button{min-width:0!important;width:auto!important;padding:0!important;flex:0 0 auto;}
@media print{.investor-page-main{height:1408px;min-height:1408px;}}

/* ================================================================
   v0.7b — PIXEL RECONCILIATION AGAINST ma_Investor`s-page_5.png
   Local page overrides only. Frozen v0.5 components remain untouched.
   ================================================================ */

/* Screenshot-measured legacy header curve. The white field boundary was
   sampled from x=702 at y=40 to x=840 at y=209 in the 1920px reference. */
.investor-v07b .legacy-header-shape{
  width:840px;
  height:170px;
  clip-path:polygon(
    0 0,
    702px 0,
    705px 10px,
    709px 20px,
    712px 30px,
    716px 40px,
    720px 50px,
    723px 60px,
    727px 70px,
    731px 80px,
    734px 90px,
    739px 100px,
    744px 110px,
    751px 120px,
    760px 130px,
    771px 140px,
    784px 150px,
    802px 160px,
    840px 169px,
    0 169px
  );
}

/* The historical Kepler asset is missing. Preserve the screenshot glyph height
   while compensating for the wider serif fallback used locally. */
.investor-v07b .investor-container h1{
  top:62px;
  letter-spacing:-0.9px;
}
.investor-v07b .investor-container h1 span{letter-spacing:-0.6px;}

/* Summary: screenshot is lighter and begins six pixels higher than v0.7a. */
.investor-v07b .investor-about-list{padding-top:30px;}
.investor-v07b .investor-stats li span{font-weight:600;}
.investor-v07b .investor-about-list h3{margin-top:35px;}
.investor-v07b .investor-about-list>p{font-weight:400;}

/* Tab labels in the reference have a larger visual x-height and sit higher,
   while the baseline divider itself remains at the frozen y position. */
.investor-v07b .investor-tabs button{
  font-size:15px;
  transform:translateY(-5px);
}
.investor-v07b .investor-tabs{gap:25px;}

/* Agent typography: remove the excessive synthetic bold visible in v0.7a. */
.investor-v07b .investor-agent-card h2{font-size:19px;line-height:22px;}
.investor-v07b .investor-agent-card .company{font-size:18px;line-height:22px;}
.investor-v07b .investor-agent-card p{font-weight:400;font-size:13px;line-height:19px;}
.investor-v07b .contact-agent{margin-top:17px;}

/* WeasyPrint pagination compatibility used only for the verification render.
   Browser geometry remains 40 + 170 + 1410 + 280 = 1900px exactly. */
@media print{
  .investor-v07b .investor-page-main{height:1400px;min-height:1400px;}
  .investor-v07b footer{margin-top:10px;}
}

/* v0.7b final micro-reconciliation */
.investor-v07b .legacy-header-shape{
  width:840px;height:170px;object-fit:fill;display:block;
  background:transparent;clip-path:none;
}
.investor-v07b .legacy-account-caret-img{
  width:8px;height:4px;display:inline-block;vertical-align:2px;margin-left:6px;
}
.investor-v07b .legacy-account-gear-img{
  width:12px;height:12px;display:inline-block;vertical-align:-2px;margin-left:12px;
}
.investor-v07b .investor-container h1{font-weight:600;letter-spacing:-1.1px;}
.investor-v07b .investor-container h1 span{font-weight:600;letter-spacing:-0.8px;}
.investor-v07b .investor-tabs{gap:27px;}
.investor-v07b .investor-tabs button{font-size:16.5px;font-weight:600;transform:translateY(-5px);}
.investor-v07b .investor-agent-card .company{margin-bottom:9px;}
.investor-v07b .investor-agent-card p{line-height:25px;}
.investor-v07b .contact-agent{margin-top:10px;}

@media print{
  .investor-v07b footer{position:absolute;left:0;top:1620px;width:100%;margin:0;}
  .investor-v07b .investor-page-main{height:1410px;min-height:1410px;}
}

/* Renderer-compatible serialization of the already-frozen v0.5 footer.
   Geometry/content are unchanged; only unsupported clip/grid primitives are
   expressed in forms understood by the verification renderer. */
.investor-v07b footer:before{
  clip-path:none;
  background-color:transparent;
  background-image:url('assets/recovered-from-screenshot/footer-upper-shape-v05.svg');
  background-repeat:no-repeat;
  background-position:top center;
  background-size:1920px 210px;
}
.investor-v07b footer>.container>.row{
  display:grid!important;
  grid-template-columns:400px 200px 300px 300px!important;
  gap:0!important;
  margin-left:-15px!important;
  margin-right:-15px!important;
  width:1200px!important;
}
.investor-v07b footer>.container>.row>[class*="col-"]{
  width:auto!important;
  max-width:none!important;
  flex:none!important;
  padding-left:15px!important;
  padding-right:15px!important;
}
