/*
 * Parix.ai | Chatbot Script Generator - page styles.
 *
 * Loaded after assets/css/tool-ds.css (design system, scoped .pxtool) and
 * scoped again to .pxcb. The generator's own .csg-* markup, every id, the
 * script/JSON export and the arolax_botscript_submit email flow are
 * untouched: only the appearance changes.
 *
 * @package Arolax Child
 */

/* ====================== bridge: the live generator ====================== */

.pxcb#content-area{max-width:1160px;margin:0 auto;padding:0 24px}
.pxcb > .section.tint{box-shadow:0 0 0 100vmax var(--mist);clip-path:inset(0 -100vmax)}
.pxcb > .section{padding:72px 0}

.pxcb .csg-head{padding:30px 0 34px;text-align:center}
.pxcb .csg-badge{display:inline-block;font-size:14px;font-weight:700;color:#eb600e;margin-bottom:6px}
.pxcb .csg-head h1{font-family:var(--font-head);font-size:clamp(2.1rem,4.6vw,3.3rem);line-height:1.06;
  font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:.1em 0 .3em}
.pxcb .csg-head>p{font-size:1.12rem;color:var(--muted);max-width:720px;margin:0 auto}

.pxcb .csg-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start}
.pxcb .csg-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px 20px;min-width:0}
.pxcb form.csg-card{display:grid;gap:12px}
.pxcb .csg-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pxcb .csg-field{min-width:0}
.pxcb .csg-field>label{display:block;font-weight:700;font-size:14px;margin-bottom:8px;color:var(--ink)}
.pxcb .csg-hint{font-weight:500;color:var(--muted);font-size:12.5px}
.pxcb .csg-in{width:100%;padding:10px 12px;border:1px solid var(--line-2);border-radius:10px;background:#fff;
  font:inherit;font-size:15px;color:var(--ink)}
.pxcb textarea.csg-in{resize:vertical;line-height:1.45}
.pxcb .csg-in:focus{outline:2px solid #eb600e;outline-offset:0;border-color:#eb600e}
.pxcb .csg-leg{font-weight:800;font-size:1rem;font-family:var(--font-head);color:var(--ink);
  margin:6px 0 2px;padding-top:10px;border-top:1px solid var(--line)}

/* purpose chips */
.pxcb .csg-chips{display:flex;flex-wrap:wrap;gap:8px}
.pxcb .csg-chips label{position:relative;cursor:pointer}
.pxcb .csg-chips input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.pxcb .csg-chips span{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;
  border:1.5px solid var(--line-2);border-radius:999px;font-size:14px;font-weight:600;color:var(--ink);
  transition:border-color .2s,background .2s,color .2s}
.pxcb .csg-chips span::before{content:"+";font-weight:800;color:var(--muted)}
.pxcb .csg-chips input:checked+span{border-color:#eb600e;background:#eb600e;color:#fff}
.pxcb .csg-chips input:checked+span::before{content:"\2713";color:#fff}
.pxcb .csg-chips input:focus-visible+span{outline:3px solid #eb600e;outline-offset:2px}

/* intents */
.pxcb .csg-intent-top{display:flex;gap:8px;align-items:center}
.pxcb .csg-intent-top .csg-in{font-weight:700}
.pxcb .csg-x{flex:0 0 auto;border:0;background:none;color:var(--muted);font:700 20px/1 var(--font-body);
  cursor:pointer;padding:4px 8px;border-radius:8px}
.pxcb .csg-x:hover{color:#c2410c;background:#fff}
.pxcb .csg-addbtn{justify-self:start;border:1px solid var(--line-2);background:#fff;border-radius:999px;
  padding:8px 14px;font:600 14px/1.2 var(--font-body);color:var(--ink);cursor:pointer}
.pxcb .csg-addbtn:hover{border-color:#eb600e}

/* output panel */
.pxcb .csg-out{position:sticky;top:84px}
.pxcb .csg-outbar,.pxcb .csg-panel{min-width:0}
.pxcb .csg-tabs{display:flex;gap:4px;background:var(--mist);border-radius:12px;padding:4px;margin-bottom:10px}
.pxcb .csg-tab{flex:1;border:0;background:none;padding:8px;border-radius:9px;
  font:700 14px/1 var(--font-body);color:var(--muted);cursor:pointer}
.pxcb .csg-tab[aria-selected=true],.pxcb .csg-tab.on{background:#fff;color:#eb600e;
  box-shadow:0 1px 3px rgba(58,42,33,.12)}
.pxcb .csg-pre{margin:0;height:330px;overflow:auto;background:#2b211b;color:#fbeee4;border-radius:14px;
  padding:14px;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:pre-wrap;word-break:break-word}
.pxcb .csg-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pxcb .csg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;
  border-radius:999px;font:600 14px/1.2 var(--font-body);border:1px solid var(--line-2);background:#fff;
  color:var(--ink);cursor:pointer;text-decoration:none;transition:border-color .15s,background .15s}
.pxcb .csg-btn:hover{border-color:#eb600e}
.pxcb .csg-btn-primary,.pxcb .csg-btn.primary{background:#eb600e;border-color:#eb600e;color:#fff}
.pxcb .csg-btn-primary:hover,.pxcb .csg-btn.primary:hover{background:#d4560c;color:#fff}
.pxcb .csg-copy{min-height:1.3em;margin:6px 0 0;font-size:13px;font-weight:700;color:#eb600e}
.pxcb .csg-flow{list-style:none;margin:0;padding:0;display:grid;gap:4px;counter-reset:f}
.pxcb .csg-flow li{position:relative;padding:6px 10px 6px 34px;border-radius:9px;background:var(--mist);font-size:13.5px}
.pxcb .csg-flow li::before{counter-increment:f;content:counter(f);position:absolute;left:8px;top:50%;
  margin-top:-10px;width:20px;height:20px;border-radius:50%;background:#fde9dc;color:#eb600e;
  font:800 11px/20px var(--font-head);text-align:center}
.pxcb .csg-note{font-size:13px;color:var(--muted);margin:10px 0}
.pxcb .csg-warn{font-size:13px;font-weight:600;color:#b8520f;background:#fef1e8;border-radius:10px;padding:8px 10px}
.pxcb .csg-cta{display:block;font-size:14px;font-weight:700;color:#eb600e;text-decoration:none;
  background:#fef3ec;border-radius:12px;padding:10px 12px}
.pxcb .csg-cta:hover{background:#fde9dc}
.pxcb .csg-email-form{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.pxcb .csg-email-row{display:flex;gap:8px;flex-wrap:wrap}
.pxcb .csg-email-row input{flex:1 1 180px;min-width:0;padding:9px 12px;border:1px solid var(--line-2);
  border-radius:10px;font:inherit;font-size:15px}
.pxcb .csg-msg{font-size:13.5px;font-weight:600;min-height:1.2em;color:#b8520f}
.pxcb .csg-foot-note{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.pxcb .csg-cta-bar{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;
  background:#fef3ec;border:1px solid #f8e0d0;border-radius:22px;padding:22px 26px;margin:22px 0 0;text-align:center}
.pxcb .csg-cta-bar p{margin:0;font-weight:600;color:var(--ink-2)}
.pxcb .csg-cta-bar a{font-weight:700;color:#eb600e;text-decoration:none}

/* intent editor rows, built by the tool's own script */
.pxcb .csg-intent{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--mist);
  display:grid;gap:6px;margin-bottom:10px;animation:bxin .3s ease}
.pxcb .csg-intent .csg-intent-top{display:flex;gap:8px;align-items:center;justify-content:space-between}
.pxcb .csg-intent h4{margin:0;font:800 13px/1 var(--font-head);letter-spacing:.03em;color:#eb600e;
  text-transform:uppercase}
.pxcb .csg-intent .i-name{font-weight:700}
.pxcb .csg-mini{font-size:12px;font-weight:700;color:var(--muted);margin-top:2px}
.pxcb .csg-intent .csg-x:disabled{opacity:.3;cursor:not-allowed}

/* flow preview nodes */
.pxcb .csg-node{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;
  background:var(--mist);font-size:13.5px;margin-bottom:4px}
.pxcb .csg-node .nlab{flex:0 0 auto;font-size:11.5px;font-weight:800;border-radius:999px;padding:2px 9px;
  background:#fde9dc;color:#eb600e}
.pxcb .csg-node .ntxt{color:var(--ink-2);min-width:0}
.pxcb .csg-node.greet .nlab{background:#eb600e;color:#fff}
.pxcb .csg-node.hand .nlab{background:#2b211b;color:#fff}

/* ====================== new sections ====================== */

/* stiff script vs generated script */
.pxcb .dead{width:min(100%,440px);display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pxcb .dead-col{background:#fff;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:6px;
  border:1px solid rgba(58,42,33,.08)}
.pxcb .dead-col.good{border:1.5px solid #eb600e}
.pxcb .dead-col small{font-size:12px;font-weight:700;color:var(--muted)}
.pxcb .dead .msg{max-width:92%;font-size:12.5px;padding:7px 10px;border-radius:12px}
.pxcb .dead .msg.you{align-self:flex-end;background:#ffe0c8;color:var(--ink);border-bottom-right-radius:4px}
.pxcb .dead .msg.bot{align-self:flex-start;background:var(--mist);border:1px solid var(--line);border-bottom-left-radius:4px}
.pxcb .dead .msg.bot.bad{color:var(--muted)}
.pxcb .dead-end{align-self:flex-start;font-size:11.5px;font-weight:700;background:#f3ebe6;color:var(--muted);
  border-radius:999px;padding:3px 9px;margin-top:auto}
.pxcb .qr{display:flex;flex-wrap:wrap;gap:5px}
.pxcb .qr span{font-size:11.5px;font-weight:700;border:1.5px solid #eb600e;color:#eb600e;border-radius:999px;
  padding:3px 9px;background:#fff}

/* the four parts of a script */
.pxcb .parts{list-style:none;margin:0 auto;padding:0;max-width:980px;display:grid;
  grid-template-columns:repeat(4,1fr);gap:12px}
.pxcb .parts li{background:#fff;border:1px solid #f8e6da;border-radius:16px;padding:16px;display:grid;gap:6px}
.pxcb .parts b{font:800 1.05rem/1.2 var(--font-head);color:#eb600e}
.pxcb .parts span{font-size:14px;color:var(--ink-2);background:var(--mist);border-radius:10px;padding:8px 10px}

/* the phone demo */
.pxcb .chat-phone{width:min(100%,340px);background:#fff;border-radius:26px;border:8px solid #2b211b;
  overflow:hidden;display:flex;flex-direction:column;height:430px}
.pxcb .cp-top{display:flex;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}
.pxcb .cp-av{width:34px;height:34px;border-radius:50%;background:#eb600e;color:#fff;display:grid;
  place-items:center;font:800 15px/1 var(--font-head)}
.pxcb .cp-top b{display:block;font-size:14px}
.pxcb .cp-top small{font-size:11.5px;color:var(--muted)}
.pxcb .cp-body{flex:1;padding:12px;display:flex;flex-direction:column;gap:7px;overflow:hidden;
  justify-content:flex-end;background:#fffaf6}
.pxcb .cp-body .b{align-self:flex-start;max-width:85%;background:#fff;border:1px solid var(--line);
  border-radius:14px 14px 14px 4px;padding:8px 11px;font-size:13px;animation:bxin .3s ease}
.pxcb .cp-body .u{align-self:flex-end;max-width:80%;background:#eb600e;color:#fff;
  border-radius:14px 14px 4px 14px;padding:8px 11px;font-size:13px;animation:bxin .3s ease}
.pxcb .cp-body .qr{animation:bxin .3s ease}
.pxcb .cp-body .qr span.tap{background:#eb600e;color:#fff}
.pxcb .cp-body .typing{align-self:flex-start;display:flex;gap:4px;padding:10px 12px;background:#fff;
  border:1px solid var(--line);border-radius:14px}
.pxcb .cp-body .typing i{width:6px;height:6px;border-radius:50%;background:#f7b891;animation:dblink 1s infinite}
.pxcb .cp-body .typing i:nth-child(2){animation-delay:.2s}
.pxcb .cp-body .typing i:nth-child(3){animation-delay:.4s}
.pxcb .cp-body .sys{align-self:center;font-size:11.5px;font-weight:700;color:#b8520f;background:#fde9dc;
  border-radius:999px;padding:3px 10px;animation:bxin .3s ease}
.pxcb .cp-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;
  border-top:1px solid var(--line);font-size:13px;color:var(--muted)}

/* template skeleton */
.pxcb .skel{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.pxcb .skel span{font-size:13px;font-weight:700;border-radius:999px;padding:6px 12px;background:var(--mist);
  color:var(--muted);transition:background .3s,color .3s}
.pxcb .skel span.on{background:#eb600e;color:#fff}

/* three examples */
.pxcb .ex3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.pxcb .ex3 li{background:#fff;border:1px solid #f8e6da;border-radius:18px;padding:22px;color:var(--ink-2);font-size:15.5px}
.pxcb .ex3 li strong{display:block;color:var(--ink);margin-bottom:6px}
.pxcb .ex3 li:first-child{background:#fef3ec;border-color:#fbe0cc}

/* channel skins */
.pxcb .chn-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pxcb .chn-btns button{border:1.5px solid var(--line-2);background:#fff;border-radius:999px;padding:8px 14px;
  font:600 14px/1.2 var(--font-body);color:var(--ink);cursor:pointer}
.pxcb .chn-btns button.on{background:#eb600e;border-color:#eb600e;color:#fff}
.pxcb .chn{width:min(100%,340px);border-radius:24px;overflow:hidden;background:#fff;
  border:1px solid rgba(58,42,33,.1);box-shadow:0 24px 48px -30px rgba(58,42,33,.4);transition:background .4s}
.pxcb .chn-top{display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;padding:12px 14px;
  color:#fff;background:#eb600e;transition:background .4s}
.pxcb .chn-top b{font-size:14px}
.pxcb .chn-top small{grid-column:2;font-size:11.5px;opacity:.85}
.pxcb .chn-av{grid-row:1/3;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.25);
  display:grid;place-items:center;font:800 15px/1 var(--font-head)}
.pxcb .chn-body{padding:14px;display:flex;flex-direction:column;gap:8px;min-height:250px;background:#fffaf6;transition:background .4s}
.pxcb .chn .b,.pxcb .chn .u{max-width:84%;font-size:13px;padding:8px 11px;border-radius:14px}
.pxcb .chn .b{align-self:flex-start;background:#fff;border:1px solid #f3dccb;border-bottom-left-radius:4px}
.pxcb .chn .u{align-self:flex-end;background:#eb600e;color:#fff;border-bottom-right-radius:4px;transition:background .4s}
.pxcb .chn .qr span{background:#fff}
.pxcb .chn[data-skin=wa] .chn-top{background:#1f6f5c}
.pxcb .chn[data-skin=wa] .chn-body{background:#efe7dd}
.pxcb .chn[data-skin=wa] .u{background:#d6f5c8;color:#1f2d27}
.pxcb .chn[data-skin=wa] .qr span{border-color:#1f6f5c;color:#1f6f5c}
.pxcb .chn[data-skin=ms] .chn-top{background:#fff;color:#1c1e21;border-bottom:1px solid #eee}
.pxcb .chn[data-skin=ms] .chn-av{background:#e4e6eb}
.pxcb .chn[data-skin=ms] .chn-body{background:#fff}
.pxcb .chn[data-skin=ms] .u{background:#0a7cff}
.pxcb .chn[data-skin=ms] .b{background:#f0f0f0;border-color:#f0f0f0}
.pxcb .chn[data-skin=ms] .qr span{border-color:#0a7cff;color:#0a7cff}

/* readiness score */
.pxcb .sc{display:grid;gap:14px}
.pxcb .sc-top{display:flex;gap:14px;align-items:center}
.pxcb .sc-top strong{display:block;font-size:1.05rem}
.pxcb .sc-top small{font-size:12.5px;color:var(--muted)}
.pxcb .sc-ring{position:relative;width:64px;height:64px;flex:0 0 64px}
.pxcb .sc-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.pxcb .sc-ring circle{fill:none;stroke:#f3e3d8;stroke-width:5}
.pxcb .sc-ring #scArc{stroke:#eb600e;stroke-linecap:round;transition:stroke-dashoffset .6s ease}
.pxcb .sc-ring b{position:absolute;inset:0;display:grid;place-items:center;font:800 15px/1 var(--font-head)}
.pxcb .sc .xk li{padding:9px 12px;font-size:14px}

.pxcb .concl{margin-top:48px!important}

/* ====================== responsive ====================== */
@media (max-width:900px){
  .pxcb .csg-grid{grid-template-columns:1fr}
  .pxcb .csg-out{position:static}
  .pxcb .parts,.pxcb .ex3{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .pxcb#content-area{padding:0 16px}
  .pxcb > .section{padding:52px 0}
  .pxcb .csg-two{grid-template-columns:1fr}
  .pxcb .parts,.pxcb .ex3,.pxcb .dead{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .pxcb .cp-body .b,.pxcb .cp-body .u,.pxcb .cp-body .qr,.pxcb .cp-body .sys,.pxcb .csg-intent{animation:none}
  .pxcb .cp-body .typing i{animation:none}
}

/* =============================================================
   Live side-by-side demo: the same customer question answered by a
   stiff script and by a generated one, playing in real time.
   Appended; nothing above is changed.
   ============================================================= */
.pxcb .live{width:min(100%,520px);background:#fff;border-radius:22px;padding:14px;
  border:1px solid rgba(58,42,33,.08);box-shadow:0 24px 48px -32px rgba(58,42,33,.35);display:grid;gap:12px}
.pxcb .live-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pxcb .live-dot{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;
  color:#eb600e;background:#fef1e8;border-radius:999px;padding:4px 10px}
.pxcb .live-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#eb600e;
  animation:ldot 1.2s ease-in-out infinite}
@keyframes ldot{50%{opacity:.25}}
.pxcb .live-chips{display:flex;gap:6px;flex-wrap:wrap}
.pxcb .live-chips button{border:1.5px solid var(--line-2);background:#fff;border-radius:999px;
  padding:5px 11px;font:600 12.5px/1.2 var(--font-body);color:var(--ink);cursor:pointer}
.pxcb .live-chips button.on{background:#eb600e;border-color:#eb600e;color:#fff}

.pxcb .live-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pxcb .lc{border:1px solid #f3e3d8;border-radius:16px;display:flex;flex-direction:column;
  overflow:hidden;min-height:300px}
.pxcb .lc.good{border-color:#eb600e}
.pxcb .lc-head{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;
  border-bottom:1px solid #f6ebe3;font-size:13px}
.pxcb .lc-t{font-variant-numeric:tabular-nums;font-size:12px;font-weight:700;color:var(--muted)}
.pxcb .lc-body{flex:1;padding:10px;display:flex;flex-direction:column;justify-content:flex-end;
  gap:6px;background:#fffaf6;overflow:hidden}
.pxcb .lc-body .m{max-width:90%;font-size:12.5px;line-height:1.4;padding:7px 10px;border-radius:12px;
  animation:bxin .3s ease both}
.pxcb .lc-body .u{align-self:flex-end;background:#ffe0c8;border-bottom-right-radius:4px}
.pxcb .lc-body .b{align-self:flex-start;background:#fff;border:1px solid #f3dccb;border-bottom-left-radius:4px}
.pxcb .lc.bad .lc-body .b{color:var(--muted)}
.pxcb .lc-body .ty{align-self:flex-start;display:flex;gap:3px;padding:8px 10px;background:#fff;
  border:1px solid #f3dccb;border-radius:12px}
.pxcb .lc-body .ty i{width:5px;height:5px;border-radius:50%;background:#f7b891;animation:dblink 1s infinite}
.pxcb .lc-body .ty i:nth-child(2){animation-delay:.2s}
.pxcb .lc-body .ty i:nth-child(3){animation-delay:.4s}
.pxcb .lc-body .qr{display:flex;flex-wrap:wrap;gap:4px;animation:bxin .3s ease both}
.pxcb .lc-body .qr span{font-size:11px;font-weight:700;border:1.5px solid #eb600e;color:#eb600e;
  border-radius:999px;padding:2px 8px;background:#fff}
.pxcb .lc-body .qr span.tap{background:#eb600e;color:#fff}
.pxcb .lc-end{min-height:34px;padding:7px 12px;font-size:12px;font-weight:800;display:flex;
  align-items:center;gap:6px;border-top:1px solid #f6ebe3;color:var(--muted)}
.pxcb .lc-end.show{animation:bxin .3s ease both}
.pxcb .lc.bad .lc-end.show{background:#f7f1ed}
.pxcb .lc.good .lc-end.show{background:#eb600e;color:#fff}

.pxcb .live-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pxcb .live-stats div{background:var(--mist);border-radius:12px;padding:8px 10px}
.pxcb .live-stats small{display:block;font-size:11.5px;font-weight:700;color:var(--muted)}
.pxcb .live-stats b{font:800 1.35rem/1.1 var(--font-head);font-variant-numeric:tabular-nums}
.pxcb .live-stats div:first-child b{color:#eb600e}

@media (max-width:520px){
  .pxcb .live-cols{grid-template-columns:1fr}
  .pxcb .lc{min-height:230px}
}
@media (prefers-reduced-motion:reduce){
  .pxcb .live-dot::before,.pxcb .lc-body .ty i{animation:none}
  .pxcb .lc-body .m,.pxcb .lc-body .qr,.pxcb .lc-end.show{animation:none}
}

/* ===================== d27 sections ===================== */

/* ---------- tokens ---------- */
.csg-wrap{
  --d27-ink:#241a14;
  --d27-body:#5e4d44;          /* 7.1:1 on white */
  --d27-soft:#8a7467;          /* 4.6:1 - labels only, never body copy */
  --d27-orange:#eb600e;
  --d27-orange-dk:#c04c07;     /* 4.6:1 on white, for text that must read */
  --d27-line:#ece7e4;
  /* Light only, and deliberately close to white. The earlier peach/cream pair
     read as creamy on a real screen, and the closing band was near-black; the
     client asked for neither. Sections are now separated by a barely-there
     warm grey rather than by colour. */
  --d27-peach:#fafafa;          /* the alternating section */
  --d27-cream:#ffffff;          /* was the cream band - now plain white */
  --d27-blush:#f4f2f1;          /* the panel the mock floats on */
  --d27-dark:#f7f5f4;           /* the closing band, light */
  --d27-good:#15803d;
  --d27-bad:#b91c1c;
}

/* ---------- rhythm ----------
   the reference's whole trick is air: rows sit far apart and the art is big.
   d26 used ~56px here, which is what made the page read as stacked cards. */
.csg-wrap .d27{padding:clamp(72px,9vw,128px) 0;position:relative}
.csg-wrap .d27.tint{background:var(--d27-peach)}
.csg-wrap .d27.cream{background:var(--d27-cream)}
.csg-wrap .d27__in{max-width:1180px;margin:0 auto;padding:0 24px}

/* ---------- centred section head ---------- */
.csg-wrap .d27-head{max-width:760px;margin:0 auto;text-align:center}
.csg-wrap .d27-head .kicker{
  display:inline-block;font-size:12px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;color:var(--d27-orange-dk);margin:0 0 14px}
.csg-wrap .d27-head h2{
  margin:0;font-size:clamp(28px,4.2vw,50px);line-height:1.1;
  letter-spacing:-.022em;font-weight:800;color:var(--d27-ink)}
.csg-wrap .d27-head p{
  margin:18px auto 0;max-width:640px;font-size:clamp(15px,1.5vw,17.5px);
  line-height:1.72;color:var(--d27-body)}

/* ---------- the alternating row ---------- */
.csg-wrap .d27-row{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:clamp(36px,5.5vw,88px);align-items:center}
.csg-wrap .d27-row + .d27-row{margin-top:clamp(64px,8vw,116px)}
.csg-wrap .d27-row.flip .d27-copy{order:2}
.csg-wrap .d27-row.flip .d27-art{order:1}
.csg-wrap .d27-copy h3{
  margin:0 0 16px;font-size:clamp(22px,2.9vw,33px);line-height:1.18;
  letter-spacing:-.018em;font-weight:800;color:var(--d27-ink)}
.csg-wrap .d27-copy p{margin:0 0 14px;font-size:16px;line-height:1.74;color:var(--d27-body)}
.csg-wrap .d27-copy p:last-child{margin-bottom:0}
.csg-wrap .d27-copy a{color:var(--d27-orange-dk);text-decoration:underline;text-underline-offset:2px}
.csg-wrap .d27-pts{list-style:none;margin:20px 0 0;padding:0}
.csg-wrap .d27-pts li{
  position:relative;padding:0 0 0 30px;margin:0 0 12px;
  font-size:15.5px;line-height:1.62;color:var(--d27-body)}
.csg-wrap .d27-pts li:last-child{margin-bottom:0}
.csg-wrap .d27-pts li::before{
  content:"";position:absolute;left:4px;top:.56em;width:9px;height:9px;
  border-radius:50%;background:var(--d27-orange);
  box-shadow:0 0 0 4px rgba(235,96,14,.14)}
.csg-wrap .d27-pts b{color:var(--d27-ink);font-weight:700}

/* ---------- the tinted art panel ----------
   the mock is a real card floating on a colour field, not a bordered box */
.csg-wrap .d27-art{
  border-radius:26px;padding:clamp(20px,2.8vw,36px);
  background:var(--d27-blush);position:relative;overflow:hidden}
/* on a tinted section the panel has to differ from BOTH the section behind it
   and the white card inside it; white here gave a white card on a white panel
   separated only by its shadow */
.csg-wrap .d27.tint .d27-art{background:#eceae8}
.csg-wrap .d27-art.sand{background:var(--d27-cream)}
.csg-wrap .d27-card{
  background:#fff;border-radius:16px;padding:clamp(16px,2vw,24px);
  box-shadow:0 1px 2px rgba(36,26,20,.05),0 14px 34px -14px rgba(36,26,20,.22)}
.csg-wrap .d27.tint .d27-card{box-shadow:0 1px 2px rgba(36,26,20,.05),0 14px 34px -16px rgba(36,26,20,.18)}
/* A demo lifted out of the old article keeps its own stylesheet, which is still
   on the page - the deploy appends to that file rather than replacing it. So
   this only has to stop the widget fighting the card it now sits in: drop the
   margins it used as a standalone block, and let a wide one scroll instead of
   bursting the column on a phone. */
.csg-wrap .d27-lift > :not(.d27-cap):not(.p-note){margin:0;max-width:100%}
.csg-wrap .d27-lift > :not(.d27-cap):not(.p-note) + *{margin-top:14px}
.csg-wrap .d27-lift{overflow-x:auto}
.csg-wrap .d27-lift table{width:100%}
.csg-wrap .d27-cap{
  display:flex;align-items:center;gap:8px;margin:0 0 16px;
  font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--d27-soft)}
.csg-wrap .d27-cap i{width:7px;height:7px;border-radius:50%;background:var(--d27-orange);flex:none}
.csg-wrap .d27-foot{
  margin:14px 0 0;font-size:12.5px;line-height:1.55;color:var(--d27-soft);text-align:center}

/* ---------- 1. density gauge ---------- */
.csg-wrap .g-read{display:flex;align-items:baseline;gap:10px;margin:0 0 4px}
.csg-wrap .g-num{font-size:clamp(34px,4.6vw,46px);font-weight:800;letter-spacing:-.03em;
  color:var(--d27-ink);font-variant-numeric:tabular-nums;line-height:1}
.csg-wrap .g-verdict{font-size:13.5px;font-weight:800;letter-spacing:.01em}
.csg-wrap .g-sub{margin:0 0 22px;font-size:13px;color:var(--d27-soft)}
.csg-wrap .g-track{position:relative;height:16px;border-radius:999px;display:flex}
.csg-wrap .g-track > span{display:block;height:100%}
.csg-wrap .g-track > span:first-child{border-radius:999px 0 0 999px}
.csg-wrap .g-track > span:last-child{border-radius:0 999px 999px 0}
.csg-wrap .g-z1{width:16.6%;background:#f3ddc9}
.csg-wrap .g-z2{width:33.3%;background:#86c79b}
.csg-wrap .g-z3{width:25%;background:#f0c88a}
.csg-wrap .g-z4{width:25.1%;background:#e9a79c}
.csg-wrap .g-needle{
  position:absolute;top:-9px;bottom:-9px;width:4px;border-radius:3px;
  background:var(--d27-ink);left:0;margin-left:-2px;
  box-shadow:0 0 0 3px rgba(255,255,255,.95)}
.csg-wrap .g-scale{display:flex;justify-content:space-between;margin:10px 2px 0;
  font-size:11px;font-weight:700;color:var(--d27-soft);font-variant-numeric:tabular-nums}
.csg-wrap .g-zones{display:flex;margin:18px 0 0;gap:6px}
.csg-wrap .g-zones div{flex:1;text-align:center;font-size:10.5px;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;color:var(--d27-soft);
  padding:7px 2px;border-radius:8px;transition:background .3s,color .3s}
.csg-wrap .g-zones div.on{background:var(--d27-orange);color:#fff}

/* ---------- 2. frequency table ---------- */
.csg-wrap .f-row{display:grid;grid-template-columns:116px minmax(0,1fr) 42px;
  gap:12px;align-items:center;margin:0 0 13px}
.csg-wrap .f-row:last-of-type{margin-bottom:0}
.csg-wrap .f-term{font-size:13.5px;font-weight:700;color:var(--d27-ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csg-wrap .f-bar{height:11px;border-radius:999px;background:#edecea;overflow:hidden}
.csg-wrap .f-bar i{display:block;height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,#f5873c,var(--d27-orange))}
.csg-wrap .f-row.muted .f-bar i{background:linear-gradient(90deg,#d9d0c9,#b9ab9f)}
.csg-wrap .f-n{font-size:13px;font-weight:800;color:var(--d27-soft);text-align:right;
  font-variant-numeric:tabular-nums}
.csg-wrap .f-verdict{
  margin:20px 0 0;padding:14px 16px;border-radius:12px;background:#f6f5f4;
  border-left:3px solid var(--d27-orange);font-size:13.5px;line-height:1.6;
  color:var(--d27-ink)}
.csg-wrap .f-verdict b{color:var(--d27-orange-dk)}

/* ---------- 3. missing related terms ---------- */
.csg-wrap .t-scan{position:relative}
.csg-wrap .t-line{
  position:absolute;left:-8px;right:-8px;height:34px;border-radius:9px;
  background:linear-gradient(90deg,rgba(235,96,14,0),rgba(235,96,14,.13),rgba(235,96,14,0));
  top:0;opacity:0;pointer-events:none}
.csg-wrap .t-item{display:flex;align-items:center;gap:12px;padding:11px 0;
  border-bottom:1px solid var(--d27-line)}
.csg-wrap .t-item:last-child{border-bottom:0}
.csg-wrap .t-dot{width:19px;height:19px;border-radius:50%;flex:none;
  border:2px solid #ddd9d6;position:relative;transition:border-color .25s}
.csg-wrap .t-dot::after{content:"";position:absolute;inset:0;border-radius:50%;
  background:var(--d27-bad);transform:scale(0);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.csg-wrap .t-item.miss .t-dot{border-color:var(--d27-bad)}
.csg-wrap .t-item.miss .t-dot::after{transform:scale(.46)}
.csg-wrap .t-term{font-size:14.5px;font-weight:700;color:var(--d27-ink);flex:1}
.csg-wrap .t-state{font-size:12.5px;font-weight:700;color:var(--d27-soft)}
.csg-wrap .t-item.miss .t-state{color:var(--d27-bad)}
/* the same scan reading the other way: present, not missing */
.csg-wrap .t-item.miss.good .t-dot{border-color:var(--d27-good)}
.csg-wrap .t-item.miss.good .t-dot::after{background:var(--d27-good)}
.csg-wrap .t-item.miss.good .t-state{color:var(--d27-good)}
.csg-wrap .t-sum{margin:18px 0 0;padding:13px 15px;border-radius:12px;
  background:#f6f5f4;font-size:13.5px;font-weight:700;color:var(--d27-ink);
  text-align:center}

/* ---------- 4. it stays in your browser ---------- */
.csg-wrap .b-win{border:1px solid var(--d27-line);border-radius:13px;overflow:hidden;background:#fff}
.csg-wrap .b-bar{display:flex;align-items:center;gap:6px;padding:9px 12px;
  background:#f4f3f2;border-bottom:1px solid var(--d27-line)}
.csg-wrap .b-bar em{width:8px;height:8px;border-radius:50%;background:#ddd9d6;flex:none}
.csg-wrap .b-bar span{margin-left:8px;font-size:11px;font-weight:700;color:var(--d27-soft)}
.csg-wrap .b-body{padding:15px 14px}
.csg-wrap .b-ln{height:7px;border-radius:4px;background:#edecea;margin:0 0 8px}
.csg-wrap .b-ln.s{width:62%}
.csg-wrap .b-ln.m{width:86%}
.csg-wrap .b-tag{display:inline-block;margin:6px 0 0;padding:5px 11px;border-radius:999px;
  background:#eaf6ee;color:var(--d27-good);font-size:11.5px;font-weight:800}
.csg-wrap .b-path{position:relative;height:54px;margin:2px 0 0}
.csg-wrap .b-path svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
/* the packet rides the line, so the line is straight and the pill is centred
   on its own left coordinate - the earlier curve put the pill beside the path
   rather than on it */
.csg-wrap .b-pkt{
  position:absolute;left:12%;top:50%;transform:translate(-50%,-50%);
  padding:5px 11px;border-radius:999px;
  background:var(--d27-ink);color:#fff;font-size:10.5px;font-weight:700;
  white-space:nowrap}
.csg-wrap .b-arrow{
  position:absolute;right:2%;top:50%;width:0;height:0;margin-top:-5px;
  border-left:7px solid #d8d4d1;border-top:5px solid transparent;
  border-bottom:5px solid transparent}
.csg-wrap .b-srv{
  border:1px dashed #dcd8d5;border-radius:13px;padding:13px 15px;text-align:center;
  background:#fbfbfb}
.csg-wrap .b-srv strong{display:block;font-size:12.5px;color:var(--d27-ink);margin:0 0 4px}
.csg-wrap .b-srv span{display:block;font-size:11.5px;color:var(--d27-soft);line-height:1.55}

/* ---------- 5. the same figure counted two ways ---------- */
/* minmax(0,…) and min-width:0, because a grid track otherwise refuses to go
   narrower than its content and the whole card overflows its column */
.csg-wrap .p-flip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.csg-wrap .p-col{border-radius:13px;padding:15px 15px 17px;border:1px solid var(--d27-line);
  min-width:0}
.csg-wrap .p-col.bad{background:#fdf3f1;border-color:#f2ded8}
.csg-wrap .p-col.good{background:#f1f8f3;border-color:#dcece1}
.csg-wrap .p-h{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  color:var(--d27-soft);margin:0 0 11px}
/* label above value, not beside it. Side by side with a nowrap value pushed
   the column wider than its track as soon as a value was a phrase rather than
   a number - which clipped one side of the panel and wrapped the other. */
.csg-wrap .p-r{padding:6px 0;font-size:12.5px;line-height:1.45;color:var(--d27-body);
  min-width:0}
.csg-wrap .p-r + .p-r{border-top:1px solid rgba(36,26,20,.05)}
.csg-wrap .p-r span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--d27-soft);margin:0 0 2px}
.csg-wrap .p-r b{display:block;color:var(--d27-ink);font-weight:700;
  overflow-wrap:anywhere}
.csg-wrap .p-v{margin:12px 0 0;padding:9px 0 0;border-top:1px solid rgba(36,26,20,.09);
  font-size:clamp(20px,2.5vw,28px);font-weight:800;letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;line-height:1.1;overflow-wrap:anywhere}
.csg-wrap .p-col.bad .p-v{color:var(--d27-bad)}
.csg-wrap .p-col.good .p-v{color:var(--d27-good)}
.csg-wrap .p-note{margin:16px 0 0;padding:13px 15px;border-radius:12px;background:#f6f5f4;
  border-left:3px solid var(--d27-orange);font-size:13px;line-height:1.6;color:var(--d27-ink)}

/* ---------- 6. a sequence that fills in ---------- */
.csg-wrap .s-list{list-style:none;margin:0;padding:0;counter-reset:s}
.csg-wrap .s-it{display:flex;gap:13px;align-items:flex-start;padding:11px 0;
  border-bottom:1px solid var(--d27-line)}
.csg-wrap .s-it:last-child{border-bottom:0}
.csg-wrap .s-n{flex:none;width:25px;height:25px;border-radius:50%;background:var(--d27-orange);
  color:#fff;font-size:12.5px;font-weight:800;display:flex;align-items:center;
  justify-content:center;margin-top:1px}
.csg-wrap .s-b{display:block}
.csg-wrap .s-b b{display:block;font-size:14px;font-weight:700;color:var(--d27-ink);margin:0 0 3px}
.csg-wrap .s-b em{display:block;font-style:normal;font-size:12.5px;line-height:1.55;
  color:var(--d27-soft)}
.csg-wrap .s-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  margin:16px 0 0;padding:14px 15px;border-radius:12px;background:#f6f5f4;
  border:1px solid var(--d27-line)}
.csg-wrap .s-total span{font-size:12.5px;font-weight:700;color:var(--d27-soft)}
.csg-wrap .s-total b{font-size:clamp(20px,2.5vw,26px);font-weight:800;color:var(--d27-orange-dk);
  letter-spacing:-.02em;font-variant-numeric:tabular-nums}

/* ---------- 7. bars drawn to scale against each other ---------- */
.csg-wrap .k-row{margin:0 0 15px}
.csg-wrap .k-row:last-of-type{margin-bottom:0}
.csg-wrap .k-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;
  margin:0 0 7px}
.csg-wrap .k-h span{font-size:13px;font-weight:700;color:var(--d27-ink)}
.csg-wrap .k-h b{font-size:13px;font-weight:800;color:var(--d27-soft);
  font-variant-numeric:tabular-nums}
.csg-wrap .k-bar{height:14px;border-radius:999px;background:#edecea;overflow:hidden}
.csg-wrap .k-bar i{display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#f5873c,var(--d27-orange))}
.csg-wrap .k-bar.calm i{background:linear-gradient(90deg,#8fc9a2,#4f9d6b)}
.csg-wrap .k-bar.grey i{background:linear-gradient(90deg,#d9d0c9,#b9ab9f)}
.csg-wrap .k-note{margin:18px 0 0;padding:13px 15px;border-radius:12px;background:#f6f5f4;
  font-size:13px;line-height:1.6;color:var(--d27-ink)}

/* ---------- 8. a file writing itself ---------- */
.csg-wrap .o-file{border:1px solid var(--d27-line);border-radius:13px;overflow:hidden;background:#fcfcfc}
.csg-wrap .o-name{display:flex;align-items:center;gap:8px;padding:10px 13px;
  background:#f4f3f2;border-bottom:1px solid var(--d27-line);
  font-size:12px;font-weight:800;color:var(--d27-ink)}
.csg-wrap .o-name span{width:9px;height:11px;border-radius:2px;background:var(--d27-orange);flex:none}
.csg-wrap .o-body{padding:13px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;line-height:1.75}
.csg-wrap .o-l{color:var(--d27-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csg-wrap .o-l.h{color:var(--d27-ink);font-weight:700}
.csg-wrap .o-l.c{color:#a08a7b}
.csg-wrap .o-l.b{height:8px}
.csg-wrap .o-foot{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#f6f5f4;
  font-size:13px;line-height:1.6;color:var(--d27-ink)}

/* ---------- 9. variants of one output ---------- */
.csg-wrap .v-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.csg-wrap .v-it{text-align:center}
.csg-wrap .v-art{display:flex;align-items:center;justify-content:center;min-height:86px;
  border:1px solid var(--d27-line);border-radius:12px;background:#fcfcfc;padding:12px}
.csg-wrap .v-l{display:block;margin:8px 0 0;font-size:11px;font-weight:800;letter-spacing:.05em;
  text-transform:uppercase;color:var(--d27-soft)}
.csg-wrap .v-note{margin:16px 0 0;padding:13px 15px;border-radius:12px;background:#f6f5f4;
  font-size:13px;line-height:1.6;color:var(--d27-ink)}
/* the sample marks are type, not images - no asset to load or go stale */
.csg-wrap .v-wm{font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--d27-ink)}
.csg-wrap .v-wm.thin{font-weight:500;letter-spacing:.14em;text-transform:uppercase;font-size:12px}
.csg-wrap .v-mk{display:flex;align-items:center;gap:7px}
.csg-wrap .v-mk i{width:24px;height:24px;border-radius:7px;background:var(--d27-orange);
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;
  font-weight:800;font-style:normal;flex:none}
.csg-wrap .v-mk.round i{border-radius:50%}

/* ---------- 10. a conversation playing out ---------- */
.csg-wrap .c-thread{display:flex;flex-direction:column;gap:9px;position:relative}
.csg-wrap .c-msg{display:flex}
.csg-wrap .c-msg.you{justify-content:flex-end}
.csg-wrap .c-msg span{
  display:inline-block;max-width:82%;padding:9px 13px;border-radius:14px;
  font-size:13.5px;line-height:1.5}
.csg-wrap .c-msg.bot span{background:#f0efee;color:var(--d27-ink);border-bottom-left-radius:5px}
.csg-wrap .c-msg.you span{background:var(--d27-orange);color:#fff;border-bottom-right-radius:5px}
.csg-wrap .c-typing{display:none;align-items:center;gap:4px;padding:10px 13px;width:fit-content;
  background:#f0efee;border-radius:14px;border-bottom-left-radius:5px}
.csg-wrap .c-typing i{width:6px;height:6px;border-radius:50%;background:#bda593;display:block}
.csg-wrap .c-note{margin:18px 0 0;padding:13px 15px;border-radius:12px;background:#f6f5f4;
  border-left:3px solid var(--d27-orange);font-size:13px;line-height:1.6;color:var(--d27-ink)}

/* ---------- the quiet band of numerals ---------- */
.csg-wrap .d27-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(14px,2vw,22px);margin:clamp(34px,4.5vw,52px) 0 0}
.csg-wrap .d27-stat{
  background:#fff;border-radius:18px;padding:clamp(22px,2.6vw,32px);
  box-shadow:0 1px 2px rgba(36,26,20,.04),0 12px 30px -16px rgba(36,26,20,.2)}
.csg-wrap .d27-stat .n{
  font-size:clamp(32px,4.2vw,52px);font-weight:800;letter-spacing:-.035em;
  line-height:1;color:var(--d27-orange-dk);font-variant-numeric:tabular-nums}
.csg-wrap .d27-stat .l{margin:12px 0 0;font-size:13.5px;line-height:1.55;color:var(--d27-body)}

/* ---------- the closing band ----------
   it used to be near-black with white text. Now that the background is light,
   every one of those colours has to come back to the normal ink/body pair or
   the whole band would be white-on-white. A hairline rule replaces the colour
   as the thing that marks it as the end of the page. */
.csg-wrap .d27-dark{background:var(--d27-dark);color:var(--d27-body);
  border-top:1px solid var(--d27-line)}
.csg-wrap .d27-dark .d27-head h2{color:var(--d27-ink)}
.csg-wrap .d27-dark .d27-head p{color:var(--d27-body)}
.csg-wrap .d27-dark .d27-head .kicker{color:var(--d27-orange-dk)}
.csg-wrap .d27-dark a:not(.d27-btn){color:var(--d27-orange-dk);text-decoration:underline;
  text-underline-offset:2px}
.csg-wrap .d27-btn{
  display:inline-block;margin:28px 0 0;padding:15px 30px;border-radius:999px;
  background:var(--d27-orange);color:#fff;font-weight:800;font-size:15.5px;
  text-decoration:none;transition:background .2s,transform .2s}
.csg-wrap .d27-btn:hover{background:#f57220;transform:translateY(-1px);color:#fff}
.csg-wrap .d27-why{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.4vw,30px);margin:clamp(38px,5vw,58px) 0 0;text-align:left}
.csg-wrap .d27-why div{
  padding:22px;border-radius:16px;background:#fff;
  border:1px solid var(--d27-line)}
.csg-wrap .d27-why h4{margin:0 0 9px;font-size:16px;font-weight:800;color:var(--d27-ink)}
.csg-wrap .d27-why p{margin:0;font-size:14px;line-height:1.66;color:var(--d27-body)}

/* ---------- reveal ----------
   the finished state is the default. The JS only takes it away after it has
   confirmed GSAP and ScrollTrigger are both present, so if the libraries never
   arrive - or arrive broken - the page still reads as a finished page. */
.csg-wrap.d27-armed .d27-rv{opacity:0}

@media (max-width:860px){
  .csg-wrap .d27-row{grid-template-columns:minmax(0,1fr);gap:30px}
  .csg-wrap .d27-row.flip .d27-copy,
  .csg-wrap .d27-row.flip .d27-art{order:0}
  .csg-wrap .d27-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csg-wrap .d27-why{grid-template-columns:minmax(0,1fr)}
  /* the long term was being ellipsised away on a phone; let it wrap instead */
  .csg-wrap .f-row{grid-template-columns:104px minmax(0,1fr) 30px;gap:9px}
  .csg-wrap .f-term{white-space:normal;overflow:visible;font-size:12.5px;line-height:1.28}
  /* two columns of figures do not survive a phone; they stack */
  .csg-wrap .p-flip{grid-template-columns:minmax(0,1fr)}
  .csg-wrap .o-body{font-size:11px}
}
@media (max-width:480px){
  .csg-wrap .d27-stats{grid-template-columns:minmax(0,1fr)}
  .csg-wrap .g-zones{flex-wrap:wrap}
  .csg-wrap .g-zones div{flex:1 1 44%}
}
@media (prefers-reduced-motion:reduce){
  .csg-wrap.d27-armed .d27-rv{opacity:1}
}
