/* =============================================================================
   NC J2JS Interstate Talent Competition Dashboard — Version 2 (Wireframe Design)
   Labor and Economic Analysis Division — NC Department of Commerce
   ============================================================================= */

:root {
  --j2j-navy:    #1a3a5c;
  --j2j-gold:    #c8a84b;
  --j2j-blue:    #185fa5;
  --j2j-green:   #2d7a3a;
  --j2j-red:     #a32d2d;
  --j2j-bg:      #f5f6f8;
  --j2j-border:  #dee2e6;
  --j2j-muted:   #5a6370;
  --j2j-shadow:  0 1px 4px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #212529;
  background: var(--j2j-bg);
  margin: 0;
}

/* ---- Loading overlay -------------------------------------------------------*/
#loading-overlay {
  position: fixed; inset: 0;
  background: rgba(26,58,92,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  flex-direction: column;
  gap: 18px;
}
.spinner {
  width: 42px; height: 42px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #c8a84b;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Tab-level loading indicator ------------------------------------------*/
.tab-loading-indicator {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 80px 0;
  color: #1a3a5c; font-size: 15px; font-weight: 600;
}
.tab-loading-indicator .spinner {
  border-color: rgba(26,58,92,0.2);
  border-top-color: #c8a84b;
}

/* ---- Navbar ----------------------------------------------------------------*/
.j2j-navbar {
  background-color: var(--j2j-navy);
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  position: relative;
}
.j2j-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
  transition: background 0.15s;
}
.j2j-navbar-brand:hover { background: rgba(255,255,255,0.08); }
.j2j-navbar-brand:focus-visible { outline: 2px solid var(--j2j-gold); outline-offset: 2px; }
.j2j-navbar-brand img { height: 36px; }
.j2j-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.j2j-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  margin: 0;
  line-height: inherit;
}
.j2j-header-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

/* ---- Topbar nav links (inline in navbar) -----------------------------------*/
.j2j-navbar-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}
.j2j-nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
  background: none;
}
.j2j-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.j2j-nav-link.active {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--j2j-gold);
}
.j2j-nav-link:focus-visible {
  outline: 2px solid var(--j2j-gold);
  outline-offset: -2px;
}

/* ---- Navbar action buttons -------------------------------------------------*/
.j2j-navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 8px 0 8px 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
  margin-left: 4px;
}
.j2j-about-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.j2j-about-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.j2j-about-btn:focus-visible { outline: 2px solid var(--j2j-gold); outline-offset: 2px; }

/* ---- Page description bar --------------------------------------------------*/
.page-desc-bar {
  background: #e6f1fb;
  border-bottom: 1px solid #b5d4f4;
  padding: 7px 16px;
  font-size: 12px;
  color: #185fa5;
  line-height: 1.5;
}

/* ---- Controls strip --------------------------------------------------------*/
.j2j-ctrl-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--j2j-border);
}
.ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl-group label {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  margin-bottom: 0;
  color: var(--j2j-navy);
}
.j2j-year-nav {
  background: none;
  border: none;
  color: var(--j2j-navy);
  font-size: 13px;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s;
  cursor: pointer;
  border-radius: 3px;
}
.j2j-year-nav:hover { opacity: 1; }
.j2j-year-nav:focus-visible { outline: 2px solid var(--j2j-blue); outline-offset: 2px; opacity: 1; }

/* ---- KPI row & cards -------------------------------------------------------*/
.j2j-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px 16px;
  background: var(--j2j-bg);
  border-bottom: 1px solid var(--j2j-border);
}
.j2j-kpi-card {
  background: #fff;
  padding: 14px 16px;
  border-radius: 6px;
  box-shadow: var(--j2j-shadow);
}
.j2j-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--j2j-muted);
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.j2j-kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--j2j-navy);
  line-height: 1.1;
  margin-bottom: 3px;
}
.j2j-kpi-sub {
  font-size: 11.5px;
  color: var(--j2j-muted);
  line-height: 1.35;
}

/* ---- Tooltip dot -----------------------------------------------------------*/
.tooltip-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #767676;
  font-size: 9px;
  font-style: italic;
  color: #666;
  cursor: help;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
  font-weight: 600;
  user-select: none;
}
.tooltip-dot:hover { border-color: var(--j2j-blue); color: var(--j2j-blue); }

/* ---- Profile stat grid -----------------------------------------------------*/
.j2j-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px 16px;
  background: var(--j2j-bg);
  border-bottom: 1px solid var(--j2j-border);
  margin-bottom: 0;
}
.j2j-stat-box {
  background: #fff;
  padding: 14px 16px;
  border-radius: 6px;
  box-shadow: var(--j2j-shadow);
  border-left: 4px solid var(--j2j-gold);
}
.j2j-stat-label {
  font-size: 10px;
  color: var(--j2j-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.j2j-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--j2j-navy);
  line-height: 1.1;
  margin-bottom: 3px;
}
.j2j-stat-value.pos { color: var(--j2j-green); }
.j2j-stat-value.neg { color: var(--j2j-red); }
.j2j-stat-note { font-size: 11.5px; color: var(--j2j-muted); line-height: 1.35; }
.j2j-stat-note.pos { color: var(--j2j-green); font-weight: 600; }
.j2j-stat-note.neg { color: var(--j2j-red);   font-weight: 600; }

/* ---- Rankings panel --------------------------------------------------------*/
.j2j-ranking-panel {
  background: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: var(--j2j-shadow);
}
.j2j-ranking-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--j2j-navy);
  margin-bottom: 8px;
}
.j2j-ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 4px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.1s;
}
.j2j-ranking-item:last-child { border-bottom: none; }
.j2j-ranking-item:hover { background: #e6f1fb; }
.j2j-ranking-name { color: var(--j2j-blue); font-weight: 500; }
.j2j-ranking-score { font-weight: 700; }
.j2j-ranking-score.pos { color: var(--j2j-green); }
.j2j-ranking-score.neg { color: var(--j2j-red); }

/* ---- Chart caption ---------------------------------------------------------*/
.j2j-chart-caption {
  font-size: 11px;
  color: #595959;
  text-align: right;
  padding: 4px 8px !important;
  background: #fafafa;
}

/* ---- Footer bar (per-tab) --------------------------------------------------*/
.j2j-footer-bar {
  background: #fff;
  border-top: 1px solid var(--j2j-border);
  padding: 10px 16px;
  font-size: 10px;
  color: var(--j2j-muted);
  line-height: 1.7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.j2j-footer-bar .footer-left { flex: 1; }
.j2j-footer-bar .footer-right { display: flex; gap: 12px; flex-shrink: 0; }
.j2j-footer-bar a { color: var(--j2j-blue); text-decoration: none; }
.j2j-footer-bar a:hover { text-decoration: underline; }
.j2j-footer-bar a:focus-visible { outline: 2px solid var(--j2j-blue); outline-offset: 2px; }

/* ---- About modal -----------------------------------------------------------*/
.j2j-about-content h4 { color: var(--j2j-navy); margin-top: 14px; font-size: 15px; }
.j2j-about-content p,
.j2j-about-content li { font-size: 13.5px; line-height: 1.7; }
.j2j-about-content ul { margin-left: 20px; }

/* ---- Sidebar layout (Tab 2 & 3) -------------------------------------------*/
.sidebar-layout { display: flex; min-height: 0; }
.sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--j2j-bg);
  border-right: 1px solid var(--j2j-border);
  padding: 16px;
  flex-shrink: 0;
}
.sidebar-main { flex: 1; min-width: 0; padding: 16px; overflow-x: hidden; }

/* ---- Numbered sidebar steps ------------------------------------------------*/
.sidebar-step {
  margin-bottom: 18px;
}
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 5px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--j2j-navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--j2j-navy);
  line-height: 1.35;
  margin-bottom: 1px;
}
/* ---- Year stepper (dropdown + arrows) -------------------------------------*/
.year-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.year-stepper .year-select {
  flex: 1;
  min-width: 0;
}
.year-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--j2j-navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.year-arrow:hover { background: var(--j2j-blue); }
.year-arrow:disabled { background: #ccc; cursor: default; }

.step-desc {
  font-size: 10px;
  color: var(--j2j-muted);
  line-height: 1.45;
  padding-left: 29px;
  margin-bottom: 6px;
}

/* ---- Key findings ----------------------------------------------------------*/
.j2j-findings-section { margin: 4px 0 16px; }
.j2j-findings-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--j2j-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.j2j-findings-grid {
  display: grid;
  gap: 12px;
}
.j2j-finding-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #DEE2E6;
  padding: 14px 16px;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.j2j-finding-head {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--j2j-navy);
  line-height: 1.3;
}
.j2j-finding-body {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
}

/* ---- Data tables -----------------------------------------------------------*/
.j2j-table-wrap { overflow-x: auto; }
.j2j-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.j2j-table th {
  background: #f0f3f7;
  border-bottom: 2px solid var(--j2j-border);
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--j2j-navy);
  white-space: nowrap;
}
.j2j-table th:not(:first-child) { text-align: right; }
.j2j-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.j2j-table tr.odd  td { background: #FAFBFD; }
.j2j-table tr.even td { background: #FFFFFF; }
.j2j-table tr:hover td { background: #e6f1fb !important; cursor: pointer; }
.j2j-table tr.selected td { background: #cce0f5 !important; }
.j2j-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.j2j-table td.net-pos { color: var(--j2j-green); font-weight: 700; text-align: right; }
.j2j-table td.net-neg { color: var(--j2j-red);   font-weight: 700; text-align: right; }
.j2j-table td.net-zer { color: #555;              font-weight: 700; text-align: right; }

/* ---- Card ------------------------------------------------------------------*/
.card { border: 1px solid var(--j2j-border); border-radius: 6px; box-shadow: var(--j2j-shadow); }
.card-header {
  background: #f0f3f7;
  border-bottom: 1px solid var(--j2j-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--j2j-navy);
  padding: 10px 14px;
}
.card-body { background: #fff; padding: 12px 14px; }
.card-footer { background: #fafafa; padding: 4px 8px; }

/* ---- Tab pane padding ------------------------------------------------------*/
.tab-pane { padding-bottom: 0; }

/* ---- Utility ---------------------------------------------------------------*/
.pos { color: var(--j2j-green) !important; font-weight: 600; }
.neg { color: var(--j2j-red)   !important; font-weight: 600; }

/* ---- Ranking items keyboard/focus ------------------------------------------*/
.j2j-ranking-item:focus-visible { outline: 2px solid var(--j2j-blue); outline-offset: 1px; background: #e6f1fb; }

/* ---- Select focus ----------------------------------------------------------*/
select:focus-visible { outline: 2px solid var(--j2j-blue); outline-offset: 2px; }

/* ---- Table row keyboard/focus ----------------------------------------------*/
.j2j-table tr[tabindex="0"]:focus-visible td { background: #cce0f5 !important; outline: 2px solid var(--j2j-blue); outline-offset: -2px; }

/* ---- Skip link -------------------------------------------------------------*/
.j2j-skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 10000;
  background: #fff;
  color: var(--j2j-navy);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: top 0.1s;
}
.j2j-skip-link:focus { top: 8px; }

/* ---- Visually hidden (screen-reader only) ----------------------------------*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Entry / home page -----------------------------------------------------*/
.hero-section {
  background: #fff;
  border-radius: 8px;
  padding: 36px 40px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-headline {
  font-size: 26px;
  font-weight: 700;
  color: var(--j2j-navy);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-headline .hero-net-val {
  color: var(--j2j-green);
}
.hero-headline .hero-net-neg {
  color: var(--j2j-red);
}
.hero-desc {
  font-size: 14px;
  color: var(--j2j-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-stat-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--j2j-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-stat {
  flex: 1;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--j2j-border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--j2j-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--j2j-navy);
  line-height: 1.1;
}
.hero-stat-value.pos { color: var(--j2j-green); }
.hero-stat-value.neg { color: var(--j2j-red); }
.hero-stat-note {
  font-size: 12px;
  color: var(--j2j-muted);
  margin-top: 4px;
}

.entry-start-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--j2j-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 28px 0 14px;
  text-align: center;
}

.entry-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.entry-card {
  background: #fff;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--j2j-border);
  padding: 22px 20px 18px;
  box-shadow: var(--j2j-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.entry-card:hover {
  box-shadow: 0 4px 16px rgba(26,58,92,0.13);
  border-color: #b5d4f4;
}
.entry-card-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 2px;
}
.entry-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--j2j-navy);
}
.entry-card-desc {
  font-size: 12px;
  color: var(--j2j-muted);
  line-height: 1.5;
  flex: 1;
}
.entry-card-question {
  font-size: 11.5px;
  color: #444;
  background: var(--j2j-bg);
  border-left: 3px solid var(--j2j-gold);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  line-height: 1.45;
}
.entry-card-cta {
  display: inline-block;
  margin-top: 4px;
  align-self: center;
  padding: 7px 14px;
  background: var(--j2j-navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.entry-card-cta:hover { background: #14304e; }
.entry-card-cta:focus-visible { outline: 2px solid var(--j2j-gold); outline-offset: 2px; }

#tab-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

.home-content-wrap {
  flex: 1;
  padding: 32px 20px 20px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Home page footer is styled same as other tabs but inside tab pane ----*/

/* ---- Hamburger button ------------------------------------------------------*/
.j2j-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.j2j-hamburger:hover { background: rgba(255,255,255,0.1); color: #fff; }
.j2j-hamburger:focus-visible { outline: 2px solid var(--j2j-gold); outline-offset: 2px; }

/* ---- Mobile nav drawer -----------------------------------------------------*/
.j2j-mobile-nav {
  background: var(--j2j-navy);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.j2j-mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.j2j-mobile-nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.j2j-mobile-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-left: 3px solid var(--j2j-gold);
  padding-left: 17px;
}
.j2j-mobile-nav-link:focus-visible { outline: 2px solid var(--j2j-gold); outline-offset: -2px; }

/* ---- Overview map and chart heights (responsive) --------------------------*/
#overview-map { height: 520px; }
#ov-chart     { height: 360px; }

/* ---- Responsive ------------------------------------------------------------*/
@media (max-width: 1100px) {
  .j2j-header-subtitle { display: none; }
  .j2j-nav-link { padding: 0 14px; font-size: 13.5px; }
}
@media (max-width: 1050px) {
  .j2j-navbar-nav { display: none; }
  .j2j-hamburger { display: flex; }
}
@media (max-width: 900px) {
  .sidebar-layout { flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--j2j-border); }
  .j2j-findings-grid { grid-template-columns: 1fr !important; }
  .entry-cards-row { grid-template-columns: 1fr; }
  .hero-section { padding: 24px 20px 20px; }
  .hero-stat-strip { flex-wrap: wrap; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--j2j-border); min-width: 50%; }
  .hero-stat:last-child { border-bottom: none; }
  #overview-map { height: 400px; }
  #ov-chart     { height: 280px; }
}
@media (max-width: 600px) {
  .j2j-kpi-row { grid-template-columns: 1fr 1fr; }
  .j2j-ctrl-strip { flex-direction: column; align-items: flex-start; }
  .j2j-footer-bar { flex-direction: column; gap: 6px; }
  .j2j-footer-bar .footer-right { flex-wrap: wrap; gap: 8px; }
  #overview-map { height: 260px; }
  #ov-chart     { height: 200px; }
  /* Hide wage columns in tables — keep Industry, Inflows, Outflows, Net */
  .j2j-table th:nth-child(n+5),
  .j2j-table td:nth-child(n+5) { display: none; }
  .hero-headline { font-size: 20px; }
  .j2j-kpi-value { font-size: 20px; }
  .j2j-stat-value { font-size: 18px; }
}
