/* Public business branding keeps the stored cover image separate from the square identity logo. */
.business-public-cover { height: clamp(10rem, 25vw, 22rem); }

/* Guest job preview: blurred decorative content covers 90% of this panel.
   Real job text and application contacts are withheld on the server. */
.job-details-gate { position: relative; overflow: hidden; min-height: 24rem; }
.job-details-gate-preview { position: absolute; inset: 5%; filter: blur(3px); opacity: .8; pointer-events: none; }
.job-details-gate-preview > :nth-child(even) { width: 75%; }
.job-details-gate-prompt { position: relative; min-height: 24rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; background: rgb(255 255 255 / 58%); }

/* Rental detail gallery follows the existing maximum of three ordered photos. */
.rental-detail-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .5rem; height: clamp(16rem, 38vw, 32rem); }
.rental-detail-gallery > a { min-height: 0; overflow: hidden; }
.rental-detail-gallery > a:first-child { grid-row: span 2; }
.rental-detail-gallery > a:only-child { grid-column: 1 / -1; }
.rental-detail-gallery > a:nth-child(2):last-child { grid-row: span 2; }
.rental-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) {
 .rental-detail-gallery { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
 .rental-detail-gallery > a { aspect-ratio: 4 / 3; }
 .rental-detail-gallery > a:first-child { grid-column: 1 / -1; grid-row: auto; }
 .rental-detail-gallery > a:nth-child(2):last-child { grid-column: 1 / -1; grid-row: auto; }
}

.public-media-placeholder {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
  text-align: center;
  min-height: 0;
  aspect-ratio: 1200 / 630;
  background: var(--bs-tertiary-bg, #f4f4f0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.public-business-media {
  min-height: 14rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bs-tertiary-bg, #f4f4f0);
}

.public-preline {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.public-reading-body {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 48rem;
}
.public-reading-body img { max-width: 100%; height: auto; }
.article-imported-content { overflow-x: auto; }
.article-imported-content table { border-collapse: collapse; width: 100%; }
.article-imported-content th, .article-imported-content td { padding: .5rem; border: 1px solid var(--bs-border-color); }

.public-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.public-page .badge {
  white-space: normal;
  overflow-wrap: anywhere;
}

.public-page .detail-aside {
  width: 20rem;
  max-width: 100%;
}

.public-page main h1 {
  overflow-wrap: anywhere;
}

@media(max-width:767.98px) {
  .public-page .detail-aside {
    width: 100%;
  }
}

/* Legacy public media: shared content-card media is defined in cards.css.
   Fixed heights/minimums would distort this ratio on smaller cards. */
.public-business-media,
.component-list-thumbnail,
.directory-result-photo,
.directory-popup-photo,
.news-photo,
.news-lead-photo,
.news-thumb,
.destination-article-image {
  aspect-ratio: 1200 / 630;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.public-business-media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.public-business-media > img,
.public-media-placeholder > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Business identity marks stay square; landscape card covers use the shared ratio above. */
.business-directory-logo {
  width: clamp(4rem, 8vw, 6rem);
  height: auto;
  aspect-ratio: 1;
}
.business-directory-logo img { object-fit: contain; }
[data-job-suggestion][hidden] { display: none !important; }
