:root {
  --lo-primary: #0A66C2;
  --lo-primary-dark: #004182;
  --lo-bg: #F3F2EF;
  --lo-card: #FFFFFF;
  --lo-border: #E8E6E0;
  --lo-text: #000000E0;
  --lo-text-muted: #00000099;
  --lo-text-subtle: #00000066;
  --lo-success: #2B9348;
  --lo-hover: #F4F2EE;
  --lo-radius: 8px;
  --lo-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--lo-text);
  background: var(--lo-bg) url("/static/linkedout-bg.png") center/cover fixed no-repeat;
  line-height: 1.5;
}

a { color: var(--lo-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* top nav */
.nav {
  background: #000;
  border-bottom: 1px solid #111;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Top-nav text wordmark. Complements the big floating side-brand image. */
.top-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
  padding: 4px 2px;
  margin-right: 4px;
}
.top-brand-main { color: #fff; }
.top-brand-tld  { color: #7aa8ff; font-weight: 700; }
.top-brand:hover { text-decoration: none; }
.top-brand:hover .top-brand-main { color: #e6f0ff; }

/* Fixed left-edge brand logo — stays centered vertically as you scroll.
   On narrow viewports it's hidden to avoid overlapping content. */
.side-brand {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 500px;
  display: block;
  line-height: 0;
  transition: transform 0.2s ease;
}
.side-brand:hover {
  transform: translateY(-50%) scale(1.02);
}
.side-brand img {
  width: 100%;
  height: auto;
  display: block;
  /* Radial feather: fully opaque through ~55% of the image, fading to
     transparent by the outer edge. Keeps the cosmos detail near the text
     visible while blending into the page background. */
  -webkit-mask-image: radial-gradient(
      ellipse 55% 60% at center,
      #000 60%,
      transparent 100%
  );
          mask-image: radial-gradient(
      ellipse 55% 60% at center,
      #000 60%,
      transparent 100%
  );
  /* drop-shadow follows the alpha channel, so the glow matches the feather */
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}
/* Always show the floating logo. On screens narrower than ~1800px it will
   overlap the content column; it fades to 25% opacity on hover of the main
   content area so it stops being visually disruptive when you're reading. */
.side-brand {
  opacity: 0.95;
}
@media (max-width: 1700px) {
  .side-brand { width: 380px; opacity: 0.85; }
}
@media (max-width: 1300px) {
  .side-brand { width: 260px; opacity: 0.8; }
}
@media (max-width: 900px) {
  /* On phones it just gets in the way. */
  .side-brand { display: none; }
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 280px;
}
.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 10px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.search-input:focus {
  background: #fff;
  color: #000;
  border-color: rgba(255, 255, 255, 0.4);
}
.search-input:focus::placeholder { color: rgba(0, 0, 0, 0.45); }
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  color: #000;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 100;
  max-height: 70vh;
  overflow-y: auto;
}
.search-group-label {
  padding: 6px 12px 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 600;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.search-item:hover,
.search-item.is-active { background: rgba(10, 102, 194, 0.1); }
.search-item-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}
.search-item-thumb.is-company { border-radius: 4px; }
.search-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-item-body { flex: 1; min-width: 0; }
.search-item-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-item-sub {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.nav-icon { font-size: 18px; line-height: 1; }

/* layout */
.container {
  max-width: 1128px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  gap: 24px;
}
.container.three-col { grid-template-columns: 225px 1fr 300px; }
.container.two-col { grid-template-columns: 225px 1fr; }
.container.wide { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .container.three-col, .container.two-col {
    grid-template-columns: 1fr;
  }
  .sidebar-right, .sidebar-left { display: none; }

  /* Mobile: pin primary nav to the bottom of the viewport. */
  .nav-link-desktop-only { display: none; }
  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: #000;
    border-top: 1px solid #1c1c1c;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    gap: 0;
    justify-content: space-around;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
  }
  .nav-links .nav-link {
    flex: 1;
    padding: 6px 4px;
    font-size: 10px;
    gap: 2px;
  }
  .nav-links .nav-icon { font-size: 22px; }
  /* Make sure body content (and fixed footers) clear the bottom bar. */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { margin-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* cards */
.card {
  background: var(--lo-card);
  border: 1px solid var(--lo-border);
  border-radius: var(--lo-radius);
  overflow: hidden;
}
.card-body { padding: 16px 20px; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}
.card-subtitle {
  color: var(--lo-text-muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.stack > * + * { margin-top: 12px; }

/* profile card */
.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #0A66C2, #044581 60%, #7a0bc0);
  background-size: cover;
  background-position: center;
}
.profile-head {
  padding: 0 24px 24px;
  position: relative;
}
.profile-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 4px solid var(--lo-card);
  margin-top: -72px;
  overflow: hidden;
  background: #ddd;
  display: flex;
}
.profile-avatar svg { width: 100%; height: 100%; display: block; }
.profile-name {
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 4px 0;
  letter-spacing: -0.2px;
}
.profile-headline {
  font-size: 15px;
  color: var(--lo-text);
  margin-bottom: 8px;
}
.profile-meta {
  font-size: 12px;
  color: var(--lo-text-muted);
}
.profile-meta .dot { margin: 0 6px; color: var(--lo-text-subtle); }
.profile-actions { margin-top: 14px; display: flex; gap: 8px; }
.btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--lo-primary); color: #fff; border-color: var(--lo-primary); }
.btn-primary:hover { background: var(--lo-primary-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--lo-primary); border-color: var(--lo-primary); }
.btn-ghost:hover { background: rgba(10,102,194,0.1); text-decoration: none; }

/* lists */
.experience-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lo-border);
}
.experience-item:last-child { border-bottom: none; }
.experience-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
  display: flex;
}
.experience-logo svg { width: 100%; height: 100%; }
.experience-title { font-weight: 600; }
.experience-company { color: var(--lo-text-muted); font-size: 13px; }
.experience-dates { color: var(--lo-text-subtle); font-size: 12px; }
.experience-desc { color: var(--lo-text); font-size: 13px; margin-top: 4px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  background: #EEF3F8;
  color: #0A66C2;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px 4px 2px 0;
}
.pill.gray { background: #EEECE8; color: var(--lo-text-muted); }

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.connection-card {
  border: 1px solid var(--lo-border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.connection-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
}
.connection-avatar svg { width: 100%; height: 100%; }
.connection-name { font-weight: 600; font-size: 13px; }
.connection-headline {
  font-size: 11px;
  color: var(--lo-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* directory */
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.directory-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--lo-card);
  border: 1px solid var(--lo-border);
  border-radius: var(--lo-radius);
  align-items: flex-start;
}
.directory-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.directory-card .logo-tile {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.directory-card .avatar svg, .directory-card .logo-tile svg { width: 100%; height: 100%; }
.directory-card h3 { margin: 0 0 2px 0; font-size: 14px; }
.directory-card p { margin: 0; font-size: 12px; color: var(--lo-text-muted); }

/* home feed */
.feed-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--lo-border);
}
.feed-item:last-child { border-bottom: none; }
.feed-head { display: flex; gap: 10px; align-items: center; }
.feed-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.feed-avatar svg { width: 100%; height: 100%; }
.feed-meta { display: flex; flex-direction: column; }
.feed-name { font-weight: 600; font-size: 13px; }
.feed-sub { color: var(--lo-text-muted); font-size: 11px; }

.about-text { white-space: pre-wrap; font-size: 14px; }

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 4px 0 16px;
  letter-spacing: -0.2px;
}

.empty {
  background: var(--lo-card);
  border: 1px dashed var(--lo-border);
  border-radius: var(--lo-radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--lo-text-muted);
  font-size: 14px;
}

/* post card */
.post-card {
  background: var(--lo-card);
  border: 1px solid var(--lo-border);
  border-radius: var(--lo-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.post-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.post-avatar { display: block; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.post-avatar svg { width: 100%; height: 100%; display: block; }
.post-meta { display: flex; flex-direction: column; }
.post-author { font-weight: 600; font-size: 14px; color: var(--lo-text); text-decoration: none; }
.post-author:hover { color: var(--lo-primary); text-decoration: underline; }
.post-headline { font-size: 12px; color: var(--lo-text-muted); }
.post-sub { font-size: 12px; color: var(--lo-text-subtle); margin-top: 2px; }
.post-sub .dot { margin: 0 6px; }
.post-body {
  font-size: 14px;
  color: var(--lo-text);
  white-space: pre-wrap;
  line-height: 1.55;
  margin: 6px 0 10px;
}
.post-media {
  display: block;
  margin: 8px -20px 10px;
  line-height: 0;
  border-top: 1px solid var(--lo-border);
  border-bottom: 1px solid var(--lo-border);
}
.post-media img { width: 100%; height: auto; display: block; }

.mention-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin: 10px 0;
  background: linear-gradient(135deg, #EEF3F8, #F3F2EF);
  border: 1px solid var(--lo-border);
  border-radius: var(--lo-radius);
  text-decoration: none;
  color: inherit;
}
.mention-card:hover { background: #E5EEF7; text-decoration: none; }
.mention-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.mention-avatar svg, .mention-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mention-label { font-size: 11px; color: var(--lo-text-subtle); margin-bottom: 2px; }
.mention-name { font-weight: 600; font-size: 15px; color: var(--lo-text); }
.mention-headline { font-size: 12px; color: var(--lo-text-muted); }

/* sponsored ad card */
.ad-card {
  background: var(--lo-card);
  border: 1px solid var(--lo-border);
  border-radius: var(--lo-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.ad-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ad-logo-link { flex-shrink: 0; }
.ad-logo { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; }
.ad-logo svg, .ad-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ad-meta { display: flex; flex-direction: column; gap: 2px; }
.ad-business { font-weight: 600; font-size: 14px; color: var(--lo-text); text-decoration: none; }
.ad-business:hover { color: var(--lo-primary); text-decoration: underline; }
.ad-sub { font-size: 12px; color: var(--lo-text-muted); }
.ad-sponsored {
  font-size: 11px;
  color: var(--lo-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.ad-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--lo-text);
  margin: 8px 0 6px;
  line-height: 1.3;
}
.ad-body {
  font-size: 14px;
  color: var(--lo-text);
  line-height: 1.55;
  white-space: pre-wrap;
  margin-bottom: 10px;
}
.ad-media {
  margin: 10px -20px;
  line-height: 0;
  border-top: 1px solid var(--lo-border);
  border-bottom: 1px solid var(--lo-border);
}
.ad-media img { width: 100%; height: auto; display: block; }
.ad-cta {
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--lo-primary);
  color: var(--lo-primary);
  border-radius: 24px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  margin-top: 6px;
}
.ad-cta:hover {
  background: rgba(10, 102, 194, 0.1);
  text-decoration: none;
}

.ad-card.ad-pinned {
  border-color: var(--lo-primary);
  box-shadow: 0 0 0 1px var(--lo-primary), 0 4px 10px rgba(10, 102, 194, 0.08);
}
.ad-card.ad-pinned .ad-sponsored {
  color: var(--lo-primary);
  font-weight: 600;
}

.pinned-post-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--lo-primary), #7a0bc0);
  border-radius: 14px;
  margin: 0 0 6px 2px;
}

/* Jobs page */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: var(--lo-card);
  border: 1px solid var(--lo-border);
  border-radius: var(--lo-radius);
  padding: 16px 20px;
}
.job-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.job-logo { display: block; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.job-logo svg, .job-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-meta { flex: 1; }
.job-title { font-size: 16px; font-weight: 600; color: var(--lo-text); margin-bottom: 2px; }
.job-company { font-weight: 500; color: var(--lo-primary); text-decoration: none; }
.job-company:hover { text-decoration: underline; }
.job-sub {
  font-size: 13px;
  color: var(--lo-text-muted);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.job-sub .dot { color: var(--lo-text-subtle); }
.job-description {
  font-size: 14px;
  color: var(--lo-text);
  white-space: pre-wrap;
  line-height: 1.55;
  margin: 8px 0;
}
.job-section { margin-top: 10px; }
.job-section-title { font-size: 12px; font-weight: 600; color: var(--lo-text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.job-bullets { margin: 0; padding-left: 18px; font-size: 13px; color: var(--lo-text); }
.job-bullets li { margin-bottom: 3px; }
.job-actions { display: flex; gap: 8px; margin-top: 14px; }

/* About page */
.about-wrap { display: flex; flex-direction: column; gap: 16px; }
.about-hero {
  /* layer the subtle tint OVER the white card so text stays readable
     against the dark cosmos body background showing through. */
  background:
    linear-gradient(135deg, rgba(10,102,194,0.12), rgba(122,11,192,0.12)),
    var(--lo-card);
}
.about-hero .section-title {
  font-size: 26px;
  line-height: 1.25;
  color: var(--lo-text);
  margin: 4px 0 12px;
}
.about-lead { font-size: 16px; line-height: 1.55; color: var(--lo-text); margin: 8px 0 0; }
.about-list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.about-list li { margin-bottom: 6px; }

/* Global site footer */
.site-footer {
  margin-top: 48px;
  padding: 24px 16px 40px;
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.site-footer-inner {
  max-width: 1128px;
  margin: 0 auto;
  text-align: center;
}
.site-footer-links {
  font-size: 13px;
  margin-bottom: 8px;
}
.site-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0 4px;
}
.site-footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer-sep { margin: 0 4px; color: rgba(255, 255, 255, 0.3); }
.site-footer-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.post-stats {
  font-size: 12px;
  color: var(--lo-text-muted);
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--lo-border);
}
.post-actions {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  border-bottom: 1px solid var(--lo-border);
}
.post-action {
  font-size: 13px;
  font-weight: 500;
  color: var(--lo-text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.post-action:hover { background: var(--lo-hover); color: var(--lo-text); }

.comments { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment-avatar { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-avatar svg { width: 100%; height: 100%; }
.comment-bubble {
  background: var(--lo-hover);
  border-radius: 8px;
  padding: 8px 12px;
  flex: 1;
}
.comment-name { font-weight: 600; font-size: 13px; color: var(--lo-text); text-decoration: none; }
.comment-name:hover { color: var(--lo-primary); text-decoration: underline; }
.comment-head { font-size: 11px; color: var(--lo-text-subtle); margin-bottom: 4px; }
.comment-content { font-size: 13px; color: var(--lo-text); white-space: pre-wrap; }
.comment-more {
  font-size: 13px;
  color: var(--lo-text-muted);
  padding: 4px 0;
  display: block;
}
