/* ============================================================
   FEEDS — INDUSTRY + INTELLIGENCE DASHBOARDS (page-specific styles)
   Loaded after css/styles.css by both channel pages and built only from its
   tokens (--charcoal*, --yellow, --offwhite, --muted, --radius), so the
   channels read as the same product as News. Rewritten 2026-09-22 when both
   pages became dashboards (js/industry-shell.js, js/industry.js,
   js/intelligence.js). No lean colours are used anywhere here: political lean
   and media type never appear on these channels.
   ============================================================ */

/* ---- bar under the nav: industry picker (left) + region control (right) ---- */
.ind-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 0 14px; }
.ind-bar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ind-pick {
  display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%;
  background: var(--charcoal-soft); color: var(--white);
  border: 1px solid var(--charcoal-line); border-radius: 999px;
  padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.ind-pick:hover, .ind-pick[aria-expanded="true"] { border-color: var(--yellow); }
.ind-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ind-crumb { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ind-caret {
  width: 0; height: 0; align-self: center; flex: 0 0 auto;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--yellow);
}
.ind-scope {
  background: none; border: 1px solid var(--charcoal-line); color: var(--offwhite);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.ind-scope:hover { border-color: var(--yellow); color: var(--yellow); }

.rg-seg {
  display: inline-flex; gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: 999px;
}
.rg-seg::-webkit-scrollbar { display: none; }
.rg-opt {
  background: none; border: 0; color: var(--offwhite); font: inherit; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.rg-opt:hover { color: var(--yellow); }
.rg-opt.on { background: var(--yellow); color: var(--charcoal); font-weight: 600; }
.rg-select-wrap { display: none; }
.rg-select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--white);
  background: var(--charcoal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23F3C11B'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--charcoal-line); border-radius: 999px; padding: 8px 30px 8px 14px; cursor: pointer; max-width: 150px;
}
.rg-select:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rg-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 1;
  color: var(--muted); border: 1px solid var(--charcoal-line); border-radius: 4px; padding: 3px 4px;
}

/* ---- the picker ---- */
.ind-panel {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: rgba(20, 21, 24, .96);
  padding-top: env(safe-area-inset-top, 0px);
}
.ind-panel-inner { padding-block: 26px 60px; }
.ind-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ind-panel-top h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--white); }
.ind-close { background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.ind-close:hover { color: var(--yellow); }
.ind-search { display: block; margin: 16px 0 10px; }
.ind-search input {
  width: 100%; max-width: 560px; background: var(--charcoal-soft); color: var(--offwhite);
  border: 1px solid var(--charcoal-line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px;
}
.ind-search input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.ind-panel-note { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.ind-sectors { columns: 3 260px; column-gap: 28px; }
.ind-sector { break-inside: avoid; margin-bottom: 22px; }
.ind-sector-name, .ind-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%;
  background: none; border: 0; text-align: left; font: inherit; cursor: pointer; padding: 5px 6px; border-radius: 6px;
}
.ind-sector-name { font-size: 15px; font-weight: 700; color: var(--white); border-bottom: 1px solid var(--charcoal-line); border-radius: 6px 6px 0 0; margin-bottom: 4px; }
.ind-item { font-size: 14px; color: var(--offwhite); }
.ind-sector-name:hover, .ind-item:hover { background: var(--charcoal-soft); color: var(--yellow); }
.ind-sector-name.on, .ind-item.on { color: var(--yellow); }
.ind-n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ind-list { list-style: none; margin: 0; padding: 0; }

/* ---- page frame ---- */
.dash { padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 22px; }
.dash-head { display: flex; flex-direction: column; gap: 8px; }
.dash-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dash-title h1 { margin: 0; font-size: 30px; font-weight: 700; color: var(--white); letter-spacing: -.2px; text-wrap: balance; }
.dash-crumb { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.dash-desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 80ch; }
.dash-examples { margin: 0; color: var(--offwhite); font-size: 13px; line-height: 1.5; max-width: 90ch; }
.dash-examples span {
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-right: 8px;
}

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.kpi {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: var(--radius);
}
.kpi-n { font-size: 28px; font-weight: 700; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 13px; color: var(--offwhite); font-weight: 600; }
.kpi-s { font-size: 12px; color: var(--muted); }
.kpi.alert .kpi-n { color: var(--yellow); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 20px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---- panels ---- */
.dpanel {
  background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: var(--radius);
  padding: 16px 18px 14px; min-width: 0;
}
.dp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dp-head h2 {
  margin: 0; font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: .01em;
  display: flex; align-items: center; gap: 8px;
}
.dp-head h2::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--yellow); }
.dp-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.dp-tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.dp-body { min-width: 0; }
.dp-loading, .dp-empty, .dp-note { margin: 4px 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.dp-note { font-size: 12.5px; }
.dp-more, .dp-link {
  background: none; border: 0; padding: 0; margin-top: 10px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--yellow); cursor: pointer; text-decoration: none; display: inline-block;
}
.dp-more:hover, .dp-link:hover { text-decoration: underline; }
.dp-empty .dp-link { margin: 0 0 0 6px; }

/* ---- rows ---- */
.drows { display: flex; flex-direction: column; }
.drow { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--charcoal-line); }
.drows > .drow:first-child { border-top: 0; padding-top: 2px; }
.drow-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.drow-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.drow-src { color: var(--offwhite); font-weight: 600; }
.drow-title { color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; text-wrap: pretty; }
.drow-title:hover { color: var(--yellow); }
.drows.compact .drow-title { font-size: 14px; }
.drow-sum {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.drow-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.d-thumb { width: 84px; height: 60px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #1d1e21; }
.d-logo, .d-logo-mono { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; }
.d-logo-mono { display: inline-flex; align-items: center; justify-content: center; font-size: 8px; }
.d-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow);
}
.d-pill { font-size: 11.5px; font-weight: 600; border-radius: 5px; padding: 2px 7px; border: 1px solid var(--charcoal-line); color: var(--offwhite); }
.d-pill.law { background: rgba(143, 191, 122, .16); border-color: rgba(143, 191, 122, .45); color: #b9dcaa; }
.d-pill.proposed { background: rgba(243, 193, 27, .14); border-color: rgba(243, 193, 27, .45); color: var(--yellow); }
.d-deadline { font-size: 12px; color: var(--yellow); font-weight: 600; }
.d-ind {
  background: none; border: 1px solid var(--charcoal-line); color: var(--muted); border-radius: 999px;
  padding: 1px 8px; font: inherit; font-size: 11px; cursor: pointer;
}
.d-ind:hover { border-color: var(--yellow); color: var(--yellow); }
.drow-also { font-size: 12.5px; color: var(--muted); }
.drow-also summary { cursor: pointer; color: var(--muted); list-style: none; }
.drow-also summary::-webkit-details-marker { display: none; }
.drow-also summary::before { content: "+ "; color: var(--yellow); font-weight: 700; }
.drow-also[open] summary::before { content: "− "; }
.drow-also-item { display: block; padding: 4px 0 0 12px; color: var(--offwhite); text-decoration: none; line-height: 1.4; }
.drow-also-item:hover { color: var(--yellow); }

/* ---- top stories ---- */
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.top-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--charcoal-line); border-radius: 12px; background: var(--charcoal); min-width: 0; }
.top-media { width: 104px; height: 78px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: #1d1e21; }
.top-media img { width: 100%; height: 100%; object-fit: cover; }
.top-media.noimg { display: none; }
.top-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.top-n { color: var(--yellow); font-weight: 700; }
.top-title { color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.top-title:hover { color: var(--yellow); }
.top-marks { display: flex; gap: 4px; flex-wrap: wrap; }
.top-open { margin-top: 2px; align-self: flex-start; font-size: 12.5px; }
.top-list { display: flex; flex-direction: column; border-top: 1px solid var(--charcoal-line); margin-top: 4px; padding-top: 4px; }
.top-list-item {
  display: grid; grid-template-columns: 18px auto 1fr; column-gap: 8px; row-gap: 1px; align-items: center;
  padding: 7px 0; color: var(--offwhite); text-decoration: none; font-size: 13px; line-height: 1.35;
}
.top-list-item .top-list-t { grid-column: 2 / 4; color: var(--offwhite); }
.top-list-item .top-list-time { grid-column: 3; justify-self: end; grid-row: 1; color: var(--muted); font-size: 11.5px; }
.top-list-item:hover .top-list-t { color: var(--yellow); }

/* ---- sources ---- */
.src-group { margin-bottom: 12px; }
.src-group h3 { margin: 6px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.src-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--offwhite); text-decoration: none; font-size: 13.5px;
  border-top: 1px solid rgba(58, 59, 65, .6);
}
.src-row:hover .src-name { color: var(--yellow); }
.src-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---- overview (no industry picked) ---- */
.ov-block { display: flex; flex-direction: column; gap: 6px; }
.ov-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ov-tile {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; font: inherit;
  background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: 12px; padding: 12px 14px; color: var(--offwhite);
}
.dpanel .ov-tile { background: var(--charcoal); }
.ov-tile:hover { border-color: var(--yellow); }
.ov-tile-sec { font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.ov-tile-name { font-size: 15px; font-weight: 700; color: var(--white); }
.ov-tile-n { font-size: 12.5px; color: var(--muted); }
.ov-tile-n b { color: var(--offwhite); font-weight: 600; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ov-sector { background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: var(--radius); padding: 10px 12px 12px; }
.ov-sector-name {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%; gap: 8px;
  background: none; border: 0; border-bottom: 1px solid var(--charcoal-line); padding: 4px 4px 8px; margin-bottom: 4px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--white); cursor: pointer; text-align: left;
}
.ov-sector-name:hover { color: var(--yellow); }
.ov-sector-n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 70px 58px; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; border-radius: 6px; padding: 5px 4px; font: inherit; font-size: 13.5px; color: var(--offwhite);
  cursor: pointer; text-align: left;
}
.ov-row:hover { background: var(--charcoal); color: var(--yellow); }
.ov-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-bar { height: 6px; border-radius: 3px; background: var(--charcoal); overflow: hidden; }
.ov-bar span { display: block; height: 100%; background: var(--yellow); border-radius: 3px; opacity: .85; }
.ov-row-n { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Phones (the site header becomes two rows below 680px, css/styles.css):
   keep this bar to ONE row under it. The sector crumb and the scope buttons
   go (the picker offers every sector and "All industries"), and the region
   control becomes a dropdown. */
@media (max-width: 680px) {
  .ind-bar { flex-wrap: nowrap; gap: 8px; padding: 2px 0 10px; }
  .ind-bar-left { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
  .ind-pick { min-width: 0; max-width: 100%; padding: 8px 14px; font-size: 14px; }
  .ind-crumb, .ind-scope { display: none; }
  .rg-seg { display: none; }
  .rg-select-wrap { display: block; flex: 0 0 auto; }
}
@media (max-width: 620px) {
  .dash { padding-top: 18px; }
  .dash-title h1 { font-size: 24px; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-n { font-size: 22px; }
  .dpanel { padding: 14px 14px 12px; }
  .d-thumb { width: 64px; height: 48px; }
  .top-grid { grid-template-columns: minmax(0, 1fr); }
}
