/* LinkedIn-specific styling. Approximates the actual feed UI. */

.li-body {
  background: #f4f2ee;
  color: rgba(0, 0, 0, 0.9);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.42857;
  -webkit-font-smoothing: antialiased;
}

/* Top nav */
.li-topnav {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky; top: 49px; z-index: 800; /* below preview toolbar (49 = 8+12*2+8 toolbar approx) */
}
.li-nav-inner {
  max-width: 1128px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 52px;
}
.li-logo { display: inline-flex; align-items: center; }
.li-search {
  background: #edf3f8;
  border-radius: 4px;
  padding: 0 8px;
  width: 280px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.li-search input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font: inherit;
  color: rgba(0,0,0,.9);
}
.li-nav-icons {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 0;
}
.li-nav-icons a {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 12px;
  text-decoration: none;
  color: rgba(0,0,0,.6);
  font-size: 12px;
  font-weight: 400;
  position: relative;
}
.li-nav-icons a:hover, .li-nav-icons a.active { color: rgba(0,0,0,.9); }
.li-nav-icons a span { margin-top: 2px; }
.li-nav-icons a.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,.9);
}
.li-nav-icons .li-me { display: flex; flex-direction: row; gap: 4px; align-items: center; }
.li-avatar-mini {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #555);
}

/* Profile-mode header */
.li-profile-header {
  max-width: 1128px;
  margin: 16px auto 0;
  background: white;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  overflow: hidden;
}
.li-profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #ff6b35 100%);
}
.li-profile-info {
  padding: 0 24px 16px;
  position: relative;
}
.li-profile-avatar {
  width: 152px; height: 152px;
  border-radius: 50%;
  border: 4px solid white;
  margin-top: -76px;
  background: linear-gradient(135deg, #ff6b35, #c64a17);
  display: grid; place-items: center;
  color: white;
  font-size: 48px; font-weight: 700;
  margin-bottom: 16px;
}
.li-profile-info.dragonfly .li-profile-avatar {
  background: white url('brand/dragonfly-logo-square.jpg') center / cover no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
.li-profile-info.jj .li-profile-avatar { background: linear-gradient(135deg, #1a1a1a, #444); }
.li-profile-info.irving .li-profile-avatar { background: linear-gradient(135deg, #0a66c2, #003e7e); }
.li-profile-info h1 { font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.li-profile-info p { font-size: 14px; color: rgba(0,0,0,.9); margin: 0 0 4px; }
.li-profile-loc { color: rgba(0,0,0,.6); font-size: 14px; }
.li-profile-loc a { color: #0a66c2; font-weight: 600; text-decoration: none; }
.li-profile-conn strong { color: #0a66c2; }
.li-profile-actions {
  margin-top: 16px;
  display: flex; gap: 8px;
}
.btn-primary, .btn-secondary {
  border: none; padding: 6px 16px; border-radius: 16px; font: inherit;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
}
.btn-primary { background: #0a66c2; color: white; }
.btn-primary:hover { background: #004182; }
.btn-secondary { background: white; color: #0a66c2; border: 1px solid #0a66c2; }
.btn-secondary:hover { background: #eef3f8; }
.li-profile-tabs {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  border-bottom: 1px solid rgba(0,0,0,.15);
  margin-left: -24px; margin-right: -24px;
  padding: 0 24px;
}
.li-profile-tabs a {
  text-decoration: none;
  padding: 12px 0;
  color: rgba(0,0,0,.6);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.li-profile-tabs a.active {
  color: #b24020;
  border-bottom-color: #b24020;
  font-weight: 600;
}

/* Three-column grid */
.li-page {
  max-width: 1128px;
  margin: 16px auto 80px;
  padding: 0 16px;
}
.li-grid {
  display: grid;
  grid-template-columns: 225px minmax(0, 555px) 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .li-grid { grid-template-columns: 225px minmax(0, 1fr); }
  .li-side-right { display: none; }
}
@media (max-width: 768px) {
  .li-grid { grid-template-columns: 1fr; gap: 12px; }
  .li-side-left, .li-side-right { display: none; }
}

.li-card {
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}
.li-side-left .li-card, .li-side-right .li-card { margin-bottom: 8px; }

/* Mini profile card (left rail) */
.li-mini-cover {
  height: 56px;
  background: linear-gradient(135deg, #1a1a1a 0%, #ff6b35 100%);
  background-size: cover;
}
.li-mini-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, #1a1a1a, #444);
  margin: -36px auto 8px;
  display: grid; place-items: center;
  color: white; font-weight: 700;
  font-size: 24px;
}
.li-mini-name {
  text-align: center;
  font-weight: 600; font-size: 16px; padding: 0 16px;
}
.li-mini-headline {
  text-align: center;
  color: rgba(0,0,0,.6); font-size: 12px;
  padding: 4px 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.li-mini-stats { padding: 8px 12px; }
.li-stat-row {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 2px 0;
  color: rgba(0,0,0,.6);
}
.li-stat-row strong { color: #0a66c2; font-weight: 600; }

.li-side-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: rgba(0,0,0,.9);
  font-size: 12px; font-weight: 600;
}
.li-side-link:hover { background: rgba(0,0,0,.05); }
.li-side-link svg { color: rgba(0,0,0,.6); }

/* Share box */
.li-share-box {
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px 16px 4px;
  margin-bottom: 8px;
}
.li-share-top {
  display: flex; gap: 8px; align-items: center;
}
.li-share-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #444);
  display: grid; place-items: center; color: white; font-weight: 700;
  flex-shrink: 0;
}
.li-share-btn {
  flex: 1; text-align: left;
  background: white; border: 1px solid rgba(0,0,0,.6);
  border-radius: 35px;
  padding: 8px 16px;
  color: rgba(0,0,0,.6);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
}
.li-share-btn:hover { background: rgba(0,0,0,.06); }
.li-share-types {
  display: flex; gap: 4px;
  padding: 4px 0;
}
.li-share-types button {
  flex: 1; background: none; border: none; padding: 10px 8px;
  border-radius: 4px;
  color: rgba(0,0,0,.6); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.li-share-types button:hover { background: rgba(0,0,0,.06); }
.li-share-types .ico { font-size: 18px; }

/* Feed divider */
.li-feed-divider {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 8px;
  font-size: 12px; color: rgba(0,0,0,.6);
}
.li-feed-divider::before, .li-feed-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.15);
}
.li-feed-divider strong { color: rgba(0,0,0,.9); font-weight: 600; }

/* Post card */
.li-post {
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: 8px;
  overflow: hidden;
}
.li-post-header {
  padding: 12px 16px 0;
  display: flex; gap: 8px;
}
.li-post-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.li-post-avatar.dragonfly {
  background: white url('brand/dragonfly-logo-square.jpg') center / cover no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
.li-post-avatar.jj { background: linear-gradient(135deg, #1a1a1a, #444); }
.li-post-avatar.irving { background: linear-gradient(135deg, #0a66c2, #003e7e); }
.li-post-author { flex: 1; min-width: 0; }
.li-post-name {
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 4px;
}
.li-post-name .verified { color: rgba(0,0,0,.6); font-size: 12px; }
.li-post-headline {
  font-size: 12px; color: rgba(0,0,0,.6);
  line-height: 1.33;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.li-post-time {
  font-size: 12px; color: rgba(0,0,0,.6);
}
.li-post-time::after {
  content: ' · 🌐';
  font-size: 11px;
}
.li-post-more {
  padding: 4px 8px;
  color: rgba(0,0,0,.6);
  background: none; border: none;
  font-size: 18px;
  align-self: flex-start;
}

.li-post-body {
  padding: 8px 16px 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.li-post-hashtags {
  padding: 0 16px 12px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
}
.li-post-hashtags .ht {
  color: #0a66c2;
  font-weight: 600;
  margin-right: 2px;
}
.li-post-hashtags .ht:hover { text-decoration: underline; }

.li-post-image {
  margin: 0;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Engagement counts row */
.li-engagement {
  padding: 8px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(0,0,0,.6);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.li-reactions {
  display: inline-flex; align-items: center;
}
.li-reactions .reaction {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid white;
  margin-right: -4px;
  display: inline-block;
  background-size: cover;
}
.li-reactions .reaction.thumb { background: #0a66c2; position: relative; }
.li-reactions .reaction.thumb::before { content: '👍'; font-size: 9px; position: absolute; left: 2px; top: 1px; }
.li-reactions .reaction.heart { background: #df704d; }
.li-reactions .reaction.heart::before { content: '❤'; font-size: 8px; color: white; position: absolute; left: 3px; top: 2px; display: block; }
.li-reactions .reaction.clap { background: #6dae4f; }
.li-eng-count { margin-left: 8px; }
.li-eng-count:hover { color: #0a66c2; text-decoration: underline; cursor: pointer; }
.li-eng-right { margin-left: auto; }
.li-eng-right span:hover { color: #0a66c2; text-decoration: underline; cursor: pointer; }

/* Action bar */
.li-actions {
  display: flex;
  padding: 4px 8px;
}
.li-action {
  flex: 1;
  background: none; border: none;
  padding: 8px;
  border-radius: 4px;
  color: rgba(0,0,0,.6);
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.li-action:hover { background: rgba(0,0,0,.06); }
.li-action svg { width: 20px; height: 20px; }

/* Image area shared between IG/FB/LI — defined here for LI */
.image-area {
  position: relative;
  background: #1a1a1a; color: #fdfcfb;
  padding: 32px 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  overflow: hidden;
}
.aspect-191 { aspect-ratio: 1.91 / 1; }
.aspect-45  { aspect-ratio: 4 / 5; }
.aspect-11  { aspect-ratio: 1 / 1; }

.tile-bg::before {
  content: '';
  position: absolute; left: 50%; top: 22%;
  width: 56px; height: 1px; background: #ff6b35;
  transform: translateX(-50%);
}
.tile-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; line-height: 1.45;
  font-weight: 500;
  max-width: 90%;
}
.aspect-11 .tile-quote { font-size: 28px; }
.tile-mark {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center;
  font-size: 9px; letter-spacing: 3px; color: #ff6b35;
  font-weight: 600;
}
.tile-attr {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 11px; color: #888; font-style: italic;
}
.carousel-cover { background: #0f0f10; }
.carousel-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,107,53,0.95); color: white;
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.press-bg { background: #fdfcfb; color: #1a1a1a; }
.press-bg::before { display: none; }
.press-label {
  font-size: 10px; letter-spacing: 3px; color: #ff6b35;
  margin-bottom: 14px; font-weight: 700;
}
.press-content {
  font-family: Georgia, serif;
  font-size: 14px; line-height: 1.5;
  white-space: pre-line;
  max-width: 92%;
}
.press-bg .tile-mark { color: #1a1a1a; }
.photo-bg {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a 70%);
  color: #aaa;
}
.photo-bg::before { display: none; }
.photo-icon { font-size: 36px; opacity: 0.4; margin-bottom: 12px; }
.photo-topic {
  font-family: Georgia, serif;
  font-size: 17px; color: #fff;
  max-width: 90%;
}
.photo-note {
  font-size: 11px; color: #888;
  margin-top: 10px; font-style: italic;
  max-width: 80%;
}

/* News rail */
.li-news-title {
  display: flex; justify-content: space-between;
  font-size: 16px; font-weight: 600;
  padding: 12px 16px 4px;
}
.li-news-i {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  color: rgba(0,0,0,.6);
}
.li-news-list { list-style: none; padding: 4px 0; margin: 0; }
.li-news-list li {
  padding: 8px 16px;
  font-size: 14px; line-height: 1.4;
  cursor: pointer;
}
.li-news-list li:hover { background: rgba(0,0,0,.04); }
.li-news-list li strong { font-weight: 600; }
.li-news-meta { font-size: 12px; color: rgba(0,0,0,.6); }
.li-news-more {
  padding: 8px 16px;
  font-weight: 600; font-size: 14px;
  color: rgba(0,0,0,.6);
  cursor: pointer;
}
.li-news-more:hover { background: rgba(0,0,0,.04); }

.li-promo {
  padding: 16px;
  font-size: 14px;
}
.li-promo-label { font-size: 11px; color: rgba(0,0,0,.6); }
.li-promo-text { line-height: 1.4; margin-top: 6px; }
