/* Extra municipality statistics, visually aligned with the existing related-companies band. */
.company-area-band {
  padding: 56px 0 72px;
  border-top: 1px solid #e5e8ed;
  background: #fff;
}
.company-area-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}
.company-area-heading p {
  margin: 10px 0 0;
  color: #68707d;
  font-size: 13px;
  line-height: 1.8;
}
.company-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.company-area-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 275px;
  padding: 23px 25px 20px;
  border: 1px solid #e1e6ec;
  background: #fff;
  box-shadow: none;
}
.company-area-panel h3 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
}
.company-area-subtitle {
  margin: 7px 0 19px;
  color: #687482;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.company-area-big-count {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #172d49;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.company-area-big-count span {
  font-size: 12px;
  font-weight: 600;
  color: #596677;
}
.company-area-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.company-area-detail-row:first-of-type {
  margin-top: 22px;
}
.company-area-detail-row span {
  color: #647184;
}
.company-area-detail-row strong {
  color: #27364c;
  font-weight: 700;
  white-space: nowrap;
}
.company-area-track {
  height: 7px;
  border-radius: 2px;
  background: #edf1f5;
  overflow: hidden;
}
.company-area-detail-row + .company-area-track {
  margin-top: 10px;
}
.company-area-fill {
  display: block;
  height: 100%;
  min-width: 0;
  background: #466f9f;
}
.company-area-bars {
  display: grid;
  gap: 12px;
  margin: 2px 0 6px;
}
.company-area-bar-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.company-area-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #435267;
  font-size: 11px;
  line-height: 1.5;
}
.company-area-bar-label span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.company-area-bar-label span:last-child {
  color: #25364e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.company-area-note {
  margin: auto 0 0;
  padding-top: 18px;
  color: #7b8592;
  font-size: 10px;
  line-height: 1.8;
}
.company-area-year-chart {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 5px;
  min-height: 144px;
  margin-top: 2px;
}
.company-area-year-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  text-align: center;
}
.company-area-year-value {
  min-height: 19px;
  overflow: hidden;
  color: #647184;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.company-area-year-bar-space {
  position: relative;
  flex: 1;
  min-height: 95px;
  border-bottom: 1px solid #dce2e9;
}
.company-area-year-bar {
  position: absolute;
  bottom: 0;
  left: 12%;
  width: 76%;
  display: block;
  background: #467aaf;
}
.company-area-year-bar.is-current {
  background: #7a9ab9;
}
.company-area-year-label {
  display: block;
  margin-top: 7px;
  color: #66717f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.company-area-year-empty {
  margin: 10px 0 0;
  color: #687482;
  font-size: 11px;
}
.company-area-name-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.company-area-name-prefectures {
  color: #647184;
  font-size: 12px;
  white-space: nowrap;
}
.company-area-source {
  margin: 18px 0 0;
  color: #7b8592;
  font-size: 11px;
  line-height: 1.7;
}
/* Listed-company observations and market composition, two cards in the area grid. */
.company-area-listed-panel .company-area-big-count { margin-bottom: 16px; }
.company-area-listed-chart {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: 12px;
}
.company-area-listed-panel .source-favicon-wrap.company-area-listed-source .source-favicon-tooltip.listing-source-tooltip {
  left: auto;
  right: 0;
  max-height: min(380px, calc(100vh - 120px));
  overflow-y: auto;
  width: min(360px, calc(100vw - 36px));
  min-width: 0;
  text-align: left;
}
.company-area-listed-panel h3 .company-area-listed-source {
  margin-left: 5px;
  font-weight: 400;
}

@media (max-width: 720px) {
  .company-area-band { padding: 42px 0 54px; }
  .company-area-heading h2 { font-size: 20px; }
  .company-area-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 25px;
  }
  .company-area-panel {
    min-height: 0;
    padding: 19px 18px;
  }
  .company-area-panel h3 { font-size: 15px; }
  .company-area-big-count { font-size: 28px; }
  .company-area-year-chart { gap: 3px; }
  .company-area-year-value { font-size: 8px; }
  .company-area-bar-label { font-size: 11px; }
}
