.section.estate-page {
  padding: 0;
  background: #f7f4ed;
}

#app .estate-page > .wrap {
  width: 100%;
  max-width: none;
}

body:has(.estate-page) {
  --estate-sans: 'Segoe UI', Arial, sans-serif;
}

body:has(.estate-page) #zoomer,
body:has(.estate-page) #zoomer button,
.estate-site :is(button, input, select, textarea) {
  font-family: var(--estate-sans);
}

.estate-site {
  font-family: var(--estate-sans);
  --estate-ink: #192f28;
  --estate-muted: #485951;
  --estate-line: #d9ded5;
  --estate-green: #15352c;
  --estate-paper: #f7f4ed;
  --estate-gold: #ecd4a1;
  --estate-serif: Cambria, 'Times New Roman', serif;
  color: var(--estate-ink);
  background: var(--estate-paper);
}

.estate-site [hidden] {
  display: none !important;
}

.estate-container {
  width: min(1120px, 90%);
  margin-inline: auto;
}

.estate-site .estate-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.estate-hero {
  color: #fffaf0;
  background: radial-gradient(ellipse at 80% 0%, #2c5140 0%, #16352d 48%, #102a25 100%);
}

.estate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.16fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(52px, 7vw, 105px);
}

.estate-intro .estate-eyebrow {
  margin: 0 0 12px;
  color: var(--estate-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estate-intro h1 {
  margin: 0;
  color: inherit;
  font: 400 clamp(2.95rem, 6vw, 5.8rem)/1.14 var(--estate-serif);
  letter-spacing: -0.027em;
}

.estate-intro > p:not(.estate-eyebrow) {
  max-width: 36ch;
  margin: 20px 0 26px;
  color: #edf0e7;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.65;
}

.estate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.estate-site .estate-button {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--estate-gold);
  color: #172e26;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.estate-site .estate-button:hover {
  background: #f6e1b4;
}

.estate-hero-actions > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #fffaf0;
  text-underline-offset: 4px;
}

.estate-photo {
  margin: 0;
  min-width: 0;
}

.estate-photo .zoom {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dce3dc;
  aspect-ratio: var(--estate-ratio, 1.64);
}

.estate-hero .estate-photo .zoom {
  --estate-ratio: 1.7;
  border-radius: 12px;
  background: #234638;
}

.estate-photo .zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center);
  transition: transform 280ms ease;
}

.estate-photo .zoom:hover img {
  transform: scale(1.035);
}

.estate-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #112822dc;
  color: #fff;
  font: 1.16rem/1 system-ui, sans-serif;
}

.estate-photo figcaption {
  position: static;
  padding-top: 8px;
  color: var(--estate-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.estate-hero .estate-photo figcaption {
  color: #e0e9dc;
}

.estate-projects {
  padding-block: clamp(42px, 6vw, 80px);
  scroll-margin-top: 110px;
}

.estate-projects-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  align-items: center;
  margin-bottom: 22px;
}

.estate-site h2 {
  margin: 0;
  color: var(--estate-ink);
  font: 400 clamp(2.05rem, 4.3vw, 3.48rem)/1.18 var(--estate-serif);
  letter-spacing: -0.025em;
  text-transform: none;
}

.estate-filters {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 5px 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.estate-filters label {
  display: flex;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.estate-filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.estate-filters span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #b9c6bb;
  border-radius: 999px;
  color: #244238;
  font-size: 0.87rem;
  font-weight: 650;
  line-height: 1.2;
}

.estate-filters input:checked + span {
  border-color: var(--estate-green);
  background: var(--estate-green);
  color: #fffaf1;
}

.estate-filters input:focus-visible + span {
  outline: 2px solid #80683e;
  outline-offset: 3px;
}

.estate-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.estate-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #daddd1;
  border-radius: 12px;
  background: #fffdf8;
}

.estate-card .estate-photo figcaption {
  padding-inline: clamp(17px, 2.5vw, 28px);
}

.estate-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px clamp(17px, 2.5vw, 28px) 20px;
}

.estate-card .estate-location,
.estate-card .estate-kind {
  margin: 0;
  color: #36574a;
  font-size: 0.88rem;
  font-weight: 680;
}

.estate-card h3 {
  margin: 5px 0 6px;
  color: var(--estate-ink);
  font: 400 clamp(1.86rem, 3.1vw, 2.8rem)/1.15 var(--estate-serif);
  letter-spacing: -0.025em;
}

.estate-card h3 a {
  color: inherit;
  text-decoration: none;
}

.estate-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.estate-card h3 a span {
  display: inline-block;
  color: #426250;
  font: 0.44em/1 system-ui, sans-serif;
  vertical-align: 0.25em;
}

.estate-card .estate-description {
  flex: 1;
  margin: 10px 0 17px;
  color: var(--estate-muted);
  line-height: 1.5;
}

.estate-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px 0 12px;
  border-top: 1px solid var(--estate-line);
  border-bottom: 1px solid var(--estate-line);
}

.estate-stats > div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 3px;
}

.estate-stats dt {
  grid-row: 2;
  color: var(--estate-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.estate-stats dd {
  grid-row: 1;
  margin: 0;
  color: var(--estate-ink);
  font-size: clamp(1.05rem, 1.8vw, 1.33rem);
  font-weight: 750;
  line-height: 1.24;
}

.estate-detail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  margin: 7px 0 -6px;
  color: #213e32;
  font-weight: 740;
  text-underline-offset: 4px;
}

.estate-projects .estate-sources {
  margin: 16px 0 0;
  color: var(--estate-muted);
  font-size: 0.875rem;
}

.estate-support {
  padding-block: clamp(38px, 5.8vw, 75px);
  background: #e8ede5;
}

.estate-support-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3.2vw, 38px);
  align-items: start;
  margin-top: 22px;
}

.estate-tools, .estate-reading {
  min-width: 0;
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid #d2dacf;
  border-radius: 12px;
  background: #fffdf8;
}

.estate-support-grid h3 {
  font-family: var(--estate-sans);
  margin: 0 0 14px;
  color: var(--estate-ink);
  font-size: 1.18rem;
}

.estate-tools > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 13px 0;
  border-top: 1px solid var(--estate-line);
  color: #244238;
  text-decoration: none;
}

.estate-tools > a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.estate-tools > a span {
  grid-column: 1;
  color: var(--estate-muted);
  font-size: 0.9rem;
}

.estate-tools > a b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.estate-more-tools {
  padding: 10px 0 0;
  border-top: 1px solid var(--estate-line);
}

.estate-more-tools summary {
  padding: 4px 0;
  color: #244238;
  font-weight: 650;
  cursor: pointer;
}

.estate-support .v34-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.estate-support .v34-panel > h3 {
  display: none;
}

.estate-more-tools #estate-catalogue {
  margin-top: 12px;
}

.estate-reading #estate-guide .topic-articles {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #edf2eb;
  list-style: none;
}

.estate-reading #estate-guide a {
  color: #244238;
  font-weight: 680;
}

.estate-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: clamp(24px, 4vw, 46px);
}

.estate-contact p {
  margin: 0;
  font: 400 clamp(1.4rem, 3vw, 2.05rem)/1.24 var(--estate-serif);
}

.estate-contact .estate-button {
  background: var(--estate-green);
  color: #fffaf1;
}

.estate-contact .estate-button:hover {
  background: #2c5140;
}

@media (max-width: 760px) {
  .estate-container {
    width: calc(100% - 36px);
  }

  .estate-hero-grid,
  .estate-project-grid,
  .estate-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .estate-hero-grid {
    gap: 20px;
    padding-block: 34px 24px;
  }

  .estate-projects {
    scroll-margin-top: 70px;
  }

  .estate-intro > p:not(.estate-eyebrow) {
    margin-block: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .estate-photo .zoom img {
    transition: none;
  }

  .estate-photo .zoom:hover img {
    transform: none;
  }
}
