/* V4 Platform pages (Verlin 2026-10-19): V3's Platform pages keep their own look (v3-scoped.css, dark and light
   blades as in V3); this file sets the V4 spacing standard on every section and styles the sections that carry live
   inst.com's copy (.inst-pl). V4 rules: thin full borders, nothing moves under the cursor, Simon's fonts. */
.v3s.inst-plat-body > section { padding-top: clamp(6rem, 10vw, 10rem) !important; padding-bottom: clamp(6.5rem, 11vw, 11rem) !important; margin: 0 !important; }
.v3s.inst-plat-body .sc-wrap { box-sizing: border-box; max-width: calc(var(--wp--style--global--content-size, 1280px) + 2 * clamp(16px, 5.5vw, 80px)); padding-left: clamp(16px, 5.5vw, 80px); padding-right: clamp(16px, 5.5vw, 80px); margin-left: auto; margin-right: auto; }
.v3s.inst-plat-body .btn--primary { background: var(--wp--preset--color--brand-blue, #138dcd) !important; border-color: var(--wp--preset--color--brand-blue, #138dcd) !important; color: #fff !important; }
.v3s.inst-plat-body a:hover, .v3s.inst-plat-body li:hover, .v3s.inst-plat-body article:hover { transform: none !important; }

/* sections with live inst.com copy */
.inst-pl { background: #fff; color: #1d1d1f; }
.inst-pl--gray { background: #f5f5f7; }
.inst-pl h2 { font: 600 clamp(2rem, 3.4vw, 3rem)/1.12 var(--wp--preset--font-family--jost, sans-serif); color: #1d1d1f; letter-spacing: -.01em; margin: 0; }
.inst-pl h3 { font: 600 clamp(1.2rem, 1.6vw, 1.4rem)/1.25 var(--wp--preset--font-family--jost, sans-serif); color: #1d1d1f; margin: 0 0 .6rem; }
.inst-pl p, .inst-pl li { font-family: var(--wp--preset--font-family--instrument, sans-serif); font-size: 1.05rem; line-height: 1.65; color: rgba(29, 29, 31, .74); }
.inst-pl p { margin: 0 0 1rem; }
.inst-pl .inst-pl-k { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a65a00; margin: 0 0 1rem; }
.inst-pl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.inst-pl-text p { font-size: clamp(1.08rem, 1.3vw, 1.2rem); }
.inst-pl-text h3 { margin-top: 2rem; }
.inst-pl-head { max-width: 860px; margin: 0 0 clamp(2.5rem, 4vw, 3.5rem); }
.inst-pl-head h2 + p { margin-top: 1.2rem; font-size: clamp(1.08rem, 1.3vw, 1.2rem); }
.inst-pl-head--c { margin: 0 auto; text-align: center; }
.inst-pl-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inst-pl-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inst-pl-cards > li { box-sizing: border-box; background: #fff; border: 1px solid rgba(16, 24, 40, .14); border-radius: 16px; padding: clamp(1.5rem, 2.4vw, 2rem); }
.inst-pl:not(.inst-pl--gray) .inst-pl-cards > li { background: #f9fafb; }
.inst-pl-cards > li > p:last-child, .inst-pl-cards > li > ul:last-child { margin-bottom: 0; }
.inst-pl .inst-pl-num { font: 600 clamp(2.6rem, 4vw, 3.4rem)/1 var(--wp--preset--font-family--jost, sans-serif); color: #138dcd; margin: 0 0 .9rem; }
.inst-pl .inst-pl-sub { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #138dcd; margin: 0 0 .7rem; }
.inst-pl h3 + .inst-pl-sub { margin-top: -.3rem; color: rgba(29, 29, 31, .5); }
.inst-pl-points { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(16, 24, 40, .1); }
.inst-pl-points li { position: relative; padding-left: 1.1rem; font-size: .95rem; margin: .35rem 0; }
.inst-pl-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #f39200; }
.inst-pl-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 0; margin: clamp(2rem, 3vw, 2.75rem) 0 0 !important; }
.inst-pl-strip span { font-weight: 600; color: #1d1d1f; font-size: 1rem; }
.inst-pl-strip span + span::before { content: "·"; color: #f39200; margin: 0 1rem; }
.inst-pl-go { display: block; height: 100%; text-decoration: none !important; color: inherit; }
.inst-pl-cards > li:has(.inst-pl-go):hover { border-color: rgba(19, 141, 205, .55); }
.inst-pl-go h3 { color: #138dcd; }
.inst-pl-go p { margin: 0; }
@media (max-width: 1100px) { .inst-pl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .inst-pl-split { grid-template-columns: minmax(0, 1fr); } .inst-pl-cards, .inst-pl-cards--3 { grid-template-columns: minmax(0, 1fr); } }

/* the hero diagrams from V3 sit on the navy banner */
.inst-pl-heroviz > svg, .inst-pl-heroviz .psh-viz { width: 100%; max-width: 540px; margin-left: auto; }
.inst-pl-heroviz .psh-viz svg { width: 100%; height: auto; display: block; }

/* V4 rule: no single-side accent borders (V3's orange side and top strokes) */
.inst-plat-body .pb-list li, .inst-plat-body .ct-points li { border-left: 0 !important; padding-left: 0 !important; }
.inst-plat-body .nv-points li, .inst-plat-body .v2-points li { border-top: 0 !important; padding-top: 0 !important; }
.inst-plat-body .fd-item { border: 1px solid rgba(234, 241, 248, .16) !important; }
.inst-plat-body .v2-ctx li { border: 1px solid var(--line, rgba(16, 24, 40, .14)) !important; }
/* Simon's fonts in place of V3's monospace */
.inst-plat .v3s { --sc-font-mono: var(--wp--preset--font-family--instrument, sans-serif); }
/* Live Performance: the sample dashboard keeps the banner at the common height */
.inst-pl-heroviz .kpi-card { zoom: .88; }
/* Platform Overview: V3's pinned stack hero, with V4's orange line under it */
.inst-plat-stack { position: relative; background: #071522; }
.inst-plat-stack::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, var(--bg-accent-warm, #ff9f0a), transparent 70%); }
.inst-plat-body .pb-more, .inst-plat-body .ag-link { margin-top: 1.4rem; }
.inst-plat-body .ag-link + .ag-link { margin-top: .6rem; }
/* the pinned stage sits below Simon's sticky header */
.inst-plat-stack .stack-stage { top: 104px !important; height: calc(100vh - 104px) !important; min-height: 0 !important; }
@media (min-width: 861px) {
  .inst-plat-stack .stack-grid { padding-top: 0; }
  /* every block shares one grid cell, so the copy is as tall as its tallest block and sits centred on the stage */
  .inst-plat-stack .stack-copy { display: grid; min-height: 0; }
  .inst-plat-stack .stack-block { position: relative; inset: auto; grid-area: 1 / 1; align-self: center; }
  .inst-plat-stack .stack-h1 { font-size: min(clamp(2.5rem, 1.2rem + 3.6vw, 5rem), 7.2vh); }
  .inst-plat-stack .stack-kicker { font-size: min(clamp(2.6rem, 1.3rem + 3.2vw, 4.6rem), 7.4vh); }
  .inst-plat-stack .stack-block--systems .stack-kicker { font-size: min(clamp(1.9rem, 1.1rem + 2vw, 3rem), 5.4vh); }
  .inst-plat-stack .stack-tiers { font-size: min(clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem), 4.6vh); }
  .inst-plat-stack .stack-block h2 { font-size: min(var(--sc-t-xl), 4.6vh); }
  .inst-plat-stack .stack { width: min(30vw, 400px, calc((100vh - 104px) * .5)); }
  /* the open stack rises above its centre; start it lower so it stays clear of the header */
  .inst-plat-stack .stack-scene { height: calc(100vh - 104px); top: calc(min(30vw, 400px, (100vh - 104px) * .5) * .24); }
}
@media (min-width: 861px) and (max-height: 820px) {
  .inst-plat-stack .stack-body { font-size: 1.02rem; }
  .inst-plat-stack .stack-lede { font-size: 1.15rem; }
  .inst-plat-stack .stack-lede, .inst-plat-stack .stack-tiers, .inst-plat-stack .stack-hint { margin-top: 1.1rem; }
  .inst-plat-stack .stack-points { margin-top: .9rem; gap: .3rem; }
  .inst-plat-stack .stack-block h2, .inst-plat-stack .stack-body { margin-top: .7rem; }
}
@media (min-width: 861px) and (max-height: 680px) {
  .inst-plat-stack .stack-lede, .inst-plat-stack .stack-body { font-size: .95rem; line-height: 1.5; }
  .inst-plat-stack .stack-lede { font-size: 1.05rem; }
  .inst-plat-stack .stack-points { gap: .15rem; }
  .inst-plat-stack .stack-points li { font-size: .85rem; }
  .inst-plat-stack .stack-kicker { font-size: min(clamp(2.6rem, 1.3rem + 3.2vw, 4.6rem), 6.4vh); }
}
/* cards inside V3's dark blades (Go Deeper On Governance): see-through with a thin full border, diagrams in V3's
   colours for dark grounds (Verlin: "transparent background ... so it pops better") */
.inst-plat-body .ground-dark .viz-cardbox { background: rgba(255, 255, 255, .03) !important; border: 1px solid rgba(234, 241, 248, .2) !important; box-shadow: none !important; }
.inst-plat-body .ground-dark .viz-cardbox:hover { border-color: rgba(58, 167, 224, .6) !important; }
.inst-plat-body .ground-dark .viz-stage { background: radial-gradient(120% 90% at 50% 0, rgba(19, 141, 205, .16), transparent 60%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 20px !important; border-bottom: 1px solid rgba(234, 241, 248, .1) !important; }
.inst-plat-body .ground-dark .viz { --vz-ink: rgba(234, 241, 248, .22); --vz-soft: rgba(234, 241, 248, .5); --vz-blue: #3aa7e0; --vz-gold: #ffb347; --vz-green: #5fd39a; }
.inst-plat-body .ground-dark .viz-node { fill: rgba(58, 167, 224, .15); }
.inst-plat-body .ground-dark .viz-fence { fill: rgba(58, 167, 224, .06); }
.inst-plat-body .ground-dark .viz-doc, .inst-plat-body .ground-dark .viz-rack { fill: rgba(255, 255, 255, .05); }
.inst-plat-body .ground-dark .viz-body h2, .inst-plat-body .ground-dark .viz-body h3 { color: #eaf1f8 !important; }
.inst-plat-body .ground-dark .viz-body p { color: #9db0c4 !important; }
/* Platform Overview, Point of Inception Visibility (Verlin 2026-10-23): the kicker, headline, paragraph and the note
   under the diagram run the full page width instead of stopping half way across. */
.inst-plat:has(#inst-stack-root) .pb:has(.ib-viz) :is(.pb-head, .pb-h, .pb-body, .ib-note) { max-width: none; }
