/* =========================================================
   PAGE: NEWS
   ========================================================= */

.page-news {
  background: var(--bg);
  color: var(--brand);
}

/* News listing wrapper */
.news-listing {
  padding: 60px 0 0;
  background: var(--bg);
}

/* ---------- Filter tabs + sort ---------- */
.news-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0px 0 100px;
}

.news-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.news-tabs button {
  appearance: none;
  background: rgba(var(--green-rgb), 0.09);
  border: 0;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(14px, 2.2vw, 24px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.news-tabs button:hover {
  background: rgba(var(--brand-rgb), 0.1);
}

.news-tabs button.is-active {
  background: var(--green);
  color: var(--bg);
}

.news-sort button {
  appearance: none;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--brand);
  font-family: var(--sans);
  font-size: clamp(14px, 1.8vw, 20px);
  font-style: normal;
  padding-bottom: 10px;
  font-weight: 300;
  line-height: normal;
  border-bottom: 1px solid rgba(var(--green-rgb), 0.32);
}

.news-sort button span {
  margin-left: 4px;
  color: rgba(var(--green-rgb), 0.32);
  font-family: var(--sans);
  font-size: clamp(14px, 1.8vw, 20px);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.news-sort .cnm-icon {
  width: 14px;
  height: 14px;
}

/* ---------- Card grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px 30px;
  padding-bottom: 90px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 29px;
  position: relative;
}

.news-card .img-wrap {
  position: relative;
  aspect-ratio: 799 / 637;
  overflow: hidden;
  background: rgba(var(--brand-rgb), 0.05);
}

.news-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .img-wrap img {
  transform: scale(1.04);
}

/* Hover corner half-circles — same pattern as property-card */
.news-card .img-wrap::before,
.news-card .img-wrap::after,
.news-card .img-wrap > .corner {
  content: '';
  position: absolute;
  width: clamp(80px, 12vw, 200px);
  aspect-ratio: 202 / 179;
  background: url('../img/half-circle.svg') center / contain no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  display: block;
}
.news-card .img-wrap::before { top: 0; right: 0; }
.news-card .img-wrap::after  { bottom: 0; left: 0; transform: rotate(180deg); }
.news-card .img-wrap > .corner.tl { top: 0; left: 0; transform: scaleX(-1); }
.news-card .img-wrap > .corner.br { bottom: 0; right: 0; transform: scaleY(-1); }
.news-card:hover .img-wrap::before,
.news-card:hover .img-wrap::after,
.news-card:hover .img-wrap > .corner { opacity: 1; }

.news-card .info {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

/* Stretched link — entire card is clickable via the existing .info anchor */
.news-card .info::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-card .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.news-card .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: 999px;
  line-height: 1.2;
  background: rgba(var(--green-rgb), 0.09);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(14px, 2vw, 24px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.news-card .pill-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  display: block;
}

.news-card .pill-author {
  font-style: italic;
}

.news-card__title {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 50px);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

/* ---------- Mid-page banner (light blue, between rows) ---------- */
.news-banner {
  background: var(--bg-blue);
  color: var(--brand);
  padding: 110px 0;
  margin: 0 0;
}

.news-banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  margin: 0 auto;
}

.news-banner-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 35px;
  color: var(--brand);
}

.news-banner-left .park27-wordmark {
  color: var(--brand);
  width: clamp(220px, 16vw, 300px);
}

.news-banner-left .park27-divider {
  color: var(--brand);
  width: 240px;
  height: 50px;
}

.news-banner-left address {
  color: var(--brand);
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  font-weight: 400;
  line-height: 1.23;
}

.news-banner-right {
  display: flex;
  justify-content: flex-end;
}
.news-banner-right a {
    color: #6E2928!important;
    border-color: #6E2928!important;
}
.news-banner-right .btn-layout {
  min-width: 220px;
}
.news-banner-right .btn-layout:hover {
  color:#B6CCFF!important;
}

/* ---------- Pagination spacing (uses .listing-pagination from exclusive-listings.css) ---------- */
.page-news .listing-pagination {
  background: var(--bg);
  padding: 30px 0 130px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1399px) {
  .news-grid {
    gap: 70px 24px;
  }

  .news-banner {
    padding: 90px 0;
  }
}

@media (max-width: 991px) {
  .news-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .news-grid {
    gap: 60px 20px;
  }

  .news-banner-inner {
    flex-direction: column;
    gap: 50px;
  }

  .news-banner-right {
    justify-content: center;
  }

  .news-banner {
    padding: 80px 0;
    /* margin-bottom: 70px; */
  }
}

@media (max-width: 767px) {
  .news-listing {
    padding-top: 40px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
    padding-bottom: 60px;
  }

  .news-card {
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
  }

  .news-card .meta {
    gap: 8px;
  }

  .news-card .pill {
    padding: 6px 12px;
  }

  .news-card__title {
    margin-top: 10px;
  }

  .news-banner {
    padding: 60px 0;
    /* margin-bottom: 50px; */
  }

  .news-banner-inner {
    gap: 40px;
  }

  .news-banner-right .btn-layout {
    min-width: 0;
    width: 100%;
  }

  .page-news .listing-pagination {
    padding: 20px 0 80px;
  }
}

@media (max-width: 575px) {
  .news-tabs {
    gap: 8px;
  }

  .news-tabs button {
    padding: 10px 18px;
    font-size: 0.875rem;
  }

  .news-card .meta {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .news-card .meta .date::before {
    display: none;
  }
}

/* =========================================================
   PAGE: NEWS DETAIL
   Article hero + body + related articles.
   Banner / Testimonials / Contact handled by shared partials.
   ========================================================= */

.page-news-detail {
  background: var(--bg);
}

/* ---------- Hero (maroon) ---------- */
.article-hero {
  background: var(--brand);
  color: var(--bg);
  padding: 90px 0 90px;
  overflow: hidden;
}

.article-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 73px 30px;
}

.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--bg);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.article-back__icon {
  width: 41px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.article-back a:hover { opacity: 0.85; }

.article-hero__title {
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.4vw, 4.8125rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.article-hero__body {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 60px;
  align-items: center;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 24px;
  line-height: normal;
}

.article-meta p { margin: 0; }

/* Divider — reuses .park27-divider-star (footer pattern: line — star — line).
   Cream color for the maroon hero, fills the meta column. */
.article-meta__divider {
  max-width: 760px;
  color: var(--bg);
  margin: 14px 0 40px;
}

.article-share {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-self: center;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s;
}

.article-share a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.article-share img,
.article-share .cnm-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.article-share .cnm-icon {
  background-color: var(--bg);
}

.article-hero__image {
  position: relative;
  aspect-ratio: 1164 / 500;
  width: 100%;
  margin: 0;
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Body (light) ---------- */
.article-body {
  background: var(--bg);
  padding: 120px 0 130px;
}

.article-body-inner {
  display: grid;
  grid-template-columns: 380px minmax(0, 1085px);
  gap: 184px;
  justify-content: center;
}

/* Posts without h2/h3 headings render no TOC — single-post.php tags them
   with .article-body-inner--no-toc so the article fills the full width
   instead of being squashed into the 380px TOC column. */
.article-body-inner--no-toc {
  grid-template-columns: minmax(0, 1085px);
  gap: 0;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  align-self: start;
}

.article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: toc;
}

.article-toc__list li {
  border-top: 1px solid rgba(var(--ink-rgb), 0.18);
  padding-top: 18px;
}

.article-toc__list a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.article-toc__list a:hover { color: var(--brand); }

.article-toc__num {
  font-family: var(--serif);
  font-weight: 400;
  flex-shrink: 0;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  color: var(--ink);
  max-width: 1085px;
}

.article-content > * { margin: 0; }

.article-content__lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.3vw, 2.5rem);
  line-height: 1.23;
  color: var(--ink);
}

.article-content__intro,
.article-content__closing,
.article-content__section p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.article-content__section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.article-content__section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.3vw, 2.5rem);
  line-height: 1.23;
  color: var(--ink);
}

.article-content__facts h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 2.1875rem);
  line-height: 1.23;
  color: var(--ink);
  margin-bottom: 24px;
}

.article-content__facts ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Related Articles (light blue) — uses .news-grid + .news-card ---------- */
.related-articles {
  background: var(--bg-blue);
  padding: 80px 0 80px;
}

.related-articles__heading {
  margin: 0 0 70px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 44px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Related cards reuse .news-card structure unchanged — same display as the
   main news listing (half-circle hover, pills, title, stretched-link). */
.related-articles .news-grid {
  padding-bottom: 0;
  gap: 50px;
}

/* ---------- Banner-sell — maroon repaint via themable --banner-* vars ---------- */
.page-news-detail .banner-sell {
  --banner-bg: var(--brand);
  --banner-fg: var(--bg);
  --banner-accent: var(--bg);
  --banner-accent-fg: var(--brand);
  padding: 120px 0;
}

/* Sticky banner-sell parallax bounding. The maroon background fills any
   tiny seam between sections so the banner doesn't bleed through. */
.page-news-detail .sticky-stack--sell {
  position: relative;
  background: var(--brand);
}

/* Sections inside the stack paint above the sticky banner during scroll.
   Keep contact-form's original position: sticky so it stacks with banner-sell. */
.page-news-detail .sticky-stack--sell .testimonials {
  position: relative;
  z-index: 2;
}

.page-news-detail .sticky-stack--sell .contact-form {
  z-index: 2;
}

/* =========================================================
   NEWS DETAIL — RESPONSIVE
   ========================================================= */
@media (max-width: 1399px) {
  .article-body-inner { gap: 100px; }
  .article-content__lede { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
}

@media (max-width: 1199px) {
  .article-hero { padding: 80px 0 70px; }
  .article-body { padding: 90px 0 100px; }
  .related-articles { padding: 90px 0 100px; }

  .article-body-inner {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 60px;
    justify-content: stretch;
  }
}

@media (max-width: 991px) {
  .article-hero { padding: 60px 0 60px; }

  .article-hero__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-meta__divider { max-width: 360px; }

  .article-body { padding: 70px 0 80px; }

  .article-body-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .article-toc {
    position: static;
    order: -1;
  }

  .article-toc__list { gap: 18px; }

  .related-articles { padding: 70px 0 80px; }

  .related-articles__heading { margin-bottom: 35px; }
}

@media (max-width: 767px) {
  .article-hero { padding: 40px 0 50px; }
  .article-hero-inner { gap: 40px; }
  /* Frame + star bar off on mobile — same treatment as the framed photos
     on about-us / for-buyers / for-sellers. */
  .article-hero__image-frame,
  .article-hero__image-marker { display: none; }
  .article-content { gap: 35px; }
  .article-content__facts ul { gap: 14px; }
  .article-share a { width: 32px; height: 32px; }
  .article-share img,
  .article-share .cnm-icon { width: 16px; height: 16px; }
}

@media (max-width: 575px) {
  .article-hero__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .article-back a { font-size: 1rem; gap: 14px; }
  .article-back__icon { width: 32px; }
}


/* =========================================================
   NEWSLETTER BANNER — wine scheme (client 2026-07-07).
   Was blue (--bg-blue) with brand-colored text; now matches the site-wide
   wine banner standard: brand bg, cream text/wordmark/divider, green hover.
   Appended last so it wins the equal-specificity blue rules above.
   ========================================================= */
.news-banner {
  background: var(--brand);
  color: var(--bg);
}
.news-banner-left,
.news-banner-left .park27-wordmark,
.news-banner-left .park27-divider,
.news-banner-left address {
  color: var(--bg);
}
.news-banner .btn-layout.hollow-dark {
  /* !important: base.css button color rules otherwise keep the dark label */
  color: var(--bg) !important;
  border-color: var(--bg) !important;
  background: transparent;
}
.news-banner .btn-layout.hollow-dark:hover,
.news-banner .btn-layout.hollow-dark:focus-visible {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: var(--bg) !important;
}
