/* THE SERVER'S FEED (demo, 2026-11-13; news-server-feed.js). A story's market column drawn from its server link, and a
   market page's "Stories moving this market". Simple and Advanced, phone and desktop. Every length and colour is a token
   (design-system.md, zena-tokens.css). */

/* The column: one market, its price and venue, the judge's reason, and the way to its page. */
.zw-markets>.zw-srv{display:flex;flex-direction:column;gap:var(--sp-2);box-sizing:border-box;padding:var(--sp-4);border-radius:var(--z-radius-card);background:var(--z-raised);color:var(--z-body)}
.zw-srv>.zw-srv-kicker{margin:0;font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-title)}
.zw-srv .zw-srv-tag{display:inline-block;padding:var(--sp-q) var(--sp-2);border-radius:999px;background:var(--z-accent-soft);color:var(--z-title);font:var(--zt-small);font-weight:var(--z-kicker-weight)}
.zw-srv>h3{margin:0;font:var(--zt-card);color:var(--z-title)}
/* The column keeps .zw-context-preview so the phone strip finds its title, but news-reporting-cards.css hides every
   .zw-context-preview>h3 with !important (the reporting rail titles itself elsewhere). Here the h3 IS the market's name. */
.zw-page .zw-markets>.zw-context-preview.zw-srv>h3{display:block!important}
.zw-srv>.zw-srv-quote{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--sp-2)}
.zw-srv>.zw-srv-quote>b{font:var(--zt-figure);color:var(--z-title)}
.zw-srv>.zw-srv-quote>span,.zw-srv>.zw-srv-why{font:var(--zt-small);color:var(--z-body)}
.zw-srv>.zw-srv-why{margin:0}
.zw-srv>.zw-srv-why>strong{color:var(--z-title);font-weight:var(--z-kicker-weight)}
/* Shown only where the column's title and price are hidden for the chart beside it (desktop, news-keycard.css). */
.zw-srv>.zw-srv-why-label{display:none;margin:0;font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-title)}
/* A one-sided or wide quote says so here too when the quote line is hidden for the chart (desktop, news-keycard.css). */
.zw-srv>.zw-srv-quoted{display:none;margin:0;font:var(--zt-small);color:var(--z-body)}
/* (AB-20261127-10 round 2: the quote line is no longer hidden for the chart, so this note is not shown in its place: the
   column keeps one size whatever the card charts.) */
.zw-srv>.zw-srv-open{align-self:flex-start;font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-accent);text-decoration:none}
.zw-srv>.zw-srv-open:hover,.zw-srv>.zw-srv-open:focus-visible{text-decoration:underline}
.zw-srv[data-zw-srv="none"]>h3{color:var(--z-body)}
/* The column while a step lands and the page has no link for the card yet: an empty card, never a neighbour's market. */
.zw-markets>.zw-srv-wait{min-height:calc(var(--sp-5) * 4)}
/* A build-time price says when it was taken; a market this reader's region opens in no version says so instead of linking. */
.zw-srv>.zw-srv-quote>.zw-srv-asof{flex-basis:100%}
.zw-srv>.zw-srv-region{margin:0;font:var(--zt-small);color:var(--z-body)}
/* "More on this subject" (card redesign step 5): the subject's other markets, each with its price, venue and "Chart this".
   Simple lists three; Advanced lists all, each with a sparkline (data-zk-adv, news-editorial-finish.css). */
.zw-srv>.zw-srv-more{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-2);padding-top:var(--sp-3);border-top:1px solid var(--z-hairline)}
.zw-srv-more>h4{margin:0;font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-title)}
.zw-srv-more>ul{display:flex;flex-direction:column;gap:var(--sp-2);margin:0;padding:0;list-style:none}
/* One row per market (review 2026-11-14): its name (wrapping) on the left, its price and "Chart this" on the right; the
   venue under the name, and Advanced's sparkline under both. */
.zw-srv-more li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--sp-q) var(--sp-2)}
.zw-srv-more-title{grid-column:1;grid-row:1;font:var(--zt-small);color:var(--z-title);overflow-wrap:anywhere}
.zw-srv-more li>b{grid-column:2;grid-row:1;font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-title)}
.zw-srv-more li>small{grid-column:1;grid-row:2;font:var(--zt-small);color:var(--z-body)}
.zw-srv-more .zw-srv-spark{grid-column:1 / -1;grid-row:3}
.zw-srv-more .zw-srv-spark:empty{display:none!important}
.zw-srv-more .zw-srv-spark>svg{display:block;width:100%;height:var(--sp-5)}
.zw-srv-more .zw-srv-spark path{fill:none;stroke:var(--z-title);stroke-width:1.5;vector-effect:non-scaling-stroke}
.zw-srv-more .zw-srv-spark svg[data-zw-trend=up] path{stroke:var(--z-up)}
.zw-srv-more .zw-srv-spark svg[data-zw-trend=down] path{stroke:var(--z-down)}
.zw-srv-more li>button{grid-column:3;grid-row:1;min-height:32px;padding:0 var(--sp-3);border:1px solid var(--z-hairline-strong);border-radius:var(--z-radius-ctl);background:transparent;color:var(--z-title);font:var(--zt-small);font-weight:var(--z-kicker-weight);cursor:pointer}
/* Pressed, it reads "← Back to story's market" after a back arrow (news-server-feed.js BACK), in the same text style as
   "Chart this" (news-feed.css: no fill, one line, the arrow beside the words; AB-20261127-10). */
.zw-srv-more li>button>.zw-srv-back{flex:none;width:.85em;height:.85em}
.zw-srv-more li>button:focus-visible{outline:2px solid var(--z-accent);outline-offset:2px}
/* The column is as tall as what it holds: a full-height raised box with four lines at its top read as an empty card. */
/* (news-workspace.css and news-keycard.css's [data-zw-fill="rail"] grow every rail in the column, flex:1 1 auto with
   !important; this one is sized to its content.) */
html:root body .zw-page .zw-workspace>.zw-markets>.zw-context-preview.zs-news-rail.zw-srv,
html[data-news-view]:root body .zw-page[data-news-keycard] .zw-workspace[data-news-design]>.zw-markets>.zw-context-preview.zs-news-rail.zw-srv{flex:0 0 auto!important;align-self:stretch;height:auto!important;max-height:100%}

/* "More on this story" on a text-only card (news-feed.js addMore): the subject's other articles, one per publisher. */
.zw-more>h3{margin:0 0 var(--sp-2);font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-title)}
.zw-more>ul{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;padding:0;list-style:none}
.zw-more li{padding-top:var(--sp-3);border-top:1px solid var(--z-hairline)}
.zw-more li:first-child{padding-top:0;border-top:0}
.zw-more li>a{display:flex;flex-direction:column;gap:var(--sp-q);color:var(--z-title);text-decoration:none}
.zw-more li>a>strong{font:var(--zt-card)}
.zw-more li>a>span{font:var(--zt-small);color:var(--z-body)}
.zw-more li>a:hover>strong,.zw-more li>a:focus-visible>strong{text-decoration:underline}

/* A market page: the stories the build paired with this market, newest first, each with its tier and reason. */
.zc-moving{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-4);padding:var(--sp-4);border-radius:var(--z-radius-card);background:var(--z-raised)}
.zc-moving>h3{margin:0;font:var(--zt-card);color:var(--z-title)}
.zc-moving>ol{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;padding:0;list-style:none}
.zc-moving li{display:flex;flex-direction:column;gap:var(--sp-1);padding-top:var(--sp-3);border-top:1px solid var(--z-hairline)}
.zc-moving li:first-child{padding-top:0;border-top:0}
.zc-moving li>a{display:flex;flex-direction:column;gap:var(--sp-q);color:var(--z-title);text-decoration:none}
.zc-moving li>a>strong{font:var(--zt-card)}
.zc-moving li>a>span,.zc-moving li>p,.zc-moving-none{margin:0;font:var(--zt-small);color:var(--z-body)}
.zc-moving li>a:hover>strong,.zc-moving li>a:focus-visible>strong{text-decoration:underline}
.zc-moving-tier{display:inline-block;margin-right:var(--sp-1);padding:0 var(--sp-2);border-radius:999px;background:var(--z-accent-soft);color:var(--z-title);font-weight:var(--z-kicker-weight)}
.zc-moving-tier[data-tier="direct"]{background:var(--z-accent);color:var(--z-on-accent)}
.zc-moving[aria-busy="true"]{min-height:calc(var(--sp-5) * 4)}
/* Desktop: the strip between the header band and the chart (market-context.js movingHost), the page's full width. #main does
   not scroll, so the stories run across, four to a screen, and the rest scroll sideways; each keeps two lines of reason. */
#main>.zc-moving-wide{flex:none;box-sizing:border-box;width:100%;padding:0 var(--sp-4) var(--sp-3)}
#main>.zc-moving-wide>.zc-moving{margin-top:0;padding:var(--sp-3) var(--sp-4)}
#main>.zc-moving-wide>.zc-moving[aria-busy="true"]{min-height:0}
#main>.zc-moving-wide .zc-moving>ol{flex-direction:row;overflow-x:auto;scroll-snap-type:x proximity;gap:var(--sp-4)}
#main>.zc-moving-wide .zc-moving li{flex:0 0 calc((100% - 3 * var(--sp-4)) / 4);scroll-snap-align:start;padding:0 0 0 var(--sp-4);border-top:0;border-left:1px solid var(--z-hairline)}
#main>.zc-moving-wide .zc-moving li:first-child{padding-left:0;border-left:0}
#main>.zc-moving-wide .zc-moving li>a>strong,#main>.zc-moving-wide .zc-moving li>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* The section lives in the market's context box, which the free tier hides whole when the market has no briefing
   (market-briefing.css). Paired stories are something to show, so a context box holding them stays; its empty briefing
   does not. Same selector as that rule, one :has more. */
:root[data-tier=free] #main.zc-market-page.zc-workspace>.zmkband.zmkbig.zc-clean-header>.zc-market-context:has(.zc-briefing-body[data-zc-brief-empty]):has(.zc-moving>ol){display:block}
.zc-market-context:has(.zc-moving>ol) .zc-briefing-body[data-zc-brief-empty]{display:none}

/* THE VERSION THAT OPENS, AND A LINK THAT DOES NOT (demo, 2026-11-13; news-server-feed.js column, index.html
   xvOpenTwin / twinShownHTML / marketLoadFailed). Simple and Advanced, phone and desktop. */
.zw-srv>.zw-srv-version,.zw-srv>.zw-srv-note{margin:0;font:var(--zt-small);color:var(--z-body)}
.zw-srv>.zw-srv-version{font-weight:var(--z-kicker-weight);color:var(--z-title)}
.zc-twin-note{margin:0;padding:var(--sp-2) var(--sp-4);font:var(--zt-small);font-weight:var(--z-kicker-weight);color:var(--z-title);background:var(--z-accent-soft)}
.zc-load-fail{position:fixed;left:50%;bottom:calc(var(--sp-5) * 4);z-index:400;transform:translateX(-50%);box-sizing:border-box;width:min(calc(100vw - 2 * var(--sp-4)),calc(var(--sp-5) * 22));display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-4);border-radius:var(--z-radius-card);background:var(--z-raised);color:var(--z-body);box-shadow:var(--z-shadow-pop);font:var(--zt-body)}
.zc-load-fail>p{margin:0}
.zc-load-fail>p>strong{color:var(--z-title)}
.zc-load-fail>div{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.zc-load-fail button,.zc-load-fail a{min-height:calc(var(--sp-5) * 2);padding:0 var(--sp-4);border:1px solid var(--z-hairline-strong);border-radius:var(--z-radius-ctl);background:transparent;color:var(--z-title);font:var(--zt-small);font-weight:var(--z-kicker-weight);text-decoration:none;display:inline-flex;align-items:center;cursor:pointer}
.zc-load-fail .zc-load-fail-go{background:var(--z-accent-fill);border-color:var(--z-accent-fill);color:var(--z-on-accent)}
