.industry-report-section { min-width: 0; }

.industry-report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.industry-report-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.industry-report-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.industry-report-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-style: italic;
  font-weight: 400;
}

.industry-report-card p,
.industry-empty-state p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.75;
}

.industry-card-link { margin-top: auto; padding-top: 18px; color: var(--gold); font-size: 12px; }
.industry-gate-card, .industry-loading-card, .industry-empty-state { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; }
.industry-gate-card strong, .industry-empty-state strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 15px; font-weight: 500; }
.industry-gate-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.industry-gate-card p { margin: 0; color: var(--text-2); line-height: 1.75; font-size: 13px; }
.industry-error-card { border-color: var(--down-border); }
.industry-gate-card .btn { min-height: 38px; }

/* Detail uses the existing shell palette and the approved report layout. */
.industry-report-detail { width: 100%; max-width: 1200px; margin: 0 auto; }
.industry-report-detail .main-body { gap: 16px; }
#industry-report-summary, #industry-report-full { min-width: 0; }
#industry-report-full { display: flex; flex-direction: column; gap: 16px; }
.industry-report-detail .card { background: var(--surface); padding: 20px 22px; }
.industry-eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .22em; color: var(--text-2); text-transform: uppercase; }
.industry-section { min-width: 0; }
.industry-section h2 { margin: 4px 0 2px; color: var(--text); font-family: "Cormorant Garamond", "Noto Sans TC", serif; font-style: italic; font-weight: 500; font-size: 22px; }
.industry-sub { margin: 0 0 14px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.industry-report-detail .industry-hero { padding: 26px 26px 22px; }
.industry-hero-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.industry-hero h2 { margin: 0; font-family: "Cormorant Garamond", "Noto Sans TC", serif; font-style: italic; font-weight: 500; font-size: 40px; line-height: 1.1; }
.industry-cycle-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--warn); color: var(--warn); font-size: 12px; padding: 2px 10px; }
.industry-meta { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--text-2); }
.industry-thesis { max-width: 820px; margin: 12px 0 18px; color: var(--text); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.industry-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.industry-kpi { padding: 14px 16px 2px 0; }
.industry-kpi + .industry-kpi { padding-left: 16px; border-left: 1px solid var(--line); }
.industry-kpi .label, .industry-kpi .note { font-size: 11.5px; color: var(--text-2); }
.industry-kpi .val { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 26px; line-height: 1.3; }
.industry-moatbar { display: flex; height: 8px; margin: 10px 0 6px; gap: 2px; }
.industry-moatbar span { display: block; }
.industry-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); }
.industry-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; }
.moat-wide, .dot.green { background: var(--up); }
.moat-narrow, .dot.yellow { background: var(--warn); }
.moat-none, .moat-unscored, .dot.neutral { background: var(--text-3); }
.dot.red { background: var(--down); }
.industry-report-detail .dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.industry-report-detail .up, .industry-report-detail .moat.wide { color: var(--up); }
.industry-report-detail .down { color: var(--down); }
.industry-report-detail .muted, .industry-report-detail .moat.none, .industry-report-detail .moat.unscored { color: var(--text-2); }
.industry-report-detail .moat.narrow { color: var(--warn); }
.industry-report-detail .num { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.industry-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.industry-section svg { display: block; width: 100%; height: auto; }
.industry-section svg text { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; fill: var(--text-2); }
.industry-gridline { stroke: var(--line); }
.industry-revenue-bar { fill: var(--up); opacity: .16; }
.industry-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); margin-top: 6px; }
.industry-chart-legend .sw { display: inline-block; width: 14px; height: 2px; margin-right: 5px; vertical-align: middle; }
.sw.gold { background: var(--gold); }
.sw.secondary { background: var(--text-2); }
.industry-chart-legend .sw.bar { width: 8px; height: 8px; background: var(--up-border); }
.industry-takeaway { border-left: 2px solid var(--gold-dim); padding: 2px 0 2px 10px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; }
.industry-no-data { color: var(--text-2); font-size: 12px; line-height: 1.7; }
.industry-contrib-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 65px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.industry-contrib-row > span:first-child { overflow-wrap: anywhere; }
.industry-contrib-row > .num { text-align: right; }
.industry-contrib-track { position: relative; height: 12px; }
.industry-contrib-track .zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--border-strong); }
.contrib-fill { position: absolute; top: 0; height: 12px; background: var(--gold); opacity: .85; }
.contrib-fill.neg { background: var(--down); }
.industry-report-detail .tk { margin-right: 8px; color: var(--text-2); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
.industry-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.industry-report-detail .chip { border: 1px solid var(--border); background: transparent; color: var(--text-2); font: inherit; font-size: 12px; padding: 4px 11px; cursor: pointer; min-height: 32px; }
.industry-report-detail .chip.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.industry-member-table-wrap { overflow-x: auto; }
.industry-member-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.industry-member-table th { font-weight: 400; font-size: 11px; color: var(--text-2); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.industry-member-table th button { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; min-height: 28px; }
.industry-member-table .r { text-align: right; }
.industry-member-table .arr { color: var(--gold); margin-left: 3px; }
.industry-member-table th.grp { text-align: center; border-bottom: 1px solid var(--border); color: var(--text-3); letter-spacing: .1em; font-size: 10px; padding-bottom: 2px; }
.industry-member-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.industry-member-table tr.group td { background: var(--surface-2); color: var(--gold); font-size: 12px; padding: 7px 8px; }
.industry-member-table .gstat { color: var(--text-2); margin-left: 14px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; }
.industry-member-table tr.m:hover td { background: var(--gold-soft); }
.industry-report-detail .score { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.industry-report-detail .moat { font-size: 12px; }
.industry-pending { color: var(--text-3); font-size: 11px; }
.industry-table-note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.industry-member-cards, .industry-mobile-sort { display: none; }
.industry-watch-group h4 { margin: 14px 0 6px; font-size: 12px; color: var(--gold); font-weight: 500; }
.industry-watch-group ul { list-style: none; padding: 0; margin: 0; }
.industry-watch-group li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.industry-watch-group li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.industry-watch-group .tag { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--text-2); font-size: 10.5px; flex: none; }
.industry-watch-group .then { color: var(--text-2); font-size: 11.5px; }
.industry-data-notes { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.industry-data-notes .industry-eyebrow { margin-bottom: 10px; }
.industry-data-notes dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px 16px; margin: 0 0 14px; }
.industry-data-notes dt { color: var(--text-3); }
.industry-data-notes dd { margin: 0; overflow-wrap: anywhere; }
.industry-disclaimer { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 0; color: var(--text-3); font-size: 11.5px; }

@media (max-width: 1100px) {
  .industry-report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .industry-report-detail .main-body { padding: 16px; }
  .industry-report-detail .page-head { padding: 20px 16px 16px; }
  .industry-report-detail .card { padding: 16px; }
  .industry-report-detail .industry-hero { padding: 20px 16px; }
  .industry-hero h2 { font-size: 32px; }
  .industry-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-kpi, .industry-kpi + .industry-kpi { padding: 12px 10px 4px 0; border-left: 0; }
  .industry-kpi:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .industry-kpi .val { font-size: 22px; }
  .industry-grid2 { grid-template-columns: 1fr; }
  .industry-contrib-row { grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 6px; font-size: 12px; }
  .industry-contrib-row .tk { font-size: 11px; }
  .industry-member-table-wrap { display: none; }
  .industry-member-cards { display: block; }
  .industry-mobile-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--text-2); }
  .industry-mobile-sort select { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 8px; font: inherit; max-width: 100%; }
  .mcard { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .mcard summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; cursor: pointer; }
  .mcard summary > span:first-child { overflow-wrap: anywhere; }
  .mcard summary::-webkit-details-marker { display: none; }
  .mcard .row2 { font-size: 12px; color: var(--text-2); }
  .mcard .detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 8px; font-size: 12px; }
  .mcard .detail a { grid-column: 1 / -1; padding: 8px 0; }
  .mgroup { color: var(--gold); font-size: 12px; margin: 14px 0 2px; }
  .industry-data-notes dl { grid-template-columns: 1fr; gap: 0; }
  .industry-data-notes dd { margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .industry-report-list { grid-template-columns: 1fr; }
}
