/* Public discovery experience. Loaded after brand.css so operator pages retain their own styling. */
:root {
  --teal: #0f9f8c;
  --cyan: #2d7eea;
  --blue: #1f5fbf;
  --violet: #6a5acd;
  --grad: #1f5fbf;
  --grad-soft: #edf4ff;
  --bg: #f6f8fb;
  --bg2: #edf2f7;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e3e8ef;
  --line-strong: #cbd5e1;
  --text: #1f2937;
  --muted: #667085;
  --gold: #b7791f;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(16, 24, 40, .06);
}

body { background: var(--bg); color: var(--text); }
.bg-glow { display: none; }
.wrap, .section { max-width: 1240px; }

/* Navigation */
.topbar { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-color: var(--line); }
.topbar .wrap { height: 64px; }
.brand { gap: 10px; }
.brand img { height: 34px; }
.brand .sysname { color: #172033; font-size: 14px; }
.brand .sysname small { color: #7a8497; font-size: 10px; letter-spacing: 0; }
.nav-main { gap: clamp(18px, 2vw, 34px); }
.nav-main a { color: #667085; font-size: 14px; padding: 21px 2px 18px; }
.nav-main a:hover, .nav-main a.on { color: #1d4f91; }
.nav-main a.on::after { bottom: 0; height: 2px; background: #1f5fbf; border-radius: 0; }
.lang-switch { border: 0; border-radius: 4px; background: #f1f4f8; padding: 2px; }
.lang-switch span { color: #667085; border-radius: 3px; padding: 4px 10px; }
.lang-switch span.on { background: #fff; color: #1f5fbf; box-shadow: 0 1px 3px rgba(16,24,40,.12); }

/* Common controls */
.btn { background: #1f5fbf; color: #fff; border-radius: 6px; box-shadow: none; padding: 11px 20px; font-size: 14px; }
.btn:hover { background: #184d9f; transform: none; box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; }
.btn.ghost { color: #1f5fbf; background: #fff; border-color: #bdd0ec; }
.btn.ghost:hover { background: #f4f8fe; border-color: #1f5fbf; }
.panel { background: #fff; border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: none; }
.chip { background: #fff; border-color: #d9e0ea; color: #475467; border-radius: 5px; padding: 6px 10px; font-size: 12.5px; }
.chip:hover { color: #1f5fbf; border-color: #8eb5e7; transform: none; }
.chip.on { background: #eaf2ff; color: #1f5fbf; border-color: #9fc0ed; font-weight: 600; }
.chip .en { color: inherit; opacity: .68; }
.mini-tag { border-color: #d8e0eb; color: #596579; border-radius: 4px; padding: 3px 8px; }
.mini-tag.teal { color: #087f6e; background: #e8f8f4; border-color: #bde9df; }
.mini-tag.blue { color: #265ca7; background: #edf4ff; border-color: #c8dcfa; }
.mini-tag.cyan { color: #4f5f75; background: #f4f6f8; border-color: #e1e6ed; }
.badge { color: #087f6e; border-color: #bde9df; background: #e8f8f4; border-radius: 4px; }
.badge.local { color: #6246a5; border-color: #d9ccf8; background: #f4f0ff; }

/* Home discovery */
.hero { max-width: 1240px; padding: 48px 24px 26px; text-align: left; }
.hero .kicker { display: block; margin: 0 0 10px; padding: 0; border: 0; border-radius: 0; background: none; color: #1f5fbf; font-size: 11px; font-weight: 700; letter-spacing: 1.25px; }
.hero h1 { color: #172033; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.6px; line-height: 1.22; }
.hero h1 .grad-text, .grad-text { color: #1f5fbf; background: none; }
.hero p.sub { color: #667085; margin: 10px 0 22px; max-width: 760px; font-size: 14px; }
.search-shell { max-width: 780px; margin: 0; gap: 8px; padding: 5px; background: #fff; border-color: #bfcbd9; border-radius: 8px; box-shadow: 0 2px 5px rgba(16,24,40,.06); backdrop-filter: none; }
.search-shell:focus-within { border-color: #5488ce; box-shadow: 0 0 0 3px rgba(31,95,191,.12); }
.search-input { color: #1f2937; padding: 10px 12px; }
.search-input::placeholder { color: #98a2b3; }
.hot-searches { justify-content: flex-start; gap: 7px; margin-top: 14px; }
.hot-searches .lbl { color: #7a8497; font-size: 12px; }
.hot-searches .chip { padding: 4px 8px; background: transparent; border-color: transparent; color: #526a8d; }
.hot-searches .chip:hover { background: #edf4ff; color: #1f5fbf; }
.section { padding-top: 36px; }
.sec-head { align-items: flex-start; margin-bottom: 14px; }
.sec-head h2 { color: #172033; font-size: 20px; line-height: 1.3; }
.sec-head h2::before { display: none; }
.sec-head .more { color: #1f5fbf; font-size: 13px; }

/* Map workspace */
.map-panel { padding: 18px; overflow: visible; }
.map-region-chips { margin-bottom: 14px; }
.region-chip-list { gap: 7px; }
.map-flex { grid-template-columns: minmax(0, 1fr) 236px; gap: 18px; border-top: 1px solid #edf0f4; padding-top: 8px; }
.map-flex, .map-flex > *, .map-region-chips, .region-chip-list { min-width: 0; }
#regionMap { height: 520px; }
.map-hint { color: #7a8497; padding: 12px 0 0; text-align: left; font-size: 11.5px; border-top: 1px solid #edf0f4; margin-top: 4px; }
.map-hint b { color: #1f5fbf; }
.zoom-tip { right: 14px !important; bottom: 14px !important; color: #596579 !important; background: rgba(255,255,255,.92) !important; border-color: #d8e0eb !important; border-radius: 4px !important; box-shadow: 0 1px 4px rgba(16,24,40,.08); }
.zoom-tip b { color: #1f5fbf !important; }
.map-view-status { left: 14px; bottom: 14px; background: rgba(255,255,255,.94); border-color: #bdd0ec; border-radius: 4px; }
.map-view-status b { color: #1f5fbf; }
.map-view-status span { color: #667085; }
.dense-list { gap: 3px; }
.dense-item { gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.dense-item .rank { color: #667085; background: #f1f4f8; border: 0; border-radius: 4px; width: 20px; height: 20px; }
.dense-item .bar { background: #eef2f6; border-radius: 0; height: 5px; }
.dense-item .bar i { border-radius: 0; }
.dense-item .cnt { color: #1f5fbf; min-width: 40px; }
.dense-item .nm { color: #344054; min-width: 62px; }

/* Summary and industry navigation */
.stat-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.stat { background: transparent; border: 0; border-radius: 0; padding: 18px 14px; text-align: left; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat::after { display: none; }
.stat .num { display: block; color: #172033; background: none; font-size: 25px; line-height: 1.2; }
.stat .lbl { color: #667085; font-size: 12px; margin-top: 4px; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.signal-card { display: block; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .18s, box-shadow .18s; }
.signal-card:hover { border-color: #9fc0ed; box-shadow: 0 4px 12px rgba(16,24,40,.07); }
.signal-card .signal-type { color: #7a8497; font-size: 11px; font-weight: 650; letter-spacing: .35px; text-transform: uppercase; }
.signal-card .signal-value { display: block; color: #1f2937; font-size: 15px; font-weight: 650; line-height: 1.4; margin-top: 6px; }
.signal-card .signal-meta { display: block; color: #667085; font-size: 12px; margin-top: 4px; }
.industry-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ind-card { padding: 15px; background: #fff; border-color: var(--line); border-radius: 8px; }
.ind-card:hover { border-color: #9fc0ed; transform: none; box-shadow: 0 4px 12px rgba(16,24,40,.07); }
.ind-card .ico { width: 32px; height: 32px; margin-bottom: 10px; border: 0; border-radius: 6px; background: #edf4ff; font-size: 16px; }
.ind-card h4 { color: #344054; font-size: 14px; }
.ind-card h4 .cnt { color: #1f5fbf; }
.ind-card p { color: #8490a3; font-size: 11.5px; }

/* Search workbench */
.results-head { max-width: 1240px; padding: 34px 24px 8px; }
.results-head .search-shell { max-width: 680px; }
.layout { grid-template-columns: 246px minmax(0, 1fr); gap: 26px; margin-top: 20px; }
.filter-panel { padding: 0 18px 18px; position: sticky; top: 82px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-panel h4 { color: #344054; margin: 0 -18px; padding: 16px 18px 9px; font-size: 12px; border-top: 1px solid #edf0f4; letter-spacing: .3px; }
.filter-panel h4:first-child { border-top: 0; }
.filter-panel .chips { gap: 6px; }
.filter-panel .chip { padding: 5px 8px; font-size: 12px; }
.filter-clear { color: #1f5fbf; }
.result-toolbar { color: #667085; padding: 10px 0 14px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.result-toolbar b { color: #1f5fbf; }
.result-toolbar select { background: #fff; color: #344054; border-color: #cbd5e1; border-radius: 5px; padding: 6px 9px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 0; margin: 10px 0 2px; }
.active-filters:empty { display: none; }
.active-filters .filter-label { color: #667085; font-size: 12px; margin-right: 3px; }
.active-filters .filter-token { color: #265ca7; background: #edf4ff; border: 1px solid #c8dcfa; border-radius: 4px; padding: 3px 7px; font-size: 11.5px; cursor: pointer; }
.card { background: #fff; border-color: var(--line); border-radius: 8px; box-shadow: none; margin-bottom: 10px; padding: 18px 20px; }
.card:hover { border-color: #8eb5e7; transform: none; box-shadow: 0 4px 12px rgba(16,24,40,.07); }
.card h3 { color: #1f2937; font-size: 16px; }
.card h3 .en { color: #7a8497; }
.card .meta { color: #667085; margin: 8px 0 5px; }
.card .desc { color: #475467; font-size: 13px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f5; color: #7a8497; font-size: 11.5px; }
.card-footer .updated { white-space: nowrap; }
.empty { background: #fff; color: #667085; border: 1px dashed #cbd5e1; border-radius: 8px; }
.empty .big { font-size: 30px; }
.pager span { color: #667085; background: #fff; border-color: #d8e0eb; border-radius: 4px; }
.pager span.on { color: #fff; background: #1f5fbf; border-color: #1f5fbf; }

/* Company intelligence profile */
.crumb { color: #7a8497; padding-top: 22px; }
.crumb a:hover { color: #1f5fbf; }
.detail-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 25px 26px; margin-top: 12px; }
.detail-head::before { display: none; }
.detail-head h2 { color: #172033; font-size: 25px; letter-spacing: -.3px; }
.detail-head h2 .en { color: #667085; }
.verification-panel { border-color: #ecdcb3; background: #fffbf0; box-shadow: none; border-radius: 8px; padding: 18px 20px; }
.verification-eyebrow { color: #a66b11; }
.verification-panel h3 { color: #3e3320; }
.verification-status { color: #087f6e; border-color: #bde9df; background: #e8f8f4; border-radius: 4px; }
.verification-status.conflict { color: #9c680f; border-color: #ecdcb3; background: #fff7df; }
.verification-status.unverified { color: #b5473b; border-color: #f1c8c1; background: #fff1ef; }
.verification-note { color: #5f5440; }
.verification-meta { color: #7a6c51; }
.verification-sources a { color: #1f5fbf; border-color: #c8dcfa; background: #fff; border-radius: 4px; }
.verification-sources a:hover { color: #184d9f; border-color: #1f5fbf; }
.wiki-panel { margin-top: 16px; padding: 20px; }
.wiki-loading { color: #667085; font-size: 13px; }
.wiki-content { display: flex; align-items: flex-start; gap: 20px; }
.wiki-image { width: 132px; max-height: 160px; flex: 0 0 132px; object-fit: cover; border: 1px solid #e1e7ef; border-radius: 7px; background: #f7f9fc; }
.wiki-copy { min-width: 0; flex: 1; }
.wiki-eyebrow { color: #1f5fbf; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.wiki-panel h3 { margin-top: 4px; color: #344054; font-size: 18px; }
.wiki-panel p { margin-top: 9px; color: #475467; font-size: 13.5px; line-height: 1.75; }
.wiki-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 12px; color: #7a8497; font-size: 11.5px; }
.wiki-footer a { flex-shrink: 0; color: #1f5fbf; font-weight: 600; }
.wiki-footer a:hover { color: #184d9f; }
.tabbar { gap: 20px; border-color: var(--line); margin: 24px 0 16px; }
.tabbar span { color: #667085; padding: 9px 2px; font-size: 14px; }
.tabbar span:hover { color: #1f5fbf; }
.tabbar span.on { color: #1f5fbf; border-bottom-color: #1f5fbf; }
.detail-grid { gap: 14px; }
.detail-grid .panel { padding: 20px; }
.detail-grid .panel h4 { color: #344054; margin-bottom: 12px; }
.detail-grid .panel h4::before { width: 2px; height: 15px; background: #1f5fbf; }
.field { border-color: #eef1f5; padding: 8px 0; }
.field .k { color: #7a8497; }
.field .v { color: #344054; }
.case-item { background: #fff; border-color: #e3e8ef; border-radius: 6px; }
.case-item .y { color: #1f5fbf; }
.case-item .t { color: #344054; }

/* Product capability matching */
.product-hero { max-width: 1240px; padding: 46px 24px 18px; }
.product-hero .kicker { color: #1f5fbf; background: none; border: 0; padding: 0; border-radius: 0; font-weight: 700; font-size: 11px; letter-spacing: 1.25px; margin-bottom: 10px; }
.product-hero h1 { color: #172033; font-size: 32px; }
.product-hero .sub { color: #667085; margin-top: 10px; }
.product-grid { gap: 12px; }
.product-card { padding: 19px; border-radius: 8px; }
.product-card::before { height: 2px; background: #1f5fbf; }
.product-card .ico { width: 34px; height: 34px; border: 0; border-radius: 6px; background: #edf4ff; font-size: 17px; margin-bottom: 10px; }
.product-card h3 { color: #344054; font-size: 16px; }
.product-card p { color: #667085; min-height: 58px; }
.product-card .metric { color: #1f5fbf; }
.scenario-grid { gap: 10px; }
.scenario { padding: 16px; border-radius: 8px; }
.scenario b { color: #344054; }
.scenario span { color: #667085; }
.compare { border: 1px solid var(--line); border-radius: 8px; }
.compare th { color: #475467; background: #f7f9fc; }
.compare td { color: #344054; background: #fff; }
.compare th, .compare td { border-color: #e8ecf1; }

.footer { margin-top: 54px; color: #7a8497; border-color: var(--line); padding: 24px 0 28px; }
.footer img { height: 26px; opacity: .7; }

@media (max-width: 900px) {
  .topbar .wrap { min-height: 60px; }
  .nav-main { border-color: var(--line); }
  .nav-main a { padding: 10px 2px; }
  .hero, .product-hero { padding-top: 32px; }
  .map-flex { grid-template-columns: 1fr; }
  #regionMap { height: 390px; }
  .layout { gap: 14px; }
  .filter-panel { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .section { padding-left: 16px; padding-right: 16px; }
  .hero, .product-hero, .results-head { padding-left: 16px; padding-right: 16px; }
  .topbar .wrap { gap: 8px; }
  .brand { flex: 0 0 auto; }
  .lang-switch { margin-left: auto; }
  .nav-main { flex-basis: calc(100% + 32px); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .search-shell { width: 100%; align-items: stretch; }
  .search-input { min-width: 0; }
  .search-shell .btn { padding: 10px 13px; }
  .map-panel { padding: 12px; }
  #regionMap { height: 340px; }
  .map-view-status { left: 8px; bottom: 8px; }
  .zoom-tip { right: 8px !important; bottom: 8px !important; }
  .map-view-status + * { display: none; }
  .detail-head { padding: 20px; }
  .detail-head .row.between { gap: 15px; }
  .detail-head h2 { font-size: 21px; }
  .wiki-content { flex-direction: column; }
  .wiki-image { width: 112px; max-height: 136px; flex-basis: auto; }
  .wiki-footer { flex-direction: column; gap: 8px; }
  .tabbar { gap: 15px; overflow-x: auto; }
  .tabbar span { white-space: nowrap; }
  .card { padding: 16px; }
  .card-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}
