/* Host-page chrome for the 20ft / 40ft iframe models. Uses official brand fonts, not Inter. */

.o3d-sec{padding-block:clamp(72px,9vw,128px)}

.o3d-embed{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,320px);
  gap:clamp(20px,2.6vw,40px);
  align-items:start;
}

.o3d-iframe-stage{
  position:relative;
  width:100%;
  min-width:0;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#e7e4df;
  isolation:isolate;
}

.o3d-iframe{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  border:0;
  background:#e7e4df;
}

.o3d-side{
  display:grid;
  gap:26px;
  align-content:start;
  min-width:0;
}

.o3d-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--rule);
}
.o3d-meta div{padding:14px 8px 14px 0;display:grid;gap:3px}
.o3d-meta div:last-child{padding-right:0}
.o3d-meta b{font:700 1.1rem/1.15 var(--display);font-stretch:112%}
.o3d-meta span{font:500 .75rem var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}

.o3d-actions{display:grid;gap:16px;justify-items:start}
.o3d-actions .btn{width:100%}
.o3d-more{margin:0;font-size:.95rem;color:var(--ink-2);line-height:1.5}

.b1-3d{min-width:0}
.b1-3d>.section-context{margin:0 0 .75rem}
.b1-3d .o3d-actions{margin-top:16px}
.b1-3d .o3d-actions .btn{width:auto;max-width:100%}

.o3d-sec .wrap,
.b1-apps-3d,
.o3d-embed,
.b1-3d,
.o3d-iframe-stage{max-width:100%}

@media (max-width:800px){
  /* 4/3 is too short for the model's own chrome in a single column. */
  .o3d-iframe-stage{
    aspect-ratio:auto;
    height:min(80svh, 720px);
    min-height:520px;
    max-height:720px;
  }
}
@media (max-width:1000px){
  .o3d-embed{grid-template-columns:minmax(0,1fr)}
  .o3d-actions{grid-template-columns:auto auto;align-items:center;justify-content:space-between;justify-items:stretch}
  .o3d-actions .btn{width:auto}
}
@media (max-width:620px){
  .o3d-iframe-stage{
    height:min(80svh, 680px);
    min-height:520px;
    max-height:680px;
  }
  .o3d-actions{grid-template-columns:minmax(0,1fr)}
  .o3d-actions .btn{width:100%}
  .o3d-meta b{font-size:1rem}
  .o3d-meta div{padding-inline:0 8px}
  html.ofl3d-stage-onscreen .wa-float{opacity:0;visibility:hidden;pointer-events:none}
}
