/* ─── Greenhouse Company Map — page-specific styles ─────────────────────────
   Extends css/styles.css; reuses its tokens (Georgia headings, #2a5298
   accent, #555 body text, .jump-pill, .container, .section-label). */

.nav-links a.nav-active {
  color: #2a5298;
  font-weight: 600;
}

#gh-hero {
  background: #ffffff;
  padding: 40px 0 20px;
  position: relative;
}

.gh-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.gh-hero-text {
  flex: 1;
  min-width: 260px;
}

.gh-title {
  margin-bottom: 10px;
}

/* ─── Donut chart ─────────────────────────────────────────────────────────── */

.gh-donut-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  flex: none;
}

.gh-donut-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.gh-donut-wrap circle {
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.gh-donut-wrap circle:hover,
.gh-donut-wrap circle.hover {
  opacity: 0.72;
}

.gh-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1.1;
}

.gh-donut-center .n {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  color: #1a1a1a;
}

.gh-donut-center .cap {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin-top: 1px;
}

.gh-tip {
  position: fixed;
  z-index: 200;
  background: #1a1a1a;
  color: #fff;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  transition: opacity 0.1s ease;
}

.gh-tip.show {
  opacity: 1;
}

.gh-tip b {
  font-variant-numeric: tabular-nums;
}

/* Color dots on the filter pills, matching the donut's palette */
.jump-pill .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: -1px;
}

@media (max-width: 640px) {
  .gh-hero-inner { flex-direction: column; align-items: flex-start; }
  .gh-donut-wrap { align-self: center; }
}

.gh-lede {
  max-width: 60ch;
  color: #555;
  margin-bottom: 14px;
}

.gh-meta {
  font-size: 13px;
  color: #999;
}

#gh-filters {
  background: #f9f9f7;
  padding: 20px 0;
  position: sticky;
  top: 56px;
  z-index: 50;
  border-bottom: 1px solid #e8e8e8;
}

.gh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gh-pills .jump-pill {
  cursor: pointer;
  background: #fff;
}

.gh-pills .jump-pill.active {
  background: #2a5298;
  border-color: #2a5298;
  color: #fff;
}

.gh-search {
  width: 100%;
  max-width: 360px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  padding: 9px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  outline: none;
}

.gh-search:focus {
  border-color: #2a5298;
}

#gh-list-section {
  padding: 32px 0 48px;
  background: #ffffff;
}

.gh-group {
  margin-bottom: 30px;
}

.gh-group:last-child {
  margin-bottom: 0;
}

.gh-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a5298;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gh-group-count {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  text-transform: none;
  letter-spacing: normal;
}

.gh-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 20px;
}

.gh-company {
  font-size: 14px;
  color: #333;
  padding: 5px 0;
}

.gh-empty {
  color: #999;
  font-size: 14px;
  padding: 24px 0;
}

.gh-footer {
  padding: 24px 0 40px;
  background: #f9f9f7;
}

.gh-footer p {
  font-size: 12px;
  color: #999;
}

@media (max-width: 720px) {
  #gh-filters { top: 0; }
  .gh-company-grid { grid-template-columns: 1fr 1fr; }
}
