/* =========================================================
   OV ELEGANT POST DETAILS
   Generic editorial single-post styling
========================================================= */

.single-post {
  --ovepd-accent: #B39763;
  --ovepd-heading: #111C2C;
  --ovepd-text: #4F4C47;
  --ovepd-surface: #F7F5EF;
  --ovepd-max: 900px;
  --ovepd-line: rgba(17,28,44,.12);
}

.single-post .entry-title,
.single-post .wp-block-post-title,
.ovepd-single__title {
  color: var(--ovepd-heading) !important;
  font-size: clamp(38px,5vw,64px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em;
  margin-bottom: 18px !important;
  text-wrap: balance;
}

.ovepd-auto,
.ovepd-single {
  width: min(var(--ovepd-max), calc(100% - 40px));
  margin: 0 auto;
  color: var(--ovepd-text);
}

.ovepd-single {
  padding: 70px 0 90px;
}

.ovepd-single__header {
  max-width: 820px;
  margin-bottom: 34px;
}

.ovepd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--ovepd-accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ovepd-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.ovepd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
  color: #77716A;
  font-size: 13px;
  line-height: 1.5;
}

.ovepd-meta__category {
  color: var(--ovepd-accent);
  font-weight: 700;
}

.ovepd-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(17,28,44,.28);
}

.ovepd-featured {
  width: 100%;
  margin: 0 0 42px !important;
  overflow: hidden;
  background: var(--ovepd-surface);
}

.ovepd-featured__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.ovepd-content {
  width: 100%;
  color: var(--ovepd-text);
  font-size: 17px;
  line-height: 1.82;
}

.ovepd-content p {
  margin: 0 0 1.45em !important;
  color: inherit !important;
  font-size: max(16px, 1em) !important;
  line-height: 1.82 !important;
}

.ovepd-content h2,
.ovepd-content h3,
.ovepd-content h4,
.ovepd-content h5,
.ovepd-content h6 {
  color: var(--ovepd-heading) !important;
  line-height: 1.15 !important;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.ovepd-content h2 {
  margin: 1.65em 0 .55em !important;
  font-size: clamp(30px,4vw,42px) !important;
}

.ovepd-content h3 {
  margin: 1.5em 0 .5em !important;
  font-size: clamp(24px,3vw,31px) !important;
}

.ovepd-content h4 {
  margin: 1.4em 0 .45em !important;
  font-size: 21px !important;
}

.ovepd-content ul,
.ovepd-content ol {
  margin: 0 0 1.5em 1.2em !important;
  padding: 0 !important;
}

.ovepd-content li {
  margin-bottom: .55em;
  padding-left: .25em;
  font-size: 16px;
  line-height: 1.72;
}

.ovepd-content a {
  color: var(--ovepd-heading);
  text-decoration-color: var(--ovepd-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ovepd-content strong {
  color: var(--ovepd-heading);
  font-weight: 700;
}

.ovepd-content blockquote,
.ovepd-content .wp-block-quote {
  margin: 2.1em 0 !important;
  padding: 20px 24px !important;
  border: 0 !important;
  border-left: 2px solid var(--ovepd-accent) !important;
  background: var(--ovepd-surface);
}

.ovepd-content blockquote p,
.ovepd-content .wp-block-quote p {
  margin: 0 !important;
  color: var(--ovepd-heading) !important;
  font-size: clamp(19px,2.4vw,25px) !important;
  line-height: 1.5 !important;
}

.ovepd-content img {
  max-width: 100%;
  height: auto;
}

.ovepd-content figure {
  margin: 2em 0 !important;
}

.ovepd-content figcaption {
  margin-top: 8px;
  color: #7A746D;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.ovepd-content hr,
.ovepd-content .wp-block-separator {
  width: 100%;
  margin: 2.5em 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ovepd-line) !important;
}

.ovepd-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 16px;
}

.ovepd-content th,
.ovepd-content td {
  padding: 12px 14px;
  border: 1px solid var(--ovepd-line);
  text-align: left;
  vertical-align: top;
}

.ovepd-content th {
  color: var(--ovepd-heading);
  background: var(--ovepd-surface);
}

/* Auto mode: spacing that blends with most themes and Elementor */
.ovepd-auto {
  padding-top: 18px;
  padding-bottom: 45px;
}

/* Keep theme/Elementor featured images visually consistent too */
.single-post .post-thumbnail img,
.single-post .wp-post-image,
.single-post .elementor-widget-theme-post-featured-image img {
  max-width: 100%;
  height: auto;
}

/* Elementor-friendly content selectors */
.single-post .elementor-widget-theme-post-content p {
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .ovepd-auto,
  .ovepd-single {
    width: min(var(--ovepd-max), calc(100% - 32px));
  }

  .ovepd-single {
    padding: 52px 0 68px;
  }

  .ovepd-featured {
    margin-bottom: 30px !important;
  }

  .ovepd-featured__img {
    aspect-ratio: 4 / 3;
  }

  .ovepd-content {
    font-size: 16px;
    line-height: 1.76;
  }

  .ovepd-content p,
  .ovepd-content li,
  .single-post .elementor-widget-theme-post-content p {
    font-size: 16px !important;
  }
}
