/*!
 * Roovet Entity Showcase v1
 * Marker: RV_ENTITY_SHOWCASE_V1_CSS_20260512
 * Bing/Google-style top entity experience.
 */

.rv-entity-showcase {
  width: min(1220px, calc(100vw - 72px));
  margin: 18px auto 34px;
  display: none;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
}

.rv-entity-showcase.is-ready {
  display: block;
}

.rv-entity-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.rv-entity-title-wrap {
  min-width: 0;
}

.rv-entity-title {
  margin: 0;
  color: #202124;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -.035em;
}

.rv-entity-subtitle {
  margin-top: 5px;
  color: #5f6368;
  font-size: 15px;
  line-height: 1.35;
}

.rv-entity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-entity-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fff;
  color: #1a0dab;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.rv-entity-tab.is-active {
  background: #f3f0ed;
  color: #202124;
  border-color: #f3f0ed;
}

.rv-entity-tab:hover {
  text-decoration: none;
  background: #f8f9fa;
}

.rv-entity-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(320px, .72fr) minmax(260px, .48fr);
  gap: 18px;
  align-items: stretch;
}

.rv-entity-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2px;
  min-height: 338px;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f3f4;
}

.rv-entity-gallery-main,
.rv-entity-gallery-tile,
.rv-entity-gallery-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #f1f3f4;
}

.rv-entity-gallery-main {
  min-height: 338px;
}

.rv-entity-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.rv-entity-gallery-tile {
  min-height: 168px;
}

.rv-entity-gallery-fallback {
  display: grid;
  place-items: center;
  color: #5f6368;
  font-size: 54px;
  font-weight: 700;
  min-height: 338px;
  background: linear-gradient(135deg, #f8f9fa, #e8eef7);
}

.rv-entity-card {
  background: #f6f1ee;
  border: 1px solid #eee7e2;
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.rv-entity-card-title {
  margin: 0 0 12px;
  color: #202124;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.rv-entity-overview {
  margin: 0;
  color: #3c4043;
  font-size: 15px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-entity-card.is-expanded .rv-entity-overview {
  display: block;
}

.rv-entity-learn {
  display: inline-flex;
  margin-top: 10px;
  color: #1a0dab;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rv-entity-fact-mini {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #3c4043;
  font-size: 14px;
  line-height: 1.4;
}

.rv-entity-fact-mini div {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr);
  gap: 8px;
}

.rv-entity-fact-mini strong {
  color: #3c4043;
}

.rv-entity-source-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 96px;
  gap: 12px;
  margin-top: 22px;
}

.rv-entity-source-card {
  min-height: 62px;
  border: 1px solid #e4ded9;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #202124;
  text-decoration: none;
  min-width: 0;
}

.rv-entity-source-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: #fff;
  color: #202124;
  font-weight: 800;
  flex: 0 0 28px;
}

.rv-entity-source-text {
  min-width: 0;
}

.rv-entity-source-name {
  display: block;
  color: #202124;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-entity-source-host {
  display: block;
  color: #5f6368;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-entity-show-all {
  justify-content: center;
  font-weight: 700;
}

.rv-entity-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.rv-entity-side-card {
  background: #f6f1ee;
  border: 1px solid #eee7e2;
  border-radius: 14px;
  padding: 16px;
  min-height: 160px;
  overflow: hidden;
}

.rv-entity-side-title {
  margin: 0 0 12px;
  color: #202124;
  font-size: 16px;
  font-weight: 700;
}

.rv-entity-feature {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 12px;
  align-items: center;
}

.rv-entity-feature-img,
.rv-entity-feature-fallback {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f3f4;
  display: grid;
  place-items: center;
  color: #5f6368;
  font-weight: 800;
  border: 1px solid #e8eaed;
}

.rv-entity-feature-name {
  color: #202124;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.rv-entity-feature-meta {
  color: #5f6368;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.35;
}

.rv-entity-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.rv-entity-chip-card {
  min-height: 80px;
  border-radius: 12px;
  background: #e9f0ff;
  padding: 13px;
  color: #202124;
  overflow: hidden;
}

.rv-entity-chip-label {
  display: block;
  color: #355070;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.rv-entity-chip-value {
  display: block;
  color: #202124;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.rv-entity-strip {
  margin-top: 20px;
  border-top: 1px solid #dadce0;
  padding-top: 18px;
}

.rv-entity-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.rv-entity-strip-title {
  margin: 0;
  color: #202124;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.02em;
}

.rv-entity-strip-more {
  color: #1a0dab;
  font-size: 14px;
  text-decoration: none;
}

.rv-entity-strip-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 118px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.rv-entity-strip-item {
  color: #202124;
  text-decoration: none;
  min-width: 0;
}

.rv-entity-strip-img,
.rv-entity-strip-fallback {
  width: 118px;
  height: 118px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: #f1f3f4;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #5f6368;
  font-weight: 800;
  margin-bottom: 8px;
}

.rv-entity-strip-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #202124;
  font-size: 13px;
  line-height: 1.25;
}

.rv-entity-results-card {
  margin-top: 18px;
  border: 1px solid #dadce0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.rv-entity-result-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 86px;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #e8eaed;
  color: #202124;
  text-decoration: none;
  align-items: center;
}

.rv-entity-result-row:last-child {
  border-bottom: 0;
}

.rv-entity-result-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dadce0;
  border-radius: 50%;
  background: #fff;
  color: #5f6368;
  font-weight: 800;
}

.rv-entity-result-title {
  color: #1a0dab;
  font-size: 15px;
  line-height: 1.3;
}

.rv-entity-result-meta {
  color: #5f6368;
  font-size: 12px;
  margin-top: 2px;
}

.rv-entity-result-thumb {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e8eaed;
  background: #f1f3f4;
}

.rv-entity-showcase + .rv-serp-shell {
  padding-top: 0 !important;
}

body.rv-entity-showcase-active .rv-serp-ai {
  display: none !important;
}

/* For entity searches, make the remaining SERP feel like the screenshots. */
body.rv-entity-showcase-active .rv-serp-shell {
  margin-top: 18px !important;
}

@media (max-width: 1180px) {
  .rv-entity-grid {
    grid-template-columns: minmax(0,1fr) minmax(320px,.75fr);
  }

  .rv-entity-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  .rv-entity-showcase {
    width: min(760px, calc(100vw - 28px));
  }

  .rv-entity-topline {
    display: block;
  }

  .rv-entity-tabs {
    margin-top: 14px;
  }

  .rv-entity-grid {
    display: block;
  }

  .rv-entity-gallery,
  .rv-entity-card,
  .rv-entity-side {
    margin-bottom: 18px;
  }

  .rv-entity-side {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .rv-entity-title {
    font-size: 28px;
  }

  .rv-entity-gallery {
    grid-template-columns: 1fr;
  }

  .rv-entity-gallery-side {
    display: none;
  }

  .rv-entity-source-row {
    grid-template-columns: 1fr;
  }

  .rv-entity-result-row {
    grid-template-columns: 36px minmax(0,1fr);
  }

  .rv-entity-result-thumb {
    display: none;
  }
}
