/* ==========================================================================
   Regional Economic Indicator — page-specific styles
   (shares the visual language of the Regional Economic Index page)
   ========================================================================== */

.rind-intro h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Audience pill selector */
.audience-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Feature image with overlay stat */
.rind-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.rind-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.rind-photo .overlay-stat {
  position: absolute;
  inset-inline-start: 1rem;
  bottom: 1rem;
  background: linear-gradient(135deg, rgba(45, 99, 45, 0.95), rgba(34, 84, 34, 0.95));
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  max-width: 75%;
}
.rind-photo .overlay-stat .k { font-size: 0.72rem; opacity: 0.85; }
.rind-photo .overlay-stat .v {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.2rem 0;
}
.rind-photo .overlay-stat p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  margin: 0;
}

/* Chart card */
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.2rem;
}
.chart-card .chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.chart-card .chart-head h3 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.chart-card .chart-head .sub { font-size: 0.72rem; color: var(--text-muted); }
.chart-card .legend { display: flex; gap: 0.9rem; font-size: 0.72rem; color: var(--text-muted); }
.chart-card .legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.chart-card .legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chart-card .legend .dot.cur { background: var(--primary); }
.chart-card .legend .dot.tgt { background: #c4b5fd; }
.chart-card .chart-img { width: 100%; border-radius: var(--radius-sm); }

/* KPI / donut cards */
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  height: 100%;
}
.kpi-card .kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-lavender);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.kpi-card .kpi-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.kpi-card .kpi-title { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin: 0.4rem 0 0.3rem; }
.kpi-card .kpi-desc { font-size: 0.76rem; color: var(--text-muted); margin: 0; }

.donut-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  height: 100%;
  text-align: center;
}
.donut-card .donut-img { width: 110px; margin: 0 auto 0.6rem; }
.donut-card .donut-title { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.donut-card .donut-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.donut-card .donut-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-end: 0.25rem; }
.donut-card .donut-legend .dot.a { background: var(--primary); }
.donut-card .donut-legend .dot.b { background: #c4b5fd; }

/* Investment table */
.invest-table-block {
  background: var(--bg-lavender);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.invest-table-block .tb-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.invest-table-block .tb-head h3 { font-size: 1.05rem; }
.invest-table-block table { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.invest-table-block .table > :not(caption) > * > * { padding: 0.85rem 1rem; }
.invest-table-block thead th {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.invest-table-block tbody td { font-size: 0.82rem; vertical-align: middle; }
.invest-table-block .growth-pos { color: var(--accent-700); font-weight: 700; }
.invest-table-block .trend-mini { height: 26px; }
.btn-dark { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-2px); }

/* Active sectors bars */
.sector-bars .bar-row { margin-bottom: 1.1rem; }
.sector-bars .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.sector-bars .bar-label .pct { color: var(--primary); }
.sector-bars .track { height: 9px; border-radius: var(--radius-pill); background: var(--bg-lavender); overflow: hidden; }
.sector-bars .fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--primary), var(--primary-light)); }

/* Tourism tiles */
.tourism-tile { border-radius: var(--radius); padding: 1.3rem; height: 100%; color: #fff; }
.tourism-tile.green { background: linear-gradient(135deg, #1f5c3a, #14492c); }
.tourism-tile.purple { background: linear-gradient(135deg, #6d28d9, #4c1fb8); }
.tourism-tile.yellow { background: linear-gradient(135deg, #f4d03f, #e8c20f); color: var(--ink); }
.tourism-tile h3 { font-size: 1rem; color: inherit; margin-bottom: 0.4rem; }
.tourism-tile .big { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.5rem; }
.tourism-tile p { color: inherit; opacity: 0.9; font-size: 0.78rem; margin: 0; }
.tourism-tile.yellow .spend-row { margin-top: 0.6rem; }
.tourism-tile.yellow .spend-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.tourism-tile.yellow .track { height: 6px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.12); overflow: hidden; }
.tourism-tile.yellow .fill { height: 100%; background: var(--primary); border-radius: var(--radius-pill); }

/* Jobs cards */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  height: 100%;
}
.job-card .k { font-size: 0.74rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; }
.job-card .v { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin: 0.3rem 0; }
.job-card .note { font-size: 0.74rem; color: var(--accent-700); font-weight: 600; }

/* Objective audience cards */
.objective-card {
  text-align: center;
}
.objective-card img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.6rem;
}
.objective-card .name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
