/*
Theme Name: BYPOA Main
Theme URI: https://www.brickyardplantation.org/
Author: BYPOA
Description: Main Brickyard Plantation theme for the public neighborhood site.
Version: 0.1.0
Requires at least: 6.0
*/

:root {
  --bypoa-ink: #31472d;
  --bypoa-navy: #4d6f46;
  --bypoa-navy-deep: #2f472c;
  --bypoa-cream: #f6f1e5;
  --bypoa-sand: #d8c9a2;
  --bypoa-gold: #a6905c;
  --bypoa-marsh: #6f845e;
  --bypoa-shell: 1180px;
  --bypoa-surface: #fbf8ef;
  --bypoa-line: rgba(49, 71, 45, 0.12);
}

body {
  background: var(--bypoa-surface);
  color: var(--bypoa-ink);
}

.bypoa-masthead-shell {
  padding: 14px 20px 10px;
  background:
    linear-gradient(180deg, #f8f4ea, #efe7d7);
  width: 100%;
  border-bottom: 1px solid rgba(49, 71, 45, 0.08);
}

.bypoa-masthead {
  max-width: var(--bypoa-shell);
  margin: 0 auto;
  color: var(--bypoa-ink);
  padding: 18px 24px;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(49, 71, 45, 0.08);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(49, 71, 45, 0.08);
}

.bypoa-masthead__top {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding-bottom: 16px;
}

.bypoa-brand {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.bypoa-brand__logo {
  width: 100%;
  max-width: 330px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.bypoa-masthead__controls {
  display: grid;
  min-width: 0;
  justify-items: end;
  gap: 14px;
}

.bypoa-masthead__intro {
  max-width: 28rem;
  text-align: right;
}

.bypoa-masthead__eyebrow,
.bypoa-masthead__title,
.bypoa-masthead__text {
  margin: 0;
}

.bypoa-masthead__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(49, 71, 45, 0.58);
}

.bypoa-masthead__title {
  margin-top: 6px;
  font-size: clamp(1.45rem, 1.95vw, 2.15rem);
  line-height: 1.02;
  color: var(--bypoa-navy-deep);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
}

.bypoa-masthead__text {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(49, 71, 45, 0.74);
}

.bypoa-masthead__portal {
  min-width: 160px;
  font-size: 0.92rem;
  padding-left: 18px;
  padding-right: 18px;
}

.bypoa-chip,
.bypoa-button,
.bypoa-link-card,
.bypoa-feature-card {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bypoa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(49, 71, 45, 0.14);
  text-decoration: none;
  color: var(--bypoa-navy);
  background: rgba(255, 252, 246, 0.88);
}

.bypoa-chip--accent {
  border-color: transparent;
  background: var(--bypoa-gold);
  color: var(--bypoa-navy-deep);
  font-weight: 700;
}

.bypoa-chip:hover,
.bypoa-chip:focus-visible,
.bypoa-button:hover,
.bypoa-button:focus-visible,
.bypoa-nav a:hover,
.bypoa-nav a:focus-visible,
.bypoa-link-card:hover,
.bypoa-link-card:focus-visible,
.bypoa-feature-card:hover,
.bypoa-feature-card:focus-visible {
  transform: translateY(-1px);
}

.bypoa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(49, 71, 45, 0.14);
  position: relative;
  justify-content: flex-start;
}

.bypoa-nav--simple {
  gap: 26px;
}

.bypoa-nav--simple .bypoa-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(49, 71, 45, 0.92);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.bypoa-nav--simple .bypoa-nav__link:hover,
.bypoa-nav--simple .bypoa-nav__link:focus-visible {
  color: var(--bypoa-navy-deep);
}

.bypoa-nav__item {
  position: relative;
}

.bypoa-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: rgba(49, 71, 45, 0.92);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.bypoa-nav__trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(49, 71, 45, 0.6);
  border-bottom: 1px solid rgba(49, 71, 45, 0.6);
  transform: rotate(45deg) translateY(-1px);
}

.bypoa-nav__trigger--plain::after {
  display: none;
}

.bypoa-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 254px;
  padding: 10px 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 239, 1));
  border: 1px solid rgba(49, 71, 45, 0.08);
  box-shadow: 0 22px 46px rgba(49, 71, 45, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.bypoa-nav__menu a {
  display: block;
  padding: 11px 18px;
  color: var(--bypoa-ink);
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  font-size: 0.95rem;
}

.bypoa-nav__menu a:hover,
.bypoa-nav__menu a:focus-visible {
  background: rgba(49, 71, 45, 0.05);
  color: var(--bypoa-navy-deep);
}

.bypoa-nav__subitem {
  position: relative;
}

.bypoa-nav__submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  color: var(--bypoa-ink);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.bypoa-nav__submenu-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(49, 71, 45, 0.6);
  border-right: 1px solid rgba(49, 71, 45, 0.6);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.bypoa-nav__submenu-trigger:hover,
.bypoa-nav__submenu-trigger:focus-visible {
  background: rgba(49, 71, 45, 0.05);
  color: var(--bypoa-navy-deep);
}

.bypoa-nav__submenu {
  position: absolute;
  top: -10px;
  left: calc(100% - 10px);
  min-width: 240px;
  padding: 10px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 239, 1));
  border: 1px solid rgba(49, 71, 45, 0.08);
  box-shadow: 0 22px 46px rgba(49, 71, 45, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 21;
}

.bypoa-nav__subitem:hover .bypoa-nav__submenu,
.bypoa-nav__subitem:focus-within .bypoa-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.bypoa-nav__item:hover .bypoa-nav__menu,
.bypoa-nav__item:focus-within .bypoa-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bypoa-nav__item:nth-last-child(-n+2) .bypoa-nav__menu {
  left: auto;
  right: 0;
}

.bypoa-chip:hover {
  background: rgba(49, 71, 45, 0.05);
}

.bypoa-frontpage {
  background:
    linear-gradient(180deg, #f7f2e7 0, #f1eadc 230px, #fbf8ef 231px);
}

.bypoa-page {
  background:
    linear-gradient(180deg, #f7f2e7 0, #f1eadc 200px, #fbf8ef 201px);
}

.bypoa-hero {
  padding: 18px 20px 38px;
}

.bypoa-hero__inner,
.bypoa-section__inner,
.bypoa-footer__inner {
  max-width: var(--bypoa-shell);
  margin: 0 auto;
}

.bypoa-hero__inner {
  padding: 42px 40px;
  border-radius: 24px;
  color: var(--bypoa-ink);
  border: 1px solid rgba(47, 71, 44, 0.1);
  background:
    linear-gradient(115deg, rgba(41, 64, 37, 0.86) 0%, rgba(64, 95, 57, 0.74) 46%, rgba(64, 95, 57, 0.36) 100%),
    linear-gradient(180deg, rgba(43, 59, 34, 0.14), rgba(43, 59, 34, 0.54)),
    url("/wp-content/themes/bypoa-main/assets/clubhouse-hero.jpg");
  background-size: cover;
  background-position: center center;
  box-shadow: 0 22px 54px rgba(47, 71, 44, 0.2);
}

.bypoa-hero--photo .bypoa-hero__inner {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(47, 71, 44, 0.2);
}

.bypoa-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.bypoa-hero__eyebrow,
.bypoa-section__eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bypoa-gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.bypoa-hero__title,
.bypoa-section__title {
  margin: 0;
  color: var(--bypoa-ink);
  line-height: 1.04;
}

.bypoa-hero--photo .bypoa-hero__title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.bypoa-hero__title {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
}

.bypoa-hero__text,
.bypoa-section__text {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(49, 71, 45, 0.9);
}

.bypoa-hero--photo .bypoa-hero__text {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.9);
}

.bypoa-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bypoa-hero__stat {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bypoa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.bypoa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.bypoa-button--solid {
  color: var(--bypoa-navy-deep);
  background: var(--bypoa-sand);
}

.bypoa-button--ghost {
  color: var(--bypoa-navy);
  border: 1px solid rgba(49, 71, 45, 0.18);
  background: rgba(49, 71, 45, 0.03);
}

.bypoa-hero--photo .bypoa-button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.bypoa-panel {
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: rgba(49, 77, 46, 0.76);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.bypoa-panel__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 196, 160, 0.86);
  font-weight: 700;
}

.bypoa-panel__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--bypoa-cream);
}

.bypoa-panel__text {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.bypoa-panel__links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bypoa-panel__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}

.bypoa-panel__links a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bypoa-section {
  padding: 18px 20px 24px;
}

.bypoa-page-hero {
  padding: 18px 20px 12px;
}

.bypoa-page-hero__inner,
.bypoa-page-section__inner {
  max-width: var(--bypoa-shell);
  margin: 0 auto;
}

.bypoa-page-hero__inner {
  padding: 34px 36px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(111, 132, 94, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.99));
  border: 1px solid rgba(49, 71, 45, 0.08);
  box-shadow: 0 18px 36px rgba(49, 71, 45, 0.06);
}

.bypoa-page-hero__eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bypoa-gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.bypoa-page-hero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.05;
  color: var(--bypoa-ink);
}

.bypoa-page-hero__text {
  margin: 16px 0 0;
  max-width: 48rem;
  line-height: 1.65;
  color: rgba(49, 71, 45, 0.86);
}

.bypoa-page-section {
  padding: 14px 20px 26px;
}

.bypoa-page-section--soft {
  background: var(--bypoa-surface);
}

.bypoa-page-grid {
  max-width: var(--bypoa-shell);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.bypoa-page-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bypoa-page-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bypoa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bypoa-gallery-grid--full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bypoa-gallery-card,
.bypoa-photo-band__item {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--bypoa-line);
  box-shadow: 0 16px 32px rgba(49, 71, 45, 0.06);
}

.bypoa-gallery-card__link {
  display: block;
  cursor: zoom-in;
}

.bypoa-gallery-card img,
.bypoa-photo-band__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bypoa-gallery-card img {
  aspect-ratio: 4 / 3;
}

.bypoa-gallery-card figcaption {
  padding: 14px 16px 16px;
  font-size: 0.94rem;
  color: rgba(49, 71, 45, 0.82);
}

.bypoa-gallery-grid--full .bypoa-gallery-card figcaption {
  display: none;
}

.bypoa-gallery-card__title,
.bypoa-gallery-card__meta {
  display: block;
}

.bypoa-gallery-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bypoa-ink);
}

.bypoa-gallery-card__meta {
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(49, 71, 45, 0.76);
}

.bypoa-lightbox-open {
  overflow: hidden;
}

.bypoa-lightbox[hidden] {
  display: none;
}

.bypoa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(24, 33, 24, 0.82);
  backdrop-filter: blur(6px);
}

.bypoa-lightbox__dialog {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
}

.bypoa-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.bypoa-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.bypoa-lightbox__close:hover,
.bypoa-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.bypoa-photo-band {
  max-width: var(--bypoa-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bypoa-photo-band__item img {
  aspect-ratio: 16 / 10;
}

.bypoa-content-card,
.bypoa-detail-card,
.bypoa-callout {
  border-radius: 22px;
  border: 1px solid var(--bypoa-line);
  background: #fff;
  box-shadow: 0 16px 32px rgba(49, 71, 45, 0.05);
}

.bypoa-page-grid--three > br,
.bypoa-detail-card > br {
  display: none;
}

.bypoa-content-card {
  padding: 24px 22px;
}

.bypoa-content-card h2,
.bypoa-callout h2 {
  margin: 0;
  font-size: 1.45rem;
}

.bypoa-content-card p,
.bypoa-callout p {
  line-height: 1.65;
  color: rgba(49, 71, 45, 0.82);
}

.bypoa-detail-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 240px;
  padding: 22px 20px 24px;
  text-decoration: none;
  color: var(--bypoa-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bypoa-detail-card:hover,
.bypoa-detail-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(49, 71, 45, 0.1);
}

.bypoa-detail-card__eyebrow {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bypoa-gold);
  font-weight: 700;
}

.bypoa-detail-card__title {
  display: block;
  margin-top: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.bypoa-detail-card__text {
  display: block;
  margin-top: 0;
  line-height: 1.6;
  color: rgba(49, 71, 45, 0.78);
}

.bypoa-link-list {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.bypoa-callout {
  max-width: var(--bypoa-shell);
  margin: 0 auto;
  padding: 26px 24px 28px;
  background:
    radial-gradient(circle at top left, rgba(166, 144, 92, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 242, 1));
}

.bypoa-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.bypoa-section--soft {
  background: var(--bypoa-surface);
}

.bypoa-section__header {
  max-width: 42rem;
  margin-bottom: 18px;
}

.bypoa-section__title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.bypoa-grid {
  display: grid;
  gap: 18px;
}

.bypoa-grid--links {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
}

.bypoa-grid--links .bypoa-link-card {
  flex: 1 1 0;
  min-width: 0;
}

.bypoa-grid--features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bypoa-grid--showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bypoa-grid--split {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.bypoa-link-card,
.bypoa-feature-card {
  display: block;
  min-height: 100%;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--bypoa-line);
  text-decoration: none;
}

.bypoa-link-card {
  background: #fff;
  color: var(--bypoa-ink);
}

.bypoa-feature-card {
  background: rgba(255, 255, 255, 0.72);
  color: var(--bypoa-ink);
}

.bypoa-showcase-card {
  display: grid;
  grid-template-rows: 220px auto;
  min-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--bypoa-line);
  box-shadow: 0 16px 32px rgba(49, 71, 45, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bypoa-showcase-card:hover,
.bypoa-showcase-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(49, 71, 45, 0.1);
}

.bypoa-showcase-card__media {
  display: block;
  position: relative;
  min-height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center center;
}

.bypoa-showcase-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 56, 32, 0.05), rgba(38, 56, 32, 0.28));
}

.bypoa-showcase-card__body {
  padding: 22px 20px 24px;
  color: var(--bypoa-ink);
}

.bypoa-showcase-card__title {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
}

.bypoa-showcase-card__text {
  display: block;
  margin-top: 10px;
  line-height: 1.6;
  color: rgba(49, 71, 45, 0.78);
}

.bypoa-listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.bypoa-listing-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100%;
  overflow: hidden;
  align-items: stretch;
  border-radius: 24px;
  border: 1px solid var(--bypoa-line);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(49, 71, 45, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bypoa-listing-card:hover,
.bypoa-listing-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(49, 71, 45, 0.11);
}

.bypoa-listing-card__media {
  display: block;
  height: 250px;
  min-height: 250px;
  overflow: hidden;
}

.bypoa-listing-grid > br,
.bypoa-listing-card > br,
.bypoa-listing-card__body > br {
  display: none;
}

.bypoa-listing-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bypoa-listing-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 24px 30px 26px;
  color: var(--bypoa-ink);
}

.bypoa-listing-card__title {
  display: block;
  margin-top: 0;
  max-width: 20ch;
  font-size: 1.82rem;
  line-height: 1.06;
  font-weight: 700;
}

.bypoa-listing-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(176, 151, 84, 0.16);
  color: #7e6831;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bypoa-listing-card__price {
  display: block;
  margin-top: 2px;
  font-size: 1.56rem;
  line-height: 1.05;
  font-weight: 700;
  color: #214332;
}

.bypoa-listing-card__meta {
  display: block;
  margin-top: 0;
  font-size: 0.86rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(49, 71, 45, 0.72);
}

.bypoa-listing-card__text {
  display: block;
  margin-top: 2px;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(49, 71, 45, 0.78);
}

.bypoa-link-card__label,
.bypoa-feature-card__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.bypoa-link-card__meta,
.bypoa-feature-card__text {
  display: block;
  margin-top: 10px;
  line-height: 1.55;
  color: rgba(49, 71, 45, 0.78);
}

.bypoa-spotlight {
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(166, 144, 92, 0.16), transparent 30%),
    linear-gradient(135deg, #3e5f39, #5c7a50);
  color: #fff;
}

.bypoa-spotlight__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  color: var(--bypoa-cream);
}

.bypoa-spotlight__text {
  margin: 14px 0 0;
  max-width: 38rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.bypoa-footer {
  padding: 28px 20px 34px;
  background: #f1eadc;
  border-top: 1px solid rgba(49, 71, 45, 0.08);
}

.bypoa-footer__inner {
  display: block;
}

.bypoa-footer__title {
  margin: 0;
  font-size: 1rem;
}

.bypoa-footer__text,
.bypoa-footer__meta {
  margin: 10px 0 0;
  color: rgba(49, 71, 45, 0.8);
  line-height: 1.55;
}

.wp-block-post-content a {
  color: var(--bypoa-navy);
  text-decoration-color: rgba(77, 111, 70, 0.28);
}

.wp-block-post-content a:hover,
.wp-block-post-content a:focus-visible {
  color: var(--bypoa-ink);
  text-decoration-color: rgba(49, 71, 45, 0.5);
}

.wp-block-post-content .wp-block-button__link,
.wp-block-post-content .wp-block-button__link.has-contrast-background-color {
  background: var(--bypoa-navy) !important;
}

@media (max-width: 980px) {
  .bypoa-hero__layout,
  .bypoa-grid--split,
  .bypoa-page-grid--two,
  .bypoa-page-grid--three {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bypoa-masthead__top {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 16px;
  }

  .bypoa-brand,
  .bypoa-masthead__controls {
    width: 100%;
  }

  .bypoa-masthead__controls {
    justify-items: start;
    gap: 14px;
  }

  .bypoa-masthead__intro {
    text-align: left;
  }

  .bypoa-masthead__portal {
    min-width: 0;
  }

  .bypoa-nav {
    gap: 10px;
    justify-content: flex-start;
  }

  .bypoa-nav--simple {
    gap: 14px;
  }

  .bypoa-nav__item,
  .bypoa-nav__item:last-child {
    margin-left: 0;
  }

  .bypoa-nav__menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(49, 71, 45, 0.1);
  }

  .bypoa-nav__item:hover .bypoa-nav__menu,
  .bypoa-nav__item:focus-within .bypoa-nav__menu {
    display: block;
  }

  .bypoa-nav__menu a {
    color: var(--bypoa-ink);
  }

  .bypoa-nav__submenu {
    position: static;
    min-width: 0;
    margin-top: 0;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .bypoa-nav__submenu-trigger {
    padding-right: 18px;
  }

  .bypoa-nav__submenu-trigger::after {
    transform: rotate(135deg);
  }

  .bypoa-nav__menu a:hover,
  .bypoa-nav__menu a:focus-visible {
    background: rgba(49, 71, 45, 0.05);
  }

  .bypoa-nav__subitem:hover .bypoa-nav__submenu,
  .bypoa-nav__subitem:focus-within .bypoa-nav__submenu {
    display: block;
  }

  .bypoa-grid--links,
  .bypoa-grid--features,
  .bypoa-grid--showcase,
  .bypoa-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bypoa-grid--links {
    display: grid;
  }
}

@media (max-width: 640px) {
  .bypoa-masthead-shell,
  .bypoa-hero,
  .bypoa-page-hero,
  .bypoa-section,
  .bypoa-page-section,
  .bypoa-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bypoa-masthead,
  .bypoa-hero__inner,
  .bypoa-page-hero__inner,
  .bypoa-spotlight {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bypoa-grid--links,
  .bypoa-grid--features,
  .bypoa-grid--showcase,
  .bypoa-gallery-grid,
  .bypoa-photo-band,
  .bypoa-listing-grid {
    grid-template-columns: 1fr;
  }

  .bypoa-listing-card {
    grid-template-columns: 1fr;
  }

  .bypoa-listing-card__media {
    height: 220px;
    min-height: 220px;
  }

  .bypoa-listing-card__body {
    padding: 20px 20px 22px;
  }

  .bypoa-listing-card__title {
    max-width: none;
    font-size: 1.6rem;
  }

  .bypoa-listing-card__price {
    font-size: 1.32rem;
  }

  .bypoa-listing-card__text {
    max-width: none;
  }

  .bypoa-brand__logo {
    width: min(100%, 300px);
  }

  .bypoa-chip {
    min-height: 36px;
  }
}
