main.gb-page.gb-enterprise-detail {
  --gb-detail-ink: #172c4d;
  --gb-detail-muted: #4d5e75;
  --gb-detail-blue: #255aa0;
  --gb-detail-line: #dce5f1;
  --gb-detail-paper: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-block-end: 0;
  background: #f2f5f9;
  color: var(--gb-detail-ink);
}

main.gb-page.gb-enterprise-detail > .gb-header:has(> .gb-back) {
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  padding-block-start: env(safe-area-inset-top, 0px);
  background: #193764;
  box-shadow: inset 0 -1px rgb(230 241 255 / 15%);
}

#root .gb-enterprise-detail > .gb-header h1 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-identity {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 22px 18px 31px;
  background:
    radial-gradient(ellipse at 100% 20%, rgb(84 144 216 / 48%), transparent 75%),
    linear-gradient(108deg, #193764 15%, #24558b);
  color: #fff;
}

main.gb-page.gb-enterprise-detail .gb-enterprise-mark {
  width: 60px;
  height: 60px;
  border: 1px solid rgb(238 246 255 / 50%);
  border-radius: 15px;
  background: rgb(232 243 255 / 16%);
  color: #fff;
}

.gb-enterprise-detail .gb-enterprise-mark .gb-icon {
  width: 30px;
  height: 30px;
  color: #fff;
}

.gb-enterprise-detail .gb-enterprise-status {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid rgb(230 241 255 / 42%);
  border-radius: 999px;
  color: #f0f7ff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-status::before {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #aaddf8;
  content: "";
}

.gb-enterprise-detail .gb-enterprise-identity h2 {
  margin: 6px 0 2px;
  color: inherit;
  font-size: 1.4375rem;
  font-weight: 750;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-identity p {
  margin: 0;
  color: #e0ebfa;
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-content {
  position: relative;
  display: grid;
  gap: 11px;
  margin: -13px 14px 0;
  padding-bottom: 18px;
}

.gb-enterprise-detail .gb-enterprise-panel {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--gb-detail-line);
  border-radius: 15px;
  background: var(--gb-detail-paper);
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-panel h2,
.gb-enterprise-detail .gb-enterprise-contact h2 {
  margin: 0;
  color: var(--gb-detail-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.gb-enterprise-detail .gb-enterprise-location {
  padding-block: 16px 13px;
  box-shadow: 0 5px 15px rgb(36 72 120 / 8%);
}

.gb-enterprise-detail .gb-enterprise-location-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.gb-enterprise-detail .gb-enterprise-location-icon {
  display: grid;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #eaf2ff;
}

.gb-enterprise-detail .gb-enterprise-location-icon .gb-icon,
.gb-enterprise-detail .gb-enterprise-references .gb-icon {
  color: var(--gb-detail-blue);
}

.gb-enterprise-detail .gb-enterprise-location h2 {
  font-size: 0.75rem;
  color: var(--gb-detail-muted);
}

.gb-enterprise-detail .gb-enterprise-address {
  margin: 3px 0 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.gb-enterprise-detail .gb-enterprise-location-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 9px;
  margin: 6px 0 0 48px;
}

#root .gb-enterprise-detail :is(.gb-demo-enterprise-visit, .gb-text-button, .gb-empty) {
  min-height: 44px;
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-location-context .gb-muted {
  font-size: 0.75rem;
}

.gb-enterprise-detail .gb-enterprise-distance {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff4fa;
  color: var(--gb-detail-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.gb-enterprise-detail .gb-enterprise-map-link {
  display: inline-flex;
  min-height: 44px;
  margin-inline-start: auto;
  align-items: center;
  gap: 5px;
  padding-inline: 6px;
  border-radius: 8px;
  color: var(--gb-detail-blue);
  font-size: 0.8125rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.gb-enterprise-detail .gb-enterprise-map-link .gb-icon {
  width: 16px;
  height: 16px;
  color: inherit;
}

.gb-enterprise-detail .gb-enterprise-map-link:focus-visible {
  outline: 2px solid var(--gb-detail-blue);
  outline-offset: 2px;
}

.gb-enterprise-detail .gb-enterprise-map-link:active {
  background: #eaf2ff;
}

.gb-enterprise-detail .gb-enterprise-location .gb-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

main.gb-page.gb-enterprise-detail .gb-enterprise-location .gb-nav-links a {
  min-width: min(5rem, 100%);
  min-height: 44px;
  flex: 1;
  padding: 5px;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--gb-detail-ink);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

main.gb-page.gb-enterprise-detail .gb-enterprise-location .gb-nav-links a:first-child {
  border-color: var(--gb-detail-blue);
  background: var(--gb-detail-blue);
  color: #fff;
}

.gb-enterprise-detail .gb-enterprise-summary,
.gb-enterprise-detail .gb-enterprise-contact p {
  margin: 6px 0 0;
  color: var(--gb-detail-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.gb-enterprise-detail .gb-enterprise-facts {
  margin: 6px 0 0;
}

.gb-enterprise-detail .gb-enterprise-facts > div {
  display: grid;
  grid-template-columns: min(5em, 40%) minmax(0, 1fr);
  gap: 8px;
  padding-block: 7px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.gb-enterprise-detail .gb-enterprise-facts > div + div {
  border-top: 1px solid #e9eef6;
}

.gb-enterprise-detail .gb-enterprise-facts dt {
  color: var(--gb-detail-muted);
}

.gb-enterprise-detail .gb-enterprise-facts dd {
  margin: 0;
  font-weight: 550;
}

.gb-enterprise-detail .gb-enterprise-references .gb-source {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 3px;
  padding-inline: 2px;
  border-top: 1px solid #e9eef6;
  border-radius: 0;
  color: var(--gb-detail-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.gb-enterprise-detail .gb-enterprise-references .gb-source:last-child {
  margin-bottom: -5px;
}

.gb-enterprise-detail .gb-enterprise-references .gb-source > .gb-icon:last-child {
  width: 16px;
  height: 16px;
}

.gb-enterprise-detail .gb-enterprise-contact {
  padding: 5px 3px 0;
}

.gb-enterprise-detail .gb-enterprise-action-bar {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gb-detail-line);
  background: var(--gb-detail-paper);
  box-shadow: 0 -3px 13px rgb(36 72 120 / 5%);
}

main.gb-page.gb-enterprise-detail .gb-enterprise-action-bar .gb-btn {
  min-height: 46px;
  min-width: min(8rem, 100%);
  max-width: 100%;
  flex: 3 1 0;
  padding-inline: 9px;
  border-radius: 11px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

main.gb-page.gb-enterprise-detail .gb-enterprise-action-bar .gb-btn.secondary {
  flex-grow: 2;
  border-color: #cddbee;
  color: var(--gb-detail-ink);
}

@media (max-height: 460px) {
  .gb-enterprise-detail .gb-enterprise-action-bar { position: static; }
}
