/* Water-Sound: News. Single posts (single-post.php), the posts page /news/ (home.php) and the
   builder-page "Latest from" row (templates/single-builder-page-template.php).
   LOCAL OPS HARDENING (2026-12-01): ours, not dev-team. Enqueued only by mu-plugins/wso-news.php on those
   three views, ?ver=<filemtime>. Every selector is .wso-* scoped; theme classes (.btn, .h2_main, .head_center,
   .defualt-page-content) are reused as they are and only adjusted inside .wso-* containers.
   Palette and type are the theme's own: #4c2f48 ink, #434343 text, Arquitecta headings, Manrope body,
   20px image radius, 6px buttons. */

/* ---------- builder chips (cards, single post) ---------- */
.wso-news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wso-news-chips li {
  margin: 0;
  list-style: none;
}
.wso-news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid #4c2f4833;
  border-radius: 999px;
  background: #4c2f480f;
  color: #4c2f48;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.wso-news-chip:hover {
  background: #4c2f48;
  border-color: #4c2f48;
  color: #fff;
}

.wso-news-icon {
  flex: none;
  transition: translate 0.25s ease;
}

/* ---------- cards + grids ---------- */
.wso-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 30px;
}
.wso-news-grid--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.wso-news-grid--center > .wso-news-card {
  flex: 0 1 calc((100% - 60px) / 3);
}
.wso-news-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.wso-news-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: #4c2f480f;
}
.wso-news-card__media picture,
.wso-news-card__media img,
.wso-news-card__blank {
  display: block;
  width: 100%;
  height: 100%;
}
.wso-news-card__media img {
  object-fit: cover;
  object-position: center;
  transition: scale 0.4s ease;
}
.wso-news-card:hover .wso-news-card__media img {
  scale: 1.06;
}
.wso-news-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.wso-news-card__date {
  font-size: 15px;
  line-height: 1.3;
  color: #434343;
}
.wso-news-card__title {
  margin: 0;
  font-family: "Arquitecta", serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: #4c2f48;
  text-wrap: balance;
}
.wso-news-card__title a {
  color: inherit;
  text-decoration: none;
}
.wso-news-card__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.wso-news-card__body .wso-news-chips {
  margin-top: 2px;
}

.wso-news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  color: #4c2f48;
  text-decoration: none;
}
.wso-news-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wso-news-more:hover .wso-news-icon {
  translate: 3px 0;
}

/* ---------- single post ---------- */
.wso-article-page {
  padding-top: 50px;
}
.wso-article__hero {
  margin: 0 0 56px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 20px;
  background: #4c2f480f;
}
.wso-article__hero picture,
.wso-article__hero img {
  display: block;
  width: 100%;
  height: 100%;
}
.wso-article__hero img {
  object-fit: cover;
  object-position: center;
}
.wso-article__head,
.wso-article__body {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.wso-article__title {
  margin: 0 0 22px;
  font-family: "Arquitecta", serif;
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
  color: #4c2f48;
  text-wrap: balance;
}
.wso-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #4c2f4826;
  font-size: 16px;
  color: #434343;
}
.wso-article__section {
  font-weight: 700;
  color: #4c2f48;
  text-decoration: none;
}
.wso-article__section:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wso-article__body {
  padding-bottom: 90px;
}
.wso-article__body::after {
  content: "";
  display: table;
  clear: both;
}
.wso-article__body > :first-child {
  margin-top: 0;
}
.wso-article__body p {
  line-height: 1.65;
}
.wso-article__body h2 {
  margin-top: 44px;
  font-family: "Arquitecta", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
}
.wso-article__body h3 {
  margin-top: 36px;
  font-family: "Arquitecta", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #4c2f48;
}
.wso-article__body img {
  height: auto;
}
.wso-article__body .wp-caption {
  max-width: 100%;
}
.wso-article__body .wp-caption img {
  display: block;
  border-radius: 12px;
}
.wso-article__body .wp-caption-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #434343;
}
.wso-article__body .alignleft {
  float: left;
  margin: 8px 32px 20px 0;
}
.wso-article__body .alignright {
  float: right;
  margin: 8px 0 20px 32px;
}
.wso-article__body .aligncenter {
  display: block;
  margin: 0 auto 24px;
}

/* CTA band */
.wso-article-cta {
  padding: 72px 0;
  background: #4c2f48;
  color: #fff;
}
.wso-article-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px 64px;
  max-width: 1180px;
  margin: 0 auto;
}
.wso-article-cta__title {
  margin: 0 0 14px;
  font-family: "Arquitecta", serif;
  font-weight: 700;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}
.wso-article-cta__copy p {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
}
.wso-article-cta__lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.wso-article-cta__lines li {
  margin: 0;
  list-style: none;
}
.wso-article-cta__lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
.wso-article-cta__lines a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wso-article-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}
.wso-article-cta a.btn.lt:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.wso-article-cta a.wso-btn-ghost {
  background: transparent;
  border-color: #ffffffb3;
  color: #fff;
}
.wso-article-cta a.wso-btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #4c2f48;
}
.wso-article-cta a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* related posts */
.wso-news-related {
  padding: 90px 0 100px;
}
.wso-news-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 44px;
}
.wso-news-related__head .h2_main {
  margin: 0;
  color: #4c2f48;
}

/* ---------- /news/ ---------- */
.wso-news-archive {
  padding: 70px 0 100px;
}
.wso-news-archive__head {
  max-width: 760px;
  margin-bottom: 36px;
}
.wso-news-archive__title {
  margin: 0 0 14px;
  font-family: "Arquitecta", serif;
  font-weight: 700;
  font-size: clamp(40px, 4vw, 55px);
  line-height: 1.05;
  color: #4c2f48;
}
.wso-news-archive__intro p {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  color: #434343;
}
.wso-news-filter {
  margin: 0 0 50px;
}
.wso-news-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wso-news-filter li {
  margin: 0;
  list-style: none;
}
.wso-news-filter__chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #4c2f4840;
  border-radius: 999px;
  background: #fff;
  color: #4c2f48;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.wso-news-filter__chip:hover {
  border-color: #4c2f48;
  background: #4c2f480f;
}
.wso-news-filter__chip.is-active {
  border-color: #4c2f48;
  background: #4c2f48;
  color: #fff;
}
.wso-news-empty {
  padding: 56px 32px;
  border-radius: 20px;
  background: #f9f9f9;
  text-align: center;
}
.wso-news-empty p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #434343;
}
.wso-news-empty .wso-news-empty__title {
  margin-bottom: 10px;
  font-family: "Arquitecta", serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: #4c2f48;
}
.wso-news-empty a {
  font-weight: 600;
  color: #4c2f48;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wso-news-pagination {
  margin-top: 64px;
}
.wso-news-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wso-news-pagination li {
  margin: 0;
  list-style: none;
}
.wso-news-pagination li > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #4c2f4833;
  border-radius: 6px;
  font-weight: 600;
  color: #4c2f48;
  text-decoration: none;
}
.wso-news-pagination li > a.page-numbers:hover {
  background: #4c2f480f;
}
.wso-news-pagination li > .page-numbers.current {
  border-color: #4c2f48;
  background: #4c2f48;
  color: #fff;
}
.wso-news-pagination li > .page-numbers.dots {
  border-color: transparent;
}

/* ---------- builder page row ---------- */
.wso-builder-news {
  padding: 0 0 100px;
}
.wso-builder-news .head_center {
  margin-bottom: 50px;
}
.wso-builder-news .wso-builder-news__more {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* ---------- breakpoints (the theme's: 1025 / 768 / 575) ---------- */
@media (max-width: 1025px) {
  .wso-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .wso-news-grid--center > .wso-news-card {
    flex-basis: calc((100% - 24px) / 2);
  }
  .wso-article-cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .wso-news-related {
    padding: 70px 0 80px;
  }
  .wso-builder-news {
    padding-bottom: 80px;
  }
  .wso-news-archive {
    padding: 50px 0 80px;
  }
}

@media (max-width: 575px) {
  .wso-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .wso-news-grid--center > .wso-news-card {
    flex-basis: 100%;
  }
  .wso-news-card__title {
    font-size: 24px;
  }
  .wso-article-page {
    padding-top: 24px;
  }
  .wso-article__hero {
    aspect-ratio: 4 / 3;
    margin-bottom: 32px;
    border-radius: 14px;
  }
  .wso-article__meta {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }
  .wso-article__body {
    padding-bottom: 60px;
  }
  .wso-article__body h2 {
    font-size: 27px;
  }
  .wso-article__body .alignleft,
  .wso-article__body .alignright {
    float: none;
    margin: 0 0 24px;
  }
  .wso-article__body .wp-caption {
    width: auto !important;
  }
  .wso-article-cta {
    padding: 52px 0;
  }
  .wso-article-cta__actions {
    max-width: none;
  }
  .wso-news-related__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .wso-news-archive {
    padding: 36px 0 64px;
  }
  .wso-news-filter {
    margin-bottom: 36px;
  }
  .wso-builder-news {
    padding-bottom: 60px;
  }
  .wso-news-empty {
    padding: 40px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wso-news-card__media img,
  .wso-news-icon,
  .wso-news-chip,
  .wso-news-filter__chip {
    transition: none;
  }
  .wso-news-card:hover .wso-news-card__media img {
    scale: 1;
  }
  .wso-news-more:hover .wso-news-icon {
    translate: none;
  }
}
