/* Spacebahd company profile — page-scoped styles (v2c) */

.sb-company-profile {
  --sb-cp-black: #0b0c0f;
  --sb-cp-black-2: #111318;
  --sb-cp-red: #e41f31;
  --sb-cp-text: #111;
  --sb-cp-muted: #666;
  --sb-cp-border: #deded9;
  --sb-cp-surface: #fafaf8;
  --sb-cp-white: #fff;
  color: var(--sb-cp-text);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.sb-company-profile *,
.sb-company-profile *::before,
.sb-company-profile *::after {
  box-sizing: border-box;
}

body.sb-company-profile-page .jeg_content,
body.sb-company-profile-page #content,
body.sb-company-profile-page .container {
  max-width: none;
}

.sb-cp-topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.sb-cp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-cp-muted);
  text-decoration: none;
  font-weight: 600;
}

.sb-cp-back:hover,
.sb-cp-back:focus-visible {
  color: var(--sb-cp-red);
}

.sb-cp-hero {
  background: linear-gradient(165deg, var(--sb-cp-black) 0%, var(--sb-cp-black-2) 60%, #1a1c22 100%);
  color: #fff;
  padding: 36px 24px 56px;
  margin-top: 12px;
}

.sb-cp-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.sb-cp-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.sb-cp-title-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.sb-cp-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sb-cp-logo.has-image {
  background: #fff;
}

.sb-cp-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.sb-cp-logo span {
  font-weight: 700;
  color: #fff;
}

.sb-cp-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #fff;
}

.sb-cp-specialty {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.sb-cp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
}

.sb-cp-meta span,
.sb-cp-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sb-cp-meta a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sb-cp-meta a:hover,
.sb-cp-meta a:focus-visible {
  color: #ffd0d5;
}

.sb-cp-content {
  max-width: 1100px;
  margin: -36px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.sb-cp-content > article,
.sb-cp-content > aside {
  background: #fff;
  border: 1px solid var(--sb-cp-border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.sb-cp-kicker {
  display: block;
  color: var(--sb-cp-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sb-cp-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.sb-cp-overview {
  color: var(--sb-cp-muted);
  margin-bottom: 24px;
}

.sb-cp-overview p {
  margin: 0 0 12px;
}

.sb-cp-content h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.sb-cp-capabilities {
  display: grid;
  gap: 12px;
}

.sb-cp-capabilities > div {
  border: 1px solid var(--sb-cp-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--sb-cp-surface);
  display: grid;
  gap: 6px;
}

.sb-cp-capabilities strong {
  color: var(--sb-cp-text);
}

.sb-cp-capabilities span {
  color: var(--sb-cp-muted);
  font-size: 0.95rem;
}

.sb-cp-content aside dl {
  margin: 0 0 16px;
}

.sb-cp-content aside dl > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--sb-cp-border);
}

.sb-cp-content aside dl > div:last-child {
  border-bottom: 0;
}

.sb-cp-content aside dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 4px;
}

.sb-cp-content aside dd {
  margin: 0;
  font-weight: 600;
}

.sb-cp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sb-cp-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6b2f;
  display: inline-block;
}

.sb-cp-status-acquired i,
.sb-cp-status-former i {
  background: #888;
}

.sb-cp-content aside p {
  margin: 0;
  color: var(--sb-cp-muted);
  font-size: 0.92rem;
}

.sb-cp-coverage {
  max-width: 1100px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.sb-cp-coverage-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: end;
  margin-bottom: 20px;
}

.sb-cp-coverage h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.sb-cp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-cp-red);
  font-weight: 700;
  text-decoration: none;
}

.sb-cp-view-all:hover,
.sb-cp-view-all:focus-visible {
  text-decoration: underline;
}

.sb-cp-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sb-cp-article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sb-cp-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sb-cp-article:hover,
.sb-cp-article:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.sb-cp-article-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.sb-cp-article-image img,
.sb-cp-article-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sb-cp-article-fallback {
  background: linear-gradient(135deg, #222, #444);
}

.sb-cp-article-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.sb-cp-article-copy {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.sb-cp-article-copy time {
  color: #888;
  font-size: 0.85rem;
}

.sb-cp-article-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--sb-cp-text);
}

.sb-cp-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sb-cp-red);
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .sb-cp-content {
    grid-template-columns: 1fr;
  }

  .sb-cp-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sb-cp-title-row {
    align-items: flex-start;
  }

  .sb-cp-logo {
    width: 72px;
    height: 72px;
  }

  .sb-cp-logo img {
    width: 72px;
    height: 72px;
  }

  .sb-cp-content,
  .sb-cp-coverage,
  .sb-cp-topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-cp-article {
    transition: none;
  }

  .sb-cp-article:hover,
  .sb-cp-article:focus-visible {
    transform: none;
  }
}
