/*
  MirNova Hub — feed_cards.css
  Structural listing card layout only.
  Visual layer lives in feed_cards_rebuild.css.
*/

.feed-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 20px 0 12px;
}

.feed-section-title:first-child {
  margin-top: 0;
}

.hub-listing-card {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-lcard-surface {
  overflow: hidden;
}

.hub-lcard-zone--header {
  padding: 14px 16px 10px;
}

.hub-lcard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.hub-lcard-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 820;
  line-height: 1.22;
  letter-spacing: -0.014em;
}

.hub-lcard-sub {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 550;
}

.hub-lcard-intent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-lcard-intent .hub-intent-pill {
  padding: 4px 9px;
}

.hub-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  white-space: nowrap;
}

.hub-lcard-zone--description {
  padding: 14px 16px 12px;
}

.hub-desc-preview-view {
  position: relative;
}

.hub-desc-preview-inner {
  font-size: 15px;
  line-height: 1.58;
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
  max-height: calc(3 * 1.58em);
  overflow: hidden;
}

.hub-desc-preview-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  pointer-events: none;
  opacity: 1;
}

.hub-desc-preview-btn {
  display: none;
}

.hub-desc-preview-btn:focus-visible {
  outline-offset: 2px;
}

.hub-lcard-zone--meta {
  padding: 10px 14px 10px;
}

.hub-facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: calc(2 * 34px + 6px);
  overflow: hidden;
  align-items: flex-start;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  max-width: 100%;
}

.hub-chip .ico {
  opacity: 0.95;
}

.hub-chip .label {
  font-weight: 650;
}

.hub-chip .val {
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

@media (min-width: 900px) {
  .hub-chip .val {
    max-width: 420px;
  }
}

.hub-lcard-zone--skills {
  padding: 9px 14px 9px;
}

.hub-lcard-skills-line {
  font-size: 12px;
  line-height: 1.35;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.hub-lcard-skills-line b {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hub-lcard-zone--cta {
  padding: 12px 14px 14px;
}

.hub-lcard-cta {
  margin: 0;
}

.hub-lcard-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  padding-top: 12px;
}

.hub-lcard-actions .btn-hub-action {
  flex: 1 1 260px;
}

.hub-lcard-actions .btn-hub-secondary {
  flex: 0 0 auto;
  min-width: 120px;
}

.hub-lcard-cta .btn-hub-action,
.hub-lcard-cta .btn-hub-secondary {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
}

.hub-lcard-cta .btn-hub-action {
  font-size: 14px;
  font-weight: 780;
  padding: 12px 14px;
}

.hub-lcard-cta .btn-hub-secondary {
  font-size: 12px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}

@media (max-width: 899px) {
  .hub-lcard-actions {
    flex-direction: column;
  }

  .hub-lcard-actions .btn-hub-secondary {
    width: 100%;
  }
}

/* Feed cards visual rules migrated from feed_cards_rebuild.css */

/* FEED CARDS REBUILD — scoped, desktop/mobile safe */

.hub-page .hub-listing-card {
  margin: 0 0 26px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hub-page .hub-lcard-surface {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.hub-page .hub-lcard-zone--header,
.hub-page .hub-lcard-zone--description,
.hub-page .hub-lcard-zone--meta,
.hub-page .hub-lcard-zone--skills,
.hub-page .hub-lcard-zone--cta {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
}

.hub-page .hub-lcard-zone--cta {
  border-bottom: 0;
}

.hub-page .hub-lcard-title {
  color: #111;
  opacity: 1;
}

.hub-page .hub-lcard-sub,
.hub-page .hub-lcard-skills-line,
.hub-page .hub-lcard-skills-line b {
  color: #555;
  opacity: 1;
}

.hub-page .hub-desc-preview-inner {
  color: #111;
  opacity: 1;
}

.hub-page .hub-desc-preview-fade {
  display: none;
}

.hub-page .hub-chip,
.hub-page .hub-intent-pill,
.hub-page .hub-badge {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  box-shadow: none;
}

.hub-page .hub-chip .label {
  color: #555;
}

.hub-page .hub-chip .val {
  color: #111;
}

.hub-page .hub-lcard-actions .btn-hub-action,
.hub-page .hub-lcard-actions .btn-hub-secondary {
  color: #111;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: none;
  filter: none;
}

.hub-page .hub-lcard-actions .btn-hub-action:hover,
.hub-page .hub-lcard-actions .btn-hub-secondary:hover {
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
}

/* keep mobile structure; only make it readable */
@media (max-width: 899px) {
  .hub-page .hub-lcard-surface {
    border-left: 0;
    border-right: 0;
  }

  .hub-page .hub-lcard-actions .btn-hub-action,
  .hub-page .hub-lcard-actions .btn-hub-secondary {
    width: 100%;
  }
}
