/**
 * Business theme — `post_excerpt` section.
 *
 * A two-column post header: featured image on one side, the post's category /
 * title / excerpt / date / share row on the other. Column widths come from
 * --biz-pexc-media (the image width % set per section in the admin) and the
 * image's crop from --biz-pexc-ratio; both are written as inline styles on
 * .biz-pexc__grid. Stacks to a single column (image above the details) below
 * 768px.
 */

.biz-pexc {
  background-color: #fff;
  padding-top: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  padding-bottom: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
}
.biz-pexc--bg-muted { background-color: #f9fafb; }

.biz-pexc__inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.biz-pexc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, .75rem + 1.5vw, 2.5rem);
}
.biz-pexc__grid--valign-center { align-items: center; }
.biz-pexc__grid--valign-top    { align-items: start; }

@media (min-width: 768px) {
  .biz-pexc__grid--left  { grid-template-columns: var(--biz-pexc-media, 40%) 1fr; }
  .biz-pexc__grid--right { grid-template-columns: 1fr var(--biz-pexc-media, 40%); }
  /* Only one side has content — let it use the full row. */
  .biz-pexc__grid--single { grid-template-columns: 1fr; }
}

/* ── Image ────────────────────────────────────────────────────────────────── */

.biz-pexc__media {
  overflow: hidden;
  border-radius: 10px;
  background-color: #f3f4f6;
}
.biz-pexc__media:empty { display: none; }

.biz-pexc__media img {
  display: block;
  width: 100%;
  height: 100%;
  /* Unset when the admin picks the "auto" shape, so the image keeps its own
     proportions instead of being cropped. */
  aspect-ratio: var(--biz-pexc-ratio, auto);
  object-fit: cover;
}

/* ── Details ──────────────────────────────────────────────────────────────── */

.biz-pexc__content {
  min-width: 0;
  text-align: left;
}

.biz-pexc__cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .9rem;
}
.biz-pexc__cat {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-primary, #012269);
  background-color: #eef2ff;
  border-radius: 9999px;
  padding: .28rem .7rem;
}

.biz-pexc__title {
  color: #111827;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
}

.biz-pexc__lede {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 1rem 0 0;
}

.biz-pexc__meta {
  color: #9ca3af;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 1.1rem 0 0;
}
.biz-pexc__author   { color: #4b5563; }
.biz-pexc__meta-sep { padding: 0 .45rem; }

/* ── Share row ────────────────────────────────────────────────────────────── */

.biz-pexc__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  position: relative;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.biz-pexc__share-label {
  color: #9ca3af;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-right: .2rem;
}

.biz-pexc__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background-color: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.biz-pexc__share-btn:hover {
  background-color: var(--color-primary, #012269);
  border-color: var(--color-primary, #012269);
  color: #fff;
}
.biz-pexc__share-btn svg { width: 18px; height: 18px; }

.biz-pexc__share-toast {
  position: absolute;
  left: 0;
  bottom: calc(100% - .5rem);
  background-color: #111827;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.biz-pexc__share-toast.is-visible { opacity: 1; }
