/* A single layout contract replaces the former breakpoint-specific offsets. */
.pyramid .card .card-content{
  position:absolute;left:0;top:0;width:100%;height:100%;min-height:0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:0;margin:0;gap:var(--value-gap,5px);box-sizing:border-box;
}
.pyramid .card .card-content svg{
  width:var(--value-icon,32px);height:var(--value-icon,32px);
  flex:0 0 var(--value-icon,32px);max-width:none;overflow:visible;
}
.pyramid .card .name{
  display:block;width:100%;max-width:none;min-width:0;flex:0 0 auto;
  font-size:var(--value-font,16px);line-height:1.2;letter-spacing:0;
  white-space:normal;overflow:visible;overflow-wrap:normal;word-break:normal;
  hyphens:manual;text-wrap:balance;text-overflow:clip;
}
.pyramid .card .grip{
  display:grid;place-items:center;flex:0 0 var(--value-grip,28px);
  width:40px;height:var(--value-grip,28px);min-height:0;
  padding:0;margin:0;font-size:20px;line-height:1;opacity:.9;
}
.pyramid .card.selected .card-content:after{bottom:-4px}
.pyramid .card:focus-visible .card-content{outline:2px solid #ffe1a5;outline-offset:3px;box-shadow:none}
.pyramid.spacious{height:auto;clip-path:none;display:flex;flex-direction:column;gap:3px;background:transparent}
.pyramid.spacious .row{height:auto;margin:0 auto;gap:3px}
.pyramid.spacious .purpose{width:100%;height:calc(290px * var(--readability-scale,1));clip-path:polygon(50% 0,100% 100%,0 100%)}
.pyramid.spacious .beliefs{width:90%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.pyramid.spacious .enablers{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.pyramid.spacious .beliefs .card,.pyramid.spacious .enablers .card{height:calc(185px * var(--readability-scale,1))}
.pyramid.spacious .enablers .card:last-child{grid-column:1/-1;width:50%;justify-self:center}

@media(max-width:600px){.diagram:has(.spacious) .level-rail{display:grid;grid-template-columns:1fr 1fr 1.3fr;grid-template-rows:1fr;order:2;margin-top:22px}}
.diagram:has(.spacious) .level{align-self:start}
.diagram:has(.spacious) .level-note,.diagram:has(.spacious) .level i{display:none}
.canvas:has(.spacious) .canvas-bottom{padding-left:0}
.pyramid.natural-labels{clip-path:none;height:auto;display:block;background:transparent}
.pyramid.natural-labels .row{clip-path:none;display:grid;width:100%;height:auto;grid-template-columns:1fr;margin:3px 0}
.pyramid.natural-labels .card{height:auto;min-height:150px;width:100%!important}
.pyramid.natural-labels .card .card-content{position:relative;inset:auto!important;width:auto!important;padding:20px;height:auto}
.pyramid.natural-labels .card .name{font-size:max(1rem,16px);overflow-wrap:anywhere}
.pyramid.natural-labels .purpose .card .name{font-size:max(1.5rem,24px)}
@media(min-width:1200px){.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:26px}.diagram{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:1150px) and (min-width:901px){.workspace{display:block}.diagram{grid-template-columns:125px minmax(0,1fr)}aside{margin:20px 0}#detail{display:grid;grid-template-columns:35% 65%}.detail-hero{height:100%;min-height:350px}}
@media(max-width:600px){.diagram:has(.spacious){display:flex;flex-direction:column}.pyramid.spacious .purpose{height:calc(250px * var(--readability-scale,1))}.pyramid.spacious .beliefs .card,.pyramid.spacious .enablers .card{height:calc(180px * var(--readability-scale,1))}}

/* Each element follows the widening silhouette independently. */
.pyramid .card .card-content > svg,.pyramid .card .card-content > .name,.pyramid .card .card-content > .grip{position:absolute}
.pyramid .card.selected .card-content:after{left:var(--mark-left,50%);top:var(--mark-top,90%);bottom:auto;transform:translateX(-50%)}
.pyramid.natural-labels .card .card-content > svg,.pyramid.natural-labels .card .card-content > .name,.pyramid.natural-labels .card .card-content > .grip{position:relative;inset:auto!important}
.pyramid.natural-labels .card .card-content > .name{width:100%!important}
.pyramid.natural-labels .card.selected .card-content:after{left:50%;top:auto;bottom:8px}
