/* Crew theme on top of Bootstrap 5 */
:root {
  --ink: #15202b;
  --ink-soft: #3d4f5f;
  --paper: #eef4f8;
  --panel: #ffffff;
  --line: #d5e0e8;
  --signal: #e8910c;
  --ocean: #1f6f8b;
  --li-blue: #0a66c2;
  --font-brand: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink-soft);
  --bs-body-bg: var(--paper);
  --bs-primary: #0a66c2;
  --bs-primary-rgb: 10, 102, 194;
  --bs-link-color: #0a66c2;
  --bs-link-hover-color: #004182;
  --bs-border-color: #e0e0e0;
  --bs-border-radius: 0.5rem;
  --bs-warning-bg-subtle: #fff7ed;
  --bs-warning-border-subtle: #fed7aa;
  --bs-warning-text-emphasis: #9a3412;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 10% -10%, #c9dff0, transparent 60%),
    radial-gradient(900px 400px at 90% 0%, #dceaf3, transparent 55%),
    var(--paper);
}
a { text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, strong { color: var(--ink); }

.brand {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.btn-signal {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--signal);
  --bs-btn-border-color: var(--signal);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b45309;
  --bs-btn-hover-border-color: #b45309;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b45309;
  --bs-btn-active-border-color: #b45309;
  font-weight: 700;
}
.btn-outline-primary {
  --bs-btn-color: var(--li-blue);
  --bs-btn-border-color: var(--li-blue);
  --bs-btn-hover-bg: rgba(10, 102, 194, 0.08);
  --bs-btn-hover-border-color: var(--li-blue);
  --bs-btn-hover-color: var(--li-blue);
  font-weight: 700;
}
.btn-primary {
  --bs-btn-bg: var(--li-blue);
  --bs-btn-border-color: var(--li-blue);
  --bs-btn-hover-bg: #004182;
  --bs-btn-hover-border-color: #004182;
  font-weight: 700;
}

/* —— Landing —— */
.landing {
  min-height: 100vh;
  color: #f4f8fb;
  position: relative;
  background: none;
}
.landing-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding-top: 0.75rem;
}
.landing-nav .ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
}
.landing-nav .ghost:hover {
  background: #fff;
  color: var(--ink);
}
.hero {
  position: relative;
  min-height: 100vh;
  padding: 5rem 1rem 2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 32, 43, 0.28) 0%, rgba(21, 32, 43, 0.78) 72%, rgba(21, 32, 43, 0.9) 100%),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=2000&h=1200&fit=crop") center / cover no-repeat;
}
.hero-inner {
  width: min(40rem, calc(100% - 2rem));
  animation: rise 0.9s ease both;
}
.hero h1 {
  margin: 0 auto 0.65rem;
  max-width: 14ch;
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f4f8fb;
}
.hero .lede {
  margin: 0 auto;
  max-width: 38ch;
  color: rgba(244, 248, 251, 0.88);
  font-size: 1rem;
}
.landing-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 1rem;
  font-size: 0.85rem;
}
.landing-foot a {
  color: rgba(244, 248, 251, 0.8);
  font-weight: 600;
}
.landing-foot a:hover { color: #fff; }

/* —— Auth —— */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(21, 32, 43, 0.55), rgba(21, 32, 43, 0.82)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=2000&h=1200&fit=crop") center / cover no-repeat;
}
.auth-card {
  width: min(26rem, 100%);
  animation: rise 0.6s ease both;
}
.auth-card h1,
.auth-card .h3 {
  font-family: var(--font-brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-lede { margin-bottom: 1.25rem; font-size: 0.98rem; }
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  color: #888;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.btn-google svg { width: 22px; height: 22px; }
.btn-google:hover { background: #f7f9fb; color: var(--ink); }
.auth-foot {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.auth-foot a,
.auth-legal a {
  color: var(--ocean);
  font-weight: 700;
}
.auth-legal {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* —— App chrome —— */
.app-body {
  min-height: 100vh;
  background: #f4f2ee;
  color: #666;
}
.app-body h1,
.app-body h2,
.app-body .h3,
.app-body .h4,
.app-body .h5,
.app-body strong { color: #191919; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  min-height: 52px;
  padding: 0;
}
.topbar .container,
.topbar-inner {
  max-width: 1128px;
  height: 52px;
}
.brand-mark-nav { color: var(--li-blue); }
.brand-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--li-blue);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 4px;
}
.brand-word {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--li-blue);
  line-height: 1;
}
.nav-item {
  min-width: 72px;
  padding: 0 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  color: #666;
  border-bottom: 2px solid transparent;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
  height: 52px;
}
.nav-item svg { width: 24px; height: 24px; display: block; }
.nav-item:hover { color: #191919; }
.nav-item.is-on {
  color: #191919;
  border-bottom-color: #191919;
}
.nav-me .avatar { width: 24px; height: 24px; }
.avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex: none;
  background: var(--li-blue);
}
.avatar-fallback {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--accent, var(--li-blue));
}

.li-card { overflow: visible; }
.profile-hero {
  overflow: visible;
}
.profile-hero.card {
  overflow: visible;
}
.panel-h {
  padding: 0.85rem 1rem 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #191919;
}
.panel-b { color: #666; }
.panel-b p { margin-bottom: 0.75rem; }
.page-head.tight h2 { font-size: 1.05rem; }

.profile-cover {
  position: relative;
  height: 220px;
  overflow: visible;
  background: #1f6f8b;
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.profile-avatar-wrap {
  position: absolute;
  left: 1.5rem;
  bottom: -64px;
  z-index: 5;
}
.profile-avatar-wrap .avatar {
  width: 152px;
  height: 152px;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.profile-body {
  display: block;
  padding-top: 4.75rem !important;
  padding-left: 1.5rem;
}
.profile-copy .headline { color: #191919; font-size: 0.98rem; }
.profile-copy .place,
.place { font-size: 0.88rem; color: #666; }
.profile-copy .connections { font-size: 0.88rem; }
.about-dl { display: grid; gap: 0.65rem; margin: 0; }
.about-dl dt {
  font-size: 0.78rem;
  color: #666;
  font-weight: 600;
}
.about-dl dd {
  margin: 0.1rem 0 0;
  color: #191919;
  font-size: 0.92rem;
}
.base-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--li-blue);
}
.base-link:hover {
  text-decoration: underline;
  color: #004182;
}

/* —— Network grow (LinkedIn-like) —— */
.network-page {
  max-width: 1128px;
}
.network-manage.sticky-lg-top {
  top: 4.25rem;
}
.network-manage-list li + li {
  border-top: 1px solid #e0e0e0;
}
.network-manage-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}
.network-manage-link:hover {
  color: #191919;
}
.network-manage-link strong {
  color: #666;
  font-size: 0.88rem;
}
.pymk-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.pymk-banner {
  height: 56px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent, #0a66c2) 75%, #fff), var(--accent, #0a66c2));
}
.pymk-dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #666;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.pymk-dismiss:hover {
  background: #fff;
  color: #191919;
}
.pymk-body {
  padding: 0 1rem 1.1rem;
  margin-top: -36px;
}
.pymk-avatar-link .avatar {
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  margin: 0 auto 0.55rem;
  display: block;
}
.pymk-headline {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.35;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pymk-mutual {
  font-size: 0.75rem;
}
.post-h {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.post-h .who { display: grid; gap: 0.05rem; }
.post-h .who span { font-size: 0.78rem; color: #666; }
.people-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.people-row .avatar { width: 40px; height: 40px; }
.locked-value {
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: #f4f2ee;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  color: #666;
}

/* —— Legal —— */
.legal-page { min-height: 100vh; background: #f4f2ee; color: #444; }
.legal-top .brand { color: var(--ink); }
.legal-top nav a { color: #666; font-weight: 600; font-size: 0.9rem; }
.legal-top nav a:hover { color: var(--li-blue); }
.legal-doc { width: min(46rem, calc(100% - 2rem)); }
.legal-meta { margin: 0 0 1.5rem; font-size: 0.88rem; color: #666; }
.legal-doc section { margin-bottom: 1.25rem; }
.legal-doc h2 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.legal-doc p,
.legal-doc li { line-height: 1.55; font-size: 0.95rem; }
.legal-foot a { color: #666; font-weight: 600; font-size: 0.88rem; }
.legal-foot a:hover { color: var(--li-blue); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .brand-word { display: none; }
  .nav-item span { display: none; }
  .nav-item { min-width: 48px; }
  .profile-avatar-wrap {
    left: 1rem;
    bottom: -48px;
  }
  .profile-avatar-wrap .avatar {
    width: 112px;
    height: 112px;
  }
  .profile-body {
    padding-top: 3.75rem !important;
  }
}
