/* What the city has to say, over the map. Black, white and red, as the rest
   of the interface: team colour belongs to the city. */

/* ---- The banner: a city event or a story moment ---- */
/* Top left of the map on a desktop (the deck is on the right); along the
   bottom on a phone, above the map buttons and clear of the toasts. Open: a
   headline and a line under it. Folded (.chip): the event that is on, what
   it does and the time left. It never takes a click. */
#cwNews{position:absolute;left:max(16px,env(safe-area-inset-left));top:max(16px,env(safe-area-inset-top));z-index:9;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;
  width:max-content;max-width:min(400px,calc(100vw - 392px));padding:13px 16px 13px 14px;
  border-radius:var(--r-md,6px);background:var(--v2-black,#0a0a0a);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.3);
  font-family:var(--v2-f,Futura,"Futura PT","CW Jost",Jost,sans-serif);pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,display .25s allow-discrete}
#cwNews[hidden]{display:none;opacity:0;transform:translateY(-6px)}
@starting-style{#cwNews{opacity:0;transform:translateY(-6px)}}
#cwNews .cn-mark{width:8px;height:8px;background:var(--v2-red,#d9261c)}
#cwNews.end .cn-mark{background:var(--v2-dim,#6e6e6e)}
#cwNews .cn-text{display:flex;flex-direction:column;gap:4px;min-width:0}
#cwNews .cn-head{font:700 11px/1.25 var(--v2-f,Futura,sans-serif);letter-spacing:.1em;text-transform:uppercase}
#cwNews .cn-body{font:400 12.5px/1.45 var(--v2-f,Futura,sans-serif);color:var(--v2-grey,#a6a6a6)}
#cwNews .cn-time{font:700 12px/1 var(--v2-f,Futura,sans-serif);font-variant-numeric:tabular-nums}
#cwNews .cn-time:empty{display:none}
#cwNews.chip{padding:9px 13px}
#cwNews.chip .cn-text{gap:2px}
#cwNews.chip .cn-head{font-size:10px}
#cwNews.chip .cn-body{font-size:11.5px;line-height:1.3}
@media (max-width:800px){#cwNews{max-width:calc(100vw - 372px)}}
@media (max-width:520px){
  #cwNews{left:10px;right:10px;top:auto;bottom:calc(120px + env(safe-area-inset-bottom));width:auto;max-width:none}
}
@media (prefers-reduced-motion:reduce){#cwNews{transition:none}}

/* A hire's price while a careers fair has cut it */
#cwCommandDeck .dk-cost.cut{color:var(--v2-gain,#35d07f)!important}
