/* Design at pace: copy on top, then an interactive demo of the scan "plate" at full width.
   The plate is a simplified replica of the Muon app with invented demo data (plate.js), framed
   in the gateway story's HUD style (cut-corner box, heavy brand-blue rails, title band; drawn on
   .plate-frame by plate.js). Capability levels run light → dark brand blue; exposure is amber → orange → red. */
.design-plate .phase-layout{grid-template-columns:1fr;gap:44px;align-items:start}
.design-plate .phase-copy>p:not(.kicker):not(.phase-pull){max-width:780px}
.design-plate .phase-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media(max-width:850px){.design-plate .phase-points{grid-template-columns:1fr;gap:4px}}

/* Brand palette, the five capability levels (Ad hoc → Leading, light → dark blue) and the three
   exposure levels (light, moderate, high: amber, orange, red). plate.js reads these, so they must stay hex. */
.plate{--p:#1b4585;--band:#1b4585;--y:#faa61a;--panel:#ffffff;--tip-line:rgba(27,69,133,.45);
  --l1:#e3ecf8;--l2:#b7cbea;--l3:#7ea2d6;--l4:#3e6eb5;--l5:#1b4585;
  --x1:#f5b52e;--x2:#ee7a2f;--x3:#d8352a}
html[data-theme=dark] .plate{--p:#5b8fdc;--band:#2b5fae;--panel:#102036;--tip-line:rgba(91,143,220,.55);
  --l1:#1f304b;--l2:#2a4a7a;--l3:#3a69ad;--l4:#5d93e2;--l5:#a9c8f5}

.plate-wrap{min-width:0;position:relative;padding:30px 0 26px}
.plate{position:relative;font-family:'DM Sans',sans-serif;color:var(--text);isolation:isolate}
.plate-noscript{padding:28px;color:var(--muted)}
.plate-frame{position:absolute;left:-44px;top:-44px;pointer-events:none;z-index:-1}
.plate-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.plate-inner{min-width:620px;padding:24px 30px 24px}
.plate-mnote{display:none;margin:0;font-size:12px;color:var(--muted)}

/* Title band: the band itself is drawn on the frame canvas; title left, view switch right */
.plate-band{position:relative;height:70px;padding:6px 0 0 30px;color:#fff}
.plate-title{display:inline-block;margin:0;font-family:'Audiowide','Manrope',sans-serif;font-weight:400;font-size:clamp(16px,1.5vw,20px);letter-spacing:.06em;text-transform:uppercase;line-height:64px}
.plate-tabs{position:absolute;right:22px;top:31px;display:inline-flex;padding:2px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.08);
  border-radius:0}
.plate-tabs button{border:0;background:transparent;color:rgba(255,255,255,.8);font:600 12px/1.2 'DM Sans',sans-serif;padding:4px 12px;cursor:pointer;transition:background .2s,color .2s;
  border-radius:0}
.plate-tabs button:hover{color:#fff}
.plate-tabs button[aria-selected="true"]{background:#fff;color:#1b4585}
.plate-tabs button:focus-visible,.plate-grid:focus-visible{outline:2px solid var(--y);outline-offset:3px}

/* The grid: header and row labels mirror the tile geometry in plate.js (9 groups, gaps 9px / 3px) */
.plate-grid{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr);row-gap:8px}
.plate-cols{grid-column:2;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));column-gap:9px;font-size:10.5px;color:var(--muted);text-align:center}
.plate-cols .grp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:3px;row-gap:2px}
.plate-cols .dom{grid-column:1/-1;font-family:'Audiowide','Manrope',sans-serif;font-weight:400;font-size:11.5px;color:var(--p);border-bottom:1px solid var(--tip-line);padding-bottom:2px}
.plate-rows{grid-column:1;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));row-gap:3px;font-size:13px;font-weight:600;padding-right:16px}
.plate-rows span{display:flex;align-items:center;justify-content:flex-end;text-align:right}
.plate-canvas{grid-column:2;position:relative;height:250px;cursor:pointer}
.plate-canvas canvas{position:absolute;inset:0;width:100%;height:100%}
/* Spotlight: the hovered tile's row name stays strong; the other names and the column labels fade with the tiles */
.plate-rows span,.plate-cols{transition:opacity .3s ease,color .3s ease}
.plate.spot .plate-rows span:not(.on),.plate.spot .plate-cols{opacity:.3}
.plate-rows span.on{color:var(--p)}

/* Tooltip, HUD style */
.plate-tip{position:absolute;z-index:3;min-width:220px;padding:12px 14px;background:var(--panel);border:1px solid var(--tip-line);box-shadow:0 12px 30px rgba(14,35,70,.18);font-size:13px;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .15s,transform .15s;
  border-radius:0}
.plate-tip.on{opacity:1;transform:none}
.plate-tip h4{margin:0 0 2px;font-family:'DM Sans',sans-serif;font-size:14.5px;font-weight:600;letter-spacing:0;color:var(--text)}
.plate-tip .code{margin:0 0 10px;font-family:'Audiowide','Manrope',sans-serif;font-size:11px;letter-spacing:.06em;color:var(--p)}
.plate-tip dl{display:grid;grid-template-columns:auto auto;gap:5px 18px;margin:0}
.plate-tip dt{color:var(--muted)}
.plate-tip dd{margin:0;text-align:right;color:var(--text);font-weight:600}
.plate-tip .expo{margin-top:9px;padding-top:9px;border-top:1px solid var(--tip-line)}
.plate-tip .sev{margin:0}
/* Exposure status pill, coloured by severity (dark text on amber/orange, white on red for contrast) */
.plate-tip .pill{display:inline-block;padding:3px 10px;border-radius:999px;font:600 12px/1.4 'DM Sans',sans-serif}
.plate-tip .pill.sev1{background:var(--x1);color:#3d2a00}
.plate-tip .pill.sev2{background:var(--x2);color:#3a1503}
.plate-tip .pill.sev3{background:var(--x3);color:#fff}
.plate-tip .obl{margin:8px 0 7px;font-weight:600;color:var(--text)}
.plate-tip .close{margin:7px 0 0;font-size:12px;font-weight:600;color:var(--p)}

/* Bottom row: legend bottom-left, hint centred, first moves bottom-right */
.plate-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:14px 24px;padding:16px 36px 22px 30px;font-size:12.5px;color:var(--muted)}
.plate-legend{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.plate-legend .cap{font-family:'Audiowide','Manrope',sans-serif;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--p)}
.plate-legend .steps{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.plate-legend .steps>span{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--text)}
.plate-legend .steps i{display:block;width:12px;height:12px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(27,69,133,.12)}
html[data-theme=dark] .plate-legend .steps i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
/* Regulatory exposure summary; the marker swatches match the canvas markers */
.plate-expo{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.plate-expo .cap{font-family:'Audiowide','Manrope',sans-serif;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--p)}
.plate-expo .items{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;color:var(--text);font-size:12.5px}
.plate-expo .items>span{display:inline-flex;align-items:center;gap:7px}
.plate-expo b{font-weight:700}
.plate-expo .cost{padding-left:18px;border-left:1px solid var(--tip-line)}
.plate-expo .cap em{font-style:normal;color:var(--text)}
.plate-expo i{display:inline-block;width:12px;height:12px;border-radius:50%;box-shadow:0 0 0 1.5px #fff,0 0 0 4px var(--halo)}
.plate i.sev1{background:var(--x1);--halo:rgba(245,181,46,.32)}
.plate i.sev2{background:var(--x2);--halo:rgba(238,122,47,.32)}
.plate i.sev3{background:var(--x3);--halo:rgba(216,53,42,.32)}
.plate-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Tablet: narrower label column so all 27 dimensions fit without sideways scrolling */
@media(max-width:900px) and (min-width:621px){
  .plate-grid{grid-template-columns:128px minmax(0,1fr)}
  .plate-rows{font-size:12.5px;padding-right:12px}
}
@media(max-width:620px){
  .plate-wrap{padding-top:40px}
  .plate-band{padding-left:22px}
  .plate-title{font-size:15px}
  .plate-tabs{right:12px}.plate-tabs .long{display:none}
  .plate-tabs button{padding:4px 10px}
  .plate-mnote{display:block;padding:16px 20px 0}
  .plate-inner{min-width:760px;padding:16px 20px 18px 0}
  .plate-scroll{margin:0 8px}
  .plate-grid{grid-template-columns:118px minmax(0,1fr)}
  /* Activity names stay in view while the tiles scroll sideways */
  .plate-rows,.plate-corner{position:sticky;left:0;z-index:2;background:var(--panel)}
  .plate-rows{font-size:12px;padding:0 12px}
  .plate-foot{flex-direction:column;align-items:flex-start;padding:14px 20px 22px;gap:14px}
  .plate-legend{align-items:flex-start}
  .plate-expo .cost{padding-left:0;border-left:0}
}
@media(prefers-reduced-motion:reduce){.plate *{transition:none!important}}
/* Heading and body copy, then the plate, then the points */
.design-plate .phase-head>p:last-child{margin-bottom:0}
