/* Zero-Scam round 18 (Part C): the public demo console, on top of console13.css (no style attributes: CSP self only). */
.d18-strip { margin: 0; padding: 8px 16px; text-align: center; font-size: 15px; letter-spacing: .02em; background: #1b1f21; color: #f3f3f0; border-bottom: 1px solid rgba(255,255,255,.08); }
.d18-stats { margin-top: 16px; }
.d18-chart { margin-top: 16px; }
.d18-gap { margin-top: 16px; }
.d18-bars { display: block; width: 100%; height: 80px; }
.d18-bar { fill: #e8a33d; }
.d18-rule { color: #f3f3f0; font-size: 16px; }
.cx-side__who .nav__lang { display: inline-block; margin-top: 8px; }
.d18-foot { margin-top: 32px; }

/* round 19 (B2): the status line in the strip style */
.d19-status { margin: 16px 0 0; padding: 8px 16px; font-size: 15px; letter-spacing: .02em; background: #1b1f21; color: #f3f3f0;
  border: 1px solid rgba(255,255,255,.08); overflow-wrap: anywhere; }
.d19-status__dot { color: #a0a7ab; } .d19-status.is-live .d19-status__dot { color: #35b79f; }

/* round 19 (B3): in Arabic the skip link sat 999px off the left edge, which gave every page a 999px side scroll */
html[dir="rtl"] .skip, html[dir="rtl"] body.cx13 .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus, html[dir="rtl"] body.cx13 .skip:focus { left: auto; right: 8px; }

/* round 21 (A1): the Hunter dot is always green; it pulses only under 15 minutes (never with reduced motion) */
.d19-status.is-hunter21 .d19-status__dot { color: #35b79f; }
.d19-status.is-hunter21.is-live .d19-status__dot { animation: zs-breathe 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .d19-status.is-hunter21 .d19-status__dot { animation: none; } }

/* round 22 (B): the Maps check bar, the Hunter dot rule (always green; pulses only under 15 minutes, never with reduced
   motion); hidden while the snapshot has no Maps check; the Maps table hides when no lead passed the filters */
.d19-status[hidden], [data-zs-maps-table][hidden], [data-zs-maps-none][hidden] { display: none; }
.d19-status.is-maps22 .d19-status__dot { color: #35b79f; }
.d19-status.is-maps22.is-live .d19-status__dot { animation: zs-breathe 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .d19-status.is-maps22 .d19-status__dot { animation: none; } }

/* round 22 (A, applied by the lead): no letter spacing on the Arabic demo status line */
.d19-status:lang(ar) { letter-spacing: 0; }

/* round 23 (B): the public demo on phones and tablets. Every rule sits under 900px, so desktop is unchanged.
   The sidebar becomes a compact top menu: the brand and the language link share the first line, the five pages sit on
   one row that scrolls sideways (44px targets, the current page underlined); the group labels and the "Public demo"
   label are hidden (the strip and the crumb right below say it). No markup change: the brand and the language link
   are placed on the .cx box, so the scrolling row never clips or moves them. */
@media (max-width: 900px) {
  body.cx13.d18 .cx { position: relative; }
  body.cx13.d18 .cx-side { position: static; height: auto; display: flex !important; flex-direction: row; flex-wrap: nowrap;
    align-items: stretch; gap: 2px; padding: 52px clamp(8px, 2.4vw - 10px, 22px) 0; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-inline-end: 0; border-bottom: 1px solid rgba(243, 243, 240, .14); }
  body.cx13.d18 .cx-side::-webkit-scrollbar { display: none; }
  body.cx13.d18 .cx-side .nav__brand { position: absolute; top: 4px; inset-inline-start: clamp(18px, 2.4vw, 32px); width: auto;
    min-height: 44px; padding: 0; margin: 0; border: 0; background: none; }
  body.cx13.d18 .cx-side__g, body.cx13.d18 .cx-side__who b { display: none; }
  body.cx13.d18 .cx-side__who { position: absolute; top: 4px; inset-inline-end: clamp(8px, 2.4vw - 10px, 22px); width: auto;
    margin: 0; padding: 0; border: 0; display: flex; }
  body.cx13.d18 .cx-side__who .nav__lang { margin: 0; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; }
  body.cx13.d18 .cx-side > a:not(.nav__brand) { flex: none; min-height: 44px; padding: 0 10px; white-space: nowrap;
    border-inline-start: 0; border-bottom: 2px solid transparent; scroll-margin-inline: 24px; }
  body.cx13.d18 .cx-side > a[aria-current="page"] { border-bottom-color: #f3f3f0; background: none; scroll-initial-target: nearest; scroll-snap-align: center; }
  body.cx13.d18 .cx-side a:focus-visible { outline: 2px solid #f3f3f0; outline-offset: -2px; }
  body.cx13.d18 .cx-top { min-height: 0; padding-block: 14px 12px; }

  /* tables scroll inside their own panel; the level tag wraps between words only (it broke letter by letter and made
     every Hunter lead row about 180px tall), and the reason column is wide enough for its sentence */
  body.cx13.d18 .scroll-x { overscroll-behavior-x: contain; }
  body.cx13.d18 .list .lvl { overflow-wrap: normal; }
  body.cx13.d18 .list td:has(> .lvl) { min-width: 7.5em; }
  body.cx13.d18 .list td:has(> .bdgs) { min-width: 16em; }
  /* the reason under the badges is English data: in Arabic it keeps its own left to right order and alignment */
  body.cx13.d18 .list td:has(> .bdgs) .cx-note { unicode-bidi: plaintext; }
  /* the thin Maps listings: a wider facts column, so a row is three lines instead of eight */
  body.cx13.d18 [data-zs-demo-thin] .scroll-x .list { min-width: 720px; }
  body.cx13.d18 [data-zs-demo-thin] .list td:last-child { min-width: 15em; }
  /* the Agent checks examples are two columns of sentences: they fit the screen instead of scrolling sideways */
  body.cx13.d18 .scroll-x .list.cx-rows { min-width: 0; }
  body.cx13.d18 .list.cx-rows td:first-child { width: 36%; }
  /* a table right under a section note or heading gets air above its header row */
  body.cx13.d18 .cx-sec > .cx-note + .scroll-x, body.cx13.d18 .cx-sec > .cx-h2 + .scroll-x { margin-top: 12px; }
  /* the Agent checks preview line wraps into even lines, without a lone word on the last one */
  body.cx13.d18 .cx-status:not(.d19-status) { text-wrap: balance; }
}
/* the Agent checks figures: stacked on a phone, each one under a rule (the side rule and its indent belong to a row) */
@media (max-width: 700px) {
  body.cx13.d18 .cx-stats { grid-template-columns: 1fr; border-bottom: 0; }
  body.cx13.d18 .cx-stat { padding: 14px 0; border-bottom: 1px solid rgba(243, 243, 240, .14); }
  body.cx13.d18 .cx-stat + .cx-stat { border-inline-start: 0; padding-inline-start: 0; }
  body.cx13.d18 .cx-stat__n { font-size: 28px; }
}
