/* ==========================================================================
   Page templates: title band and boxed card, archives, single post, team,
   404. Values read from Kadence's CSS and from Elementor templates 15, 17, 237,
   244, 271, 276, 277 (rendered, measured at 1440 and 390).
   ========================================================================== */

/* ---- Kadence title band ------------------------------------------------- */

.pw-title-band { background: var(--pw-bg-subtle); }
.pw-title-band__header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}
.pw-title-band__title { margin: 0; }

/* ---- Kadence content area and boxed card --------------------------------- */

.pw-content-area { margin: var(--pw-sp-xxl) 0; }
@media (max-width: 1024px) { .pw-content-area { margin: 3rem 0; } }
@media (max-width: 767px)  { .pw-content-area { margin: 2rem 0; } }

.pw-entry {
  background: var(--pw-white);
  border-radius: var(--pw-radius-card);
  box-shadow: var(--pw-shadow-card);
}
.pw-entry__wrap { padding: 2rem; }
@media (max-width: 767px) { .pw-entry__wrap { padding: 1.5rem; } }
/* On a phone the card runs 1rem wider than the page edge, as Kadence's did. */
@media (max-width: 719px) {
  .pw-content-area .pw-entry:not(.pw-loopcard) { margin-inline: -1rem; width: auto; }
}
.pw-entry__content { word-break: break-word; }
.pw-entry__content table { word-break: normal; }
.pw-page--full { display: block; }

/* ---- Search form --------------------------------------------------------- */

.pw-noresults > p { margin: 0 0 1em; }
.pw-searchform { position: relative; display: block; }
.pw-searchform__field {
  width: 100%;
  height: 43px;
  padding: .4em 3.5em .4em .5em;
  color: var(--pw-ink-medium);
}
.pw-searchform__submit {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3em;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pw-ink-subtle);
  cursor: pointer;
}
.pw-searchform__submit:hover { color: var(--pw-link); }

/* ---- Pagination ---------------------------------------------------------- */

.pw-pagination { margin-top: 2.5rem; text-align: center; }
.pw-pagination .page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pw-pagination li { margin: 0; }
.pw-pagination a, .pw-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  color: var(--pw-ink);
  text-decoration: none;
}
.pw-pagination a:hover { color: var(--pw-link); }
.pw-pagination .current { font-weight: 700; color: var(--pw-ink-strongest); }

/* ---- Kadence archive grid (category, author, date, search) ---------------- */

.pw-loopgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 720px)  { .pw-loopgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .pw-loopgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pw-loopcard { display: block; margin: 0; }
.pw-loopcard__thumb { position: relative; display: block; height: 0; padding-bottom: 66.67%; overflow: hidden; }
.pw-loopcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-loopcard__body { padding: 2rem; }
@media (max-width: 767px) { .pw-loopcard__body { padding: 1.5rem; } }
.pw-loopcard__tax { margin-bottom: .5em; font-size: 70%; letter-spacing: .05em; text-transform: uppercase; }
.pw-loopcard__tax a { font-weight: 700; text-decoration: none; }
@media (max-width: 719px) { .pw-loopcard__tax { margin-bottom: 1em; } }
.pw-loopcard__title { margin: 0; }
.pw-loopcard__meta { display: flex; flex-wrap: wrap; margin: 1em 0; font-size: 80%; }
.pw-loopcard__meta > span { display: inline-flex; align-items: center; }
.pw-loopcard__meta > span::after {
  content: "";
  display: inline-block;
  width: .25rem; height: .25rem;
  margin: 0 .5rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: .8;
  vertical-align: .1875em;
}
.pw-loopcard__meta > span:last-child::after { display: none; }
.pw-loopcard__meta a { color: inherit; text-decoration: none; }
.pw-loopcard__summary { margin: 1em 0 0; }
.pw-loopcard__summary p { margin: 1em 0; }
.pw-loopcard__more { margin: 0; }
.pw-loopcard__more a {
  color: inherit;
  font-size: 80%;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}
.pw-loopcard__more a:hover { color: var(--pw-link); }

/* ---- Photo banner: testimonials, team, blog -------------------------------- */

.pw-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 40vh;
  padding: 10px 0;
  background: var(--pw-accent) var(--pw-banner-image, none) center center / cover no-repeat;
}
.pw-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pw-secondary);
  opacity: .5;
}
.pw-banner__inner { padding: 0; }
.pw-banner__title {
  margin: 0;
  color: #ffffff;
  line-height: 1;
}
.pw-banner--green { background-color: var(--pw-accent); }
/* The blog band's small line above the heading. */
.pw-banner__eyebrow {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: var(--pw-font-heading);
  font-size: 95px;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 767px) { .pw-banner__eyebrow { font-size: 60px; } }
.pw-banner__title--second { font-size: 48px; font-weight: 500; }
@media (max-width: 767px) { .pw-banner__title--second { font-size: 36px; } }

/* ---- Archive body --------------------------------------------------------- */

.pw-archive { margin: 50px 0; padding: 10px 0; }
.pw-archive > .pw-wrap { padding: 0; }
.pw-archive__none { margin: 0; }
.pw-archive__heading {
  margin: 0;
  color: var(--pw-primary);
  line-height: 1;
}

/* Testimonials: heading a third, quotes two thirds. */
.pw-split { display: flex; flex-wrap: wrap; }
.pw-split__side { flex: 0 1 33.3333%; width: 33.3333%; padding: 10px; }
.pw-split__main { flex: 0 1 66.6666%; width: 66.6666%; padding: 10px; }
@media (max-width: 767px) {
  .pw-split__side, .pw-split__main { flex-basis: 100%; width: 100%; }
}

.pw-posts--quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
@media (min-width: 1025px) { .pw-posts--quotes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px)  { .pw-posts--quotes { grid-template-columns: minmax(0, 1fr); } }
.pw-card--quote { padding: 10px; }
.pw-quote { overflow: hidden; text-align: left; }
.pw-quote__text { margin-bottom: 20px; color: var(--pw-text); font-size: 1.3em; }
.pw-quote__text p { margin: 1em 0; }
.pw-quote__meta { width: 100%; line-height: 1; }
.pw-quote__meta-inner { display: inline-block; }
.pw-quote__details { display: table-cell; vertical-align: middle; }
.pw-quote__name { display: block; color: var(--pw-primary); line-height: 1.5; }

/* Team: three across. */
.pw-posts--people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1024px) { .pw-posts--people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .pw-posts--people { grid-template-columns: minmax(0, 1fr); } }
.pw-card--person { padding: 10px; }
.pw-card__person-link { display: block; text-align: center; text-decoration: none; }
.pw-card__person-link:hover { text-decoration: none; }
.pw-card--person .pw-card__figure { display: inline-block; width: 100%; margin: 0 0 15px; }
/* Elementor drew team photos from a hard-cropped, centred square thumbnail (uploads/elementor/thumbs): same crop here. */
.pw-card--person .pw-card__figure img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }
.pw-card__name { margin: 0; color: var(--pw-primary); font-size: 24px; line-height: 1.5; }
.pw-card__position { margin: 0; color: var(--pw-text); }

/* Blog loop (home.php). */
.pw-posts--loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1024px) { .pw-posts--loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .pw-posts--loop { grid-template-columns: minmax(0, 1fr); } }
.pw-card--loop { display: flex; flex-direction: column; padding: 10px; text-align: center; }
.pw-card--loop .pw-card__image { display: block; margin-bottom: 15px; }
.pw-card--loop .pw-card__image img { width: 100%; height: auto; }
.pw-card--loop .pw-card__title { margin: 0 0 10px; color: var(--pw-primary); font-size: 24px; line-height: 1.5; }
.pw-card--loop .pw-card__excerpt { margin: 0 0 20px; color: var(--pw-text); }
.pw-card--loop .pw-card__action { margin: auto 0 0; }
.pw-card--loop .pw-btn { display: inline-flex; align-items: center; gap: 10px; }

/* ---- Single post (template 15) ------------------------------------------- */

.pw-single { padding: 100px 24px; }
.pw-single__wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}
.pw-single__head { display: flex; flex-direction: column; gap: 32px; width: 100%; }
.pw-single__title { margin: 0; color: var(--pw-primary); line-height: 1; }

.pw-post-info { display: flex; flex-wrap: wrap; margin: 0 -8px; padding: 0; list-style: none; }
.pw-post-info__item { display: flex; align-items: center; margin: 0 8px; padding: 0; color: var(--pw-secondary); }
.pw-post-info__item a { display: flex; align-items: center; color: var(--pw-secondary); text-decoration: none; }
.pw-post-info__item a:hover { color: var(--pw-secondary); text-decoration: none; }
.pw-post-info__icon { flex: none; width: 14px; height: 14px; fill: var(--pw-accent); color: var(--pw-accent); }
.pw-post-info__icon--ink { color: var(--pw-ink); fill: currentColor; }
.pw-post-info__text { padding-left: 5px; }

.pw-single__image { width: 100%; }
.pw-single__img { display: block; width: 100%; height: 500px; object-fit: cover; object-position: center center; }

.pw-single__body {
  display: flex;
  gap: 80px;
  width: 100%;
  padding: 10px;
}
.pw-single__main { display: flex; flex-direction: column; gap: 32px; flex: 0 1 100%; min-width: 0; }
.pw-single__content { color: var(--pw-primary); }
.pw-single__more { display: flex; flex-direction: column; gap: 16px; flex: 0 1 50%; min-width: 0; }
.pw-single__more-title { margin: 0; color: var(--pw-text); font-weight: 600; line-height: 1; }

@media (max-width: 1024px) {
  .pw-single { padding: 80px 16px; }
  .pw-single__wrap { gap: 0; }
  .pw-single__head { gap: 16px; }
  .pw-single__body { margin-top: 0; }
  .pw-single__main { gap: 16px; }
}
@media (max-width: 767px) {
  .pw-single { padding: 48px 16px; }
  .pw-single__wrap { gap: 24px; }
  .pw-single__body { flex-wrap: wrap; }
  .pw-single__main, .pw-single__more { flex-basis: 100%; width: 100%; }
  .pw-single__more { gap: 0; }
  .pw-single__more-title { margin-bottom: 16px; }
}

/* Share buttons: Elementor's "flat" skin, icon only, official colours. */
.pw-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pw-share li { margin: 0; }
.pw-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: #ffffff;
  text-decoration: none;
}
.pw-share__btn:hover { color: #ffffff; filter: saturate(1.5) brightness(1.2); text-decoration: none; }
.pw-share__btn--facebook { background: #3b5998; }
.pw-share__btn--twitter  { background: #1da1f2; }
.pw-share__btn--linkedin { background: #0077b5; }
.pw-share__btn svg { width: 17px; height: 17px; }
.pw-share__btn:focus-visible { outline-color: var(--pw-secondary); outline-offset: 3px; }

/* "more posts:" cards: Elementor's classic skin, thumbnail on the left. */
.pw-posts--classic { display: flex; flex-direction: column; gap: 35px; }
.pw-card--classic { display: flex; }
.pw-card__thumb {
  position: relative;
  display: block;
  flex: none;
  width: 50%;
  height: 0;
  padding-bottom: 33%;
  margin-right: 20px;
  overflow: hidden;
}
.pw-card__thumb img { position: absolute; top: 50%; left: 50%; width: 100%; height: auto; min-width: 100%; min-height: 100%; max-width: calc(100% + 1px); object-fit: cover; transform: translate(-50%, -50%); }
.pw-card--classic .pw-card__text { min-width: 0; flex: 1 1 auto; }
.pw-card--classic .pw-card__title { margin: 0 0 8px; color: var(--pw-primary); font-size: 18px; line-height: 1.5; }
.pw-card--classic .pw-card__title a { color: var(--pw-primary); }
.pw-card__meta {
  margin: 0 0 24px;
  color: var(--pw-text);
  font-family: var(--pw-font-meta);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.pw-card__meta span + span::before { content: "///"; margin: 0 2px; }
.pw-card__more { color: var(--pw-accent); font-size: 12px; text-decoration: none; }
.pw-card__more:hover { color: var(--pw-accent); text-decoration: underline; }
@media (max-width: 767px) {
  /* The old layout kept the thumbnail at the side but made it 100% wide, which
     pushed the text off screen. Here the card stacks. */
  .pw-card--classic { flex-direction: column; }
  .pw-card__thumb { width: 100%; padding-bottom: 50%; margin: 0 0 20px; }
  .pw-card--classic .pw-card__title { font-size: 16px; }
}

/* ---- Team member (template 271) -------------------------------------------- */

.pw-person { margin: 50px 0; padding: 10px 0; }
.pw-person__wrap { display: flex; flex-wrap: wrap; padding: 0; }
.pw-person__main { flex: 0 1 66.6666%; width: 66.6666%; display: flex; flex-direction: column; gap: 20px; padding: 10px; min-width: 0; }
.pw-person__side { flex: 0 1 33.3333%; width: 33.3333%; padding: 10px; min-width: 0; }
@media (max-width: 767px) {
  .pw-person__main, .pw-person__side { flex-basis: 100%; width: 100%; }
}
.pw-person__name { margin: 0; color: var(--pw-primary); line-height: 1; }
.pw-person__position { margin: 0; color: var(--pw-primary); line-height: 1; }
.pw-person__bio { color: var(--pw-text); }
.pw-person__card { display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.pw-person__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }
.pw-person__contact-title { margin: 0; color: var(--pw-primary); line-height: 1; }
.pw-person__contact { margin: 0; padding: 0; list-style: none; }
.pw-person__contact li:not(:last-child) { padding-bottom: 5px; }
.pw-person__contact li:not(:first-child) { margin-top: 5px; }
.pw-person__contact a { display: flex; align-items: center; color: var(--pw-secondary); text-decoration: none; }
.pw-person__contact a:hover { color: var(--pw-secondary); text-decoration: underline; }
.pw-person__icon { flex: none; width: 14px; height: 14px; margin-right: 3.5px; color: var(--pw-primary); }
.pw-person__contact-text { padding-left: 5px; min-width: 0; overflow-wrap: anywhere; } /* a long email in the narrow side column wraps instead of pushing the page wider (the old page spilled it past the edge) */

/* ---- 404 (template 17) ------------------------------------------------------ */

.pw-notfound {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px;
  background: var(--pw-secondary);
}
.pw-notfound__inner { display: flex; justify-content: space-between; align-items: center; gap: 80px; width: 100%; max-width: 1280px; margin-inline: auto; }
.pw-notfound__frame { flex: 1 1 100%; width: 100%; padding: 0 10%; display: flex; align-items: stretch; }
.pw-notfound__box {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 10px;
  border-inline: 1px solid var(--pw-ink);
}
.pw-notfound__title { margin: 0; color: var(--pw-primary); line-height: 1; text-align: center; }
.pw-notfound__code { margin: 0; width: 100%; color: var(--pw-primary); line-height: 1; text-align: center; }
.pw-notfound__btn { border-color: #ffffff; align-self: flex-start; }
@media (max-width: 1024px) {
  .pw-notfound { padding: 0 16px; }
  .pw-notfound__inner { gap: 32px; }
  .pw-notfound__frame { padding: 0 5%; }
  .pw-notfound__box { gap: 20px; padding: 5% 3%; }
}
@media (max-width: 767px) {
  .pw-notfound { min-height: 0; padding: 48px 16px; }
  .pw-notfound__inner { flex-direction: column; justify-content: center; }
  .pw-notfound__box { gap: 15px; padding: 15% 5%; justify-content: space-evenly; }
  .pw-notfound__code { margin: 10% 0; }
}
