/* TOOLTIP BASE */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: default;
}

/* ICON */
.tooltip-icon {
  font-size: 0.75em;
  margin-left: 2px;
  color: #666;
}

/* HIDDEN TEXT */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  
  background: #222;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 6px;
  
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* SHOW ON HOVER */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* COMPARISON table */
h3 {
  margin-top: 18px;
}



.region-table {
  width: 100%;
  border-collapse: separate;
  margin-top: 14px;
  font-size: 0.88rem;
border-spacing: 0 8px;
}

.region-table th {
  text-align: left;
  padding: 10px 8px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  color: #444;
}
.region-table td:first-child {
  font-weight: 600;
  color: #0f172a;
}

/* force alignment per column */
.region-table th:nth-child(1),
.region-table td:nth-child(1) {
  text-align: left;
  width: 28%;

}

.region-table th:nth-child(2),
.region-table td:nth-child(2) {
  text-align: left;
  width: 120px;
}

.region-table th:nth-child(3),
.region-table td:nth-child(3) {
  text-align: left;
}


.region-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-size: 0.88rem;
  color: #444;

}

.region-table .note {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}


.region-table tbody tr {
  background: #ffffff;
  border-radius: 8px;
}


.region-table td:first-child {
  font-weight: 600;
}


/* remove visual noise */
.region-table tr:last-child td {
  border-bottom: none;
}

/* subtle hover */
.region-table tr:hover {
  background: #f8fafc;
}

.region-table tr {
  border-bottom: 1px solid #f3f4f6;
}


.region-name {
  font-weight: 600;
}

.salary {
  display: block;
  font-weight: 500;
  color: #2f6fdd;
  margin-bottom: 2px;
}

.note {
  display: block;
  color: #666;
  font-size: 0.85rem;
}

.row-high .region-level {
  color: #2f6fdd;
  font-weight: 600;
}

.row-mid .region-level {
  color: #666;
}

.row-low .region-level {
  color: #999;
}

.table-wrapper {
  margin-top: 12px;
  overflow-x: auto;
}

/* Salary levels subtle color */

.region-level-high {
  color: #2f6fdd;
  font-weight: 600;
}

.region-level-mid {
  color: #666;
}

.region-level-low {
  color: #999;
}



/* =============================
   REPORT TYPOGRAPHY
============================= */

/* Report title inside card */
.report-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Section headings (Key figures, Regions etc.) */
.report-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
  color: #222;
}

/* Region group headings */
.region-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
  color: #333;
}


/* Region items */
.region-item {
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.45;
}



.region-item strong {
  font-weight: 600;
}


/* =============================
   SPACING / STRUCTURE
============================= */

.report-section {
  margin-bottom: 22px;
}

.report-section p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* soft divider */
.report-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0;
}

/* =============================
   REGION GROUPS
============================= */

.region-group {
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 2px solid #e5e7eb;
}

/* =============================
   MAP PLACEHOLDER
============================= */

.map-container {
  margin: 12px 0 16px;
  text-align: center;
}

.map-container img {
  max-width: 100%;
  border-radius: 6px;
}

.map-container {
  margin: 14px 0 18px;
  text-align: center;
}

.map-container img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #eee;
}

.level-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* colors */
.region-level-high {
  
 background: #dcfce7;
  color: #166534;

}

.region-level-mid {
 
 background: #fef3c7;
  color: #92400e;

}

.region-level-low {

  background: #fee2e2;
  color: #991b1b;

}

/* =============================
   KEY FIGURES (NUMBER BAR)
============================= */

.key-figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 10px;
}


.key-card {
padding: 16px 14px;  
background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
transition: all 0.2s ease;
}

.key-card:hover {
transform: translateY(-2px);  
box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.key-value {
font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;

}

.key-card::before {
  content: "";
  display: block;
  height: 2px;
  background: #2563eb;
  margin-bottom: 8px;
  border-radius: 2px;
}

.key-label {
  
font-size: 13px;
  color: #64748b;

  margin-top: 4px;
}

.key-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 8px;
}

.references-card {
  padding: 12px 16px;  
}

.references {
  font-size: 0.8rem;
  color: #666;
  margin-top: 10px;
}

.references-list {
  padding-left: 18px;
  margin-top: 8px;
}

.references-list li {
  margin-bottom: 6px;
}

.references-list a {
  text-decoration: none;
  color: #2f6fdd;
}

.references-list a:hover {
  text-decoration: underline;
}

.country-selector {
  margin-bottom: 16px;
}

.country-selector select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
border-radius: 20px;
}

/* --- Apple-style segmented toggle --- */
.view-toggle {
  display: flex;
  justify-content: stretch;   /* ✅ center horizontally */
  align-items: center;

  margin: 20px auto 12px auto; /* ✅ spacing + centering block */

  background: #f2f2f7;
  border-radius: 999px;
  padding: 4px;
  width: 100%; 
  max-width: 100%;  
}


.toggle-btn {
  flex: 1;               /* ✅ equal width */
  min-width: 0;          /* ✅ allow shrinking */
  text-align: center; 
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;

  white-space: nowrap;        /* ✅ prevents wrapping weirdness */
  overflow: hidden;           /* ✅ prevents overflow */
  text-overflow: ellipsis;

}

@media (max-width: 500px) {
  .toggle-btn {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* active state */
.toggle-btn.active {
  background: white;
  color: #111;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 600;
}

/* hover */
.toggle-btn:hover {
  color: #000;
}

.toggle-btn.active {
  background: white;
  color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* stronger feel */
  font-weight: 600;
}

.compare-selectors {
  display: flex;
  gap: 4px;
align-items: center;
  margin-bottom: 16px;
}

@media (max-width: 500px) {
  .compare-selectors {
    gap: 6px;
  }
}

.compare-selectors select {
  flex: 1;
  min-width: 0;     /* ✅ allows shrinking */
}

.compare-vs {
  font-size: 14px;
}

.compare-results {
  margin-top: 10px;
}

.compare-grid {
  display: flex;
  gap: 24px;
}

.compare-col {
  flex: 1;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
}

.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.compare-table div {
  padding: 8px;
}

.compare-table > div:nth-child(3n+1) {
  font-weight: 600;
}

.compare-help {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 36px;
}

.better {
  color: #1a7f37;
  font-weight: 600;
}

.worse {
  color: #c62828;
}

.muted {
  font-size: 13px;
  color: #666;
}

.delta {
  margin-left: 6px;
  font-size: 13px;
  color: #666;
}


.compare-insight {
  margin-top: 20px;

  padding: 20px 22px;

  background: #f8fafc;
  border-radius: 12px;

  border: 1px solid #e2e8f0;
box-shadow: 0 2px 6px rgba(0,0,0,0.03);  /* 👈 subtle depth */
}


.compare-insight p + p {
  margin-top: 6px;
}


.compare-insight h3 {
  font-size: 18px;       /* 👈 larger */
  font-weight: 600;

  margin-bottom: 12px;
  color: #1f2937;        /* slightly stronger */
}



.compare-insight p {
  font-size: 14px;       /* 👈 slightly smaller */
  line-height: 1.6;      /* 👈 more breathing room */

  color: #475569;        /* 👈 softer gray */

  margin-bottom: 10px;
}

.compare-insight p:last-child {
margin-top: 30px;  
font-size: 14.5px;
  font-weight: 500;

  color: #0f172a;  /* darker */
}



.compare-selectors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

@media (min-width: 600px) {
  .compare-selectors select {
    min-width: 180px;
  }
}

.compare-vs {
  font-size: 20px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.5px;
}

.ranking-panel {
  margin-top: 20px;
}


.ranking-grid {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}



.ranking-card {
  flex: 1;                 /* ✅ equal width cards */
  min-width: 0;            /* ✅ prevents overflow */
  padding: 14px;
  background: #dfeaf2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-width: 50%;

gap: 4px;
 
  
}


.ranking-row {
  display: flex;
flex-direction: row;
  justify-content: space-between;
  align-items: center;
padding: 6px 0;
border-bottom: 1px solid rgba(0,0,0,0.05);
font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 500px) {
  .ranking-row {
    flex-direction: column;
    align-items: flex-start;
  }
}


.ranking-row .value {
  margin-top: 2px;
}




.rank {
  width: 24px;
  color: #999;
}



.country {
  flex: 1;
}

.value {
  font-weight: 600;
}

.section-label {
 font-size: 13px;
font-weight: 600;  
  color: #888;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
}

.rank-1 {
  font-weight: 600;
  color: #1a7f37;
  opacity: 1;
}

.rank-worst {
  color: #c62828;  /* same red tone as “worse” */
  font-weight: 600;
  opacity: 1;
}

.ranking-controls {
  display: flex;
  justify-content: stretch;      /* ✅ center horizontally */
  align-items: center;
  gap:6px;
  width: 100%;          /* ✅ stay inside parent */
  max-width: 100%; 

  background: #f2f2f7;
  border-radius: 999px;

  padding: 4px;
  margin: 54px auto 18px auto;  /* ✅ spacing + centering */
  width: fit-content;
}

.rank-btn {
  border: none;
  background: transparent;
flex: none; 
  padding: 8px 30px;
  font-size: 13px;
  border-radius: 999px;
min-width: 0;
  cursor: pointer;
  color: #666;
text-align: center;
  transition: all 0.2s ease;
}

@media (max-width: 500px) {
  .rank-btn {
    padding: 6px 6px;
    font-size: 12px;
  }
}

.rank-btn.active {
  background: white;
  color: #111;
  font-weight: 600;

  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.insight-title {
margin-top: -4px; 
margin-bottom: 12px; 
display: flex;
  align-items: center;
  gap: 8px;

  font-size: 18px;
  font-weight: 600;
}

.insight-icon svg {
  width: 19px;
  height: 19px;

  color: #2563eb;

  display: block;   /* ✅ removes baseline offset */
}

.insight-icon {
  display: flex;   /* ✅ removes inline weirdness */
  align-items: center;
}

#final-summary {
  margin-top: 34px;   /* ✅ creates space from ranking panel */
}

#final-summary p {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

#final-summary h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

#final-summary p:last-child {
  color: #0f172a;
  font-weight: 500;
}

.related-links {
  padding-left: 16px;
font-weight: 300;
font-size: 14px;
}

.related-links li {
  margin-bottom: 1px;
}

.related-links a {
  color: #000000;
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
}

.region-line {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.region-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 6px;
}

.region-text {
  font-size: 14px;
  color: #334155;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.key-insight {
  margin-top: 6px;
  padding: 12px 14px;
font-weight: 500;
  border-left: 4px solid #2563eb;
  background: #f8fafc;
border-radius: 6px;
}

.key-insight p {
  font-size: 14px;     
  line-height: 1.6;
  color: #475569;
}


.key-insight h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

.region-summary-card {
  margin: 10px 0 16px 0;
  padding: 12px 14px;

  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
}

.region-summary-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.region-summary-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.sources-list {
  margin: 8px 0 0 0;    /* ✅ reduce top gap */
  padding-left: 16px;
}

.sources-list li {
  margin-bottom: 4px;   /* ✅ tighter list spacing */
}

#references-card {
  margin-top: -5px;
}

#references-card .sources-list {
  margin: -2px 0 0 0;
  padding-left: 16px;
}

#references-card li {
  margin-bottom: -5px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 16px;
  font-weight: 600;
}

.section-icon svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
transform: translateY(2px); 
  display: block;
}

.report-divider {
  height: 1px;
  background: linear-gradient(to right, #e2e8f0, transparent);
  margin: 20px 0;
}

.report-section:nth-of-type(odd) {
  background: #fafafa;
  padding: 14px 16px;
  border-radius: 8px;
}

.main-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.delta {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

