/* clean/home-news.css — page polish for the clean layer (see clean/base.css).
   Home (.homeview: Halo chat + the program cards), News (.newsview) and the standalone
   Overview page (.ovview). Everything is scoped under those view classes. */

/* ================================================================ Home: program cards */
/* Each card reads at a glance: tag, headline, ONE picture, at most three rows. The pictures
   come from lib/viz.js; here they are tuned to sit on the liquid-glass card. */
.homeview .cc-vizwrap { margin-top: 4px; }
.homeview .cc-viz { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.homeview .cc-viz.fig { grid-template-columns: auto minmax(0, 1fr); gap: 26px; }
.homeview .cc-viz-main, .homeview .cc-viz-side { min-width: 0; }
.homeview .cc-viz-cap { margin-top: 7px; font: 500 9.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.homeview .cc-stack { display: flex; flex-direction: column; gap: 16px; }
.homeview .cc-meters { display: flex; flex-direction: column; gap: 11px; min-width: 0; }

/* facts: a calm stat strip on the glass — hairline dividers, no boxes */
.homeview .cc .vz-kpis { border: 0; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.homeview .cc .vz-kpi { padding: 2px 18px; gap: 4px; border-left: 1px solid rgba(255, 255, 255, 0.08); border-top: 0; }
.homeview .cc .vz-kpi:first-child { padding-left: 0; border-left: 0; }
.homeview .cc .vz-kpi-v { font-size: 20px; }
.homeview .cc .vz-kpi-h { font: 10.5px/1.3 var(--mono); }
.homeview .cc-viz-side .vz-kpis { grid-template-columns: repeat(var(--n), auto); }
.homeview .cc-viz-side .vz-kpi { padding: 2px 0 2px 16px; }
.homeview .cc-viz-side .vz-kpi:first-child { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.homeview .cc-viz.fig .cc-viz-side .vz-kpi:first-child { padding-left: 0; border-left: 0; }

/* pictures on glass: lighter tracks, translucent nodes */
.homeview .cc .vz-track, .homeview .cc .vz-split-bar { background: rgba(255, 255, 255, 0.07); }
.homeview .cc .vz-split { gap: 11px; }
.homeview .cc .vz-legend { gap: 6px 18px; }
.homeview .cc .vz-cols { gap: 6px; }
.homeview .cc .vz-col-bar { max-width: 26px; background: rgba(255, 255, 255, 0.05); }
.homeview .cc .vz-col-l { font: 10px var(--mono); }
.homeview .cc .vz-ring .vz-cap { font-size: 11.5px; white-space: nowrap; }
.homeview .cc .vz-hbars { gap: 9px; }
.homeview .cc .vz-hbar { grid-template-columns: minmax(80px, 0.9fr) minmax(0, 1.4fr) auto; gap: 12px; }
/* the brain tiers as a flow that fits the card (never scrolls sideways inside it) */
.homeview .cc .vz-flow { overflow: hidden; padding: 2px 0; }
.homeview .cc .vz-node { flex: 0 1 auto; min-width: 0; background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.1); }
.homeview .cc .vz-node-t { min-width: 0; }
.homeview .cc .vz-node-l, .homeview .cc .vz-node-s { overflow: hidden; text-overflow: ellipsis; }
.homeview .cc .vz-node-s { font: 10.5px var(--mono); }
.homeview .cc .vz-flow-link { flex: 1 1 12px; min-width: 10px; max-width: 40px; }

/* rows under a picture: a touch more air above, fewer lines */
.homeview .cc.has-viz .cc-rows { margin-top: 2px; }
.homeview .cc.has-viz .cc-body { -webkit-line-clamp: 2; }

/* short windows: keep the pictures compact so the wheel clears Halo's composer */
@media (max-height: 720px) {
  .homeview .cc .vz-cols { --vz-h: 28px !important; }
  .homeview .cc-viz-cap { display: none; }
  .homeview .cc .vz-legend { gap: 4px 14px; }
  .homeview .cc .vz-kpi-h { display: none; }
  .homeview .cc-meters .vz-meter:nth-child(n+3) { display: none; }
}
/* phone-width cards: the picture alone (a ring keeps its meters) */
@media (max-width: 640px) {
  .homeview .cc-viz:not(.fig) { grid-template-columns: minmax(0, 1fr); }
  .homeview .cc-viz:not(.fig) .cc-viz-side { display: none; }
  .homeview .cc-viz.fig { gap: 16px; }
  .homeview .cc .vz-kpi { padding: 2px 12px; }
}

/* ================================================================ Home: Halo composer */
/* attach is a quiet icon; "Thinking" reads as a micro-label; the working/done status sits
   beside Send on one line */
.homeview .composer-tool.icon { width: 30px; padding: 0; justify-content: center; border-color: transparent; color: var(--text-3); }
.homeview .composer-tool.icon:hover { border-color: var(--line-2); color: var(--text); }
.homeview .composer-tool.icon .i { width: 17px; height: 17px; }
.homeview .composer-effort > span { font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }
.homeview .composer-effort .effort-sel { border-color: transparent; color: var(--text-2); }
.homeview .composer-effort .effort-sel:hover, .homeview .composer-effort .effort-sel:focus { border-color: var(--line-2); color: var(--text); }
.homeview .composer-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.homeview .halo-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: min(320px, 40vw); font: 11.5px/1.2 var(--mono); color: var(--text-3); white-space: nowrap; }
.homeview .halo-status:empty { display: none; }
.homeview .halo-status .hs-text { overflow: hidden; text-overflow: ellipsis; }
.homeview .halo-status .hs-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); animation: livepulse 1.4s ease-out infinite; }
.homeview .halo-status .hs-check { color: var(--good); font-weight: 600; }
.homeview .halo-status.is-done { color: var(--text-2); animation: ui-fade 0.2s var(--ease); }

/* ================================================================ News */
.newsview .news-head .bp-eyebrow { margin-bottom: 10px; cursor: default; }
.newsview .news-head p { max-width: 80ch; }
.newsview .news-feed { padding-top: 22px; }

/* what today's briefing is made of: one stacked bar + its key, on a single line */
.newsview .news-map { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 20px; }
.newsview .news-map-l { flex: none; font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }
.newsview .news-map .vz-split { flex: 1 1 360px; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.newsview .news-map .vz-split-bar { flex: 0 0 min(240px, 100%); }

/* the lead story: the one big card on the page */
.newsview .news-card.lead {
  padding: 26px 30px 24px; border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(var(--tac), 0.045), rgba(var(--tac), 0) 70%), var(--surface);
}
.newsview .news-card.lead .news-title { margin: 14px 0 10px; }
.newsview .news-card.lead .news-body { color: var(--text-2); }
.newsview .news-cat { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* category sections: a dot keyed to the bar above, calm titles */
.newsview .news-sec-t { display: inline-flex; align-items: center; gap: 9px; }
.newsview .news-feed .sec { padding-top: 30px; }

/* story cards: title + a few lines; a click opens the rest in place */
.newsview .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.newsview .news-grid .news-card { padding: 16px 18px 15px; background: var(--surface); }
.newsview .news-grid .news-title { margin: 8px 0 6px; font-size: 14px; }
.newsview .news-grid .news-body {
  font-size: 12.5px; line-height: 1.55; color: var(--text-3);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.newsview .news-grid .news-card.open .news-body { display: block; -webkit-line-clamp: unset; overflow: visible; color: var(--text-2); }
.newsview .news-grid .news-card.can-open { cursor: pointer; }
.newsview .news-grid .news-card.can-open:not(.open) .news-body { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.newsview .news-card .news-btns { margin-top: auto; padding-top: 14px; gap: 18px; }
.newsview .news-card .news-btns .news-go { margin-top: 0; }
.newsview .news-go.ask { color: var(--text-3); }
.newsview .news-go.ask:hover { color: var(--text); }
.newsview .news-go .i { width: 13px; height: 13px; }

/* "Show all (N)" under a card grid spans the grid */
.newsview .news-showall { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

/* industry stories: same grid rhythm as the briefing cards */
.newsview .news-industry { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.newsview .news-industry-foot { margin-top: 10px; }

/* profile column: compact — a dot per fact, the forget button quiet until hover */
.newsview .side-col .sec-desc { -webkit-line-clamp: 1; }
.newsview .side-col .sec-title { cursor: help; }
.newsview .prof-list { margin-bottom: 12px; }
.newsview .prof-item { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; }
.newsview .prof-src { display: inline-flex; align-items: center; height: 100%; line-height: 1; }
.newsview .prof-text { font-size: 12.5px; line-height: 1.5; }
.newsview .prof-item .btn.ghost { color: var(--text-4); }
.newsview .prof-item:hover .btn.ghost, .newsview .prof-item .btn.ghost:focus-visible { color: var(--text-2); }
.newsview .prof-signals { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; font: inherit; }
.newsview .prof-sig-l { display: block; margin-bottom: 10px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }
.newsview .prof-signals .vz-hbars { gap: 8px; }
.newsview .prof-signals .vz-hbar { grid-template-columns: minmax(84px, 0.9fr) minmax(0, 1.3fr) auto; gap: 10px; }
.newsview .prof-signals .vz-hbar-l { font-size: 12px; }
.newsview .prof-signals .vz-hbar-r { min-width: 24px; font-size: 11px; color: var(--text-3); }
.newsview .prof-signals .vz-track { height: 4px; }

/* ================================================================ Overview (standalone) */
.ovview .ov-strip { margin: 8px 0 6px; }
.ovview .vz-kpi.is-text .vz-kpi-v { font: 500 14px/1.7 var(--mono); letter-spacing: 0; color: var(--text-2); }
.ovview .ov-ms { gap: 20px 40px; }
.ovview .ov-list { margin-top: 12px; }
.ovview .ov-list .list-item .vz-dot { margin-left: 10px; }
