/* MoonRock material system: mineral ground, curved surfaces, anodized blue. */
:root {
  --ground: #e7ecef;
  --paper: #e3e8ec;
  --surface: #f6f7f2;
  --surface-line: #ced6d2;
  --radius-panel: 26px;
  --radius-card: 22px;
  --radius-control: 12px;
  --soft-shadow: 0 8px 28px #18344709, 0 1px 2px #18344708;
  --mineral: radial-gradient(ellipse at 5% 4%, #d4dfe0a6, transparent 54%),
    radial-gradient(ellipse at 95% 80%, #ded6c496, transparent 58%),
    linear-gradient(125deg, #e8eef2, #f2efe8 48%, #e2e9ef);
  --blue-metal: repeating-linear-gradient(0deg, #ffffff02 0 1px, transparent 1px 4px),
    linear-gradient(117deg, #10283b 0%, #244359 39%, #36556a 53%, #1b384e 72%, #0d2539 100%);
}
html { background: var(--ground); }
body { background: var(--mineral); }
main {
  background: radial-gradient(ellipse 900px 580px at 100% 800px, #b9cbd238, transparent),
    radial-gradient(ellipse 850px 850px at 0% 2600px, #d2c6ae35, transparent);
}
.site-header {
  background: var(--blue-metal);
  border-radius: 0 0 20px 20px;
  border-bottom: 1px solid #c8b58763;
  box-shadow: 0 5px 18px #102c3e16;
}
.home-hero, .district-hero, .editorial-hero {
  margin: 18px 24px 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 34px #102c3e12;
}
.home-hero .hero-content { width: min(1280px, calc(100% - 64px)); }
.hero-image-credit { right: 32px; }
.hero-property-panel {
  border-radius: 20px;
  background: linear-gradient(125deg, #385467e8, #1d394eea 50%, #0d293ce8);
  border-color: #d5c29c72;
  box-shadow: inset 0 1px 0 #e9e5d536, 0 14px 36px #0414213b;
}
.property-search {
  border-radius: 20px;
  border: 1px solid #ffffffc4;
  background: linear-gradient(115deg, #f5f7f1, #efefe7 65%, #f7f7f2);
  box-shadow: 0 12px 36px #142f4318, inset 0 1px 0 #ffffff;
}
.property-search select { background: transparent; }
.button { border-radius: var(--radius-control); }
.button-navy { background: linear-gradient(125deg, #254459, #10293c); border-color: #57728345; box-shadow: inset 0 1px 0 #b9cad126; }
.button-navy:hover { background: linear-gradient(125deg, #375b73, #18384d); }
.button-gold { background: linear-gradient(110deg, #c7b38a, #e1cfab 48%, #b7a078); border-color: #f0e4c280; box-shadow: inset 0 1px 0 #ffffff55; }
.button-gold:hover { background: linear-gradient(110deg, #d6c298, #e9d8b7 48%, #c6af87); }
.button-outline { background: #f1f3ed80; border-color: #a8b6b8; }
.button-outline:hover { background: #e1e8e3; }
.quick-search a { background: #f4f5eec9; border-color: #cbd4d0; border-radius: 999px; }
.quick-search a:hover { background: #e0e7e1; }
.property-card {
  border-radius: var(--radius-card);
  border-color: var(--surface-line);
  background: linear-gradient(125deg, #fafaf4, #f1f3f3);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.property-card:hover { border-color: #aebbb9; box-shadow: 0 12px 32px #18344712; }
.card-photo { border-radius: 21px 21px 0 0; flex-shrink: 0; }
.card-body { display: flex; flex: 1; flex-direction: column; }
.card-bottom { margin-top: auto; }
.card-type, .card-count { border-radius: 8px; }
.card-features span { border-radius: 6px; background: #e7eceb; }
.favorite-button { box-shadow: 0 3px 10px #0c253c12; }
.spotlight-visual, .district-editorial-photo, .intent-card, .about-image {
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}
.about-image { margin-inline: 24px; }
.spotlight-visual > span { background: #0c243a80; border-radius: 8px; padding: 6px 9px; width: fit-content; max-width: calc(100% - 40px); }
.market-band, .comparison-section, .decision-section, .market-background,
.statement-section, .intro-section, .related-section, .contact-strip {
  margin-inline: 24px;
  border-radius: var(--radius-panel);
  border: 1px solid #bcc8c65c;
}
.market-band, .statement-section, .contact-strip {
  background: var(--blue-metal);
  border-color: #b7a27668;
  box-shadow: inset 0 1px 0 #ffffff19, 0 12px 32px #102c3e0e;
}
.market-band > .container, .comparison-section > .container,
.decision-section > .container, .market-background > .container,
.statement-section > .container, .intro-section > .container,
.related-section > .container, .contact-strip > .container {
  width: min(1280px, calc(100% - 64px));
}
.market-metrics { gap: 12px; padding: 0; border: 0; }
.market-metrics > article, .market-metrics > article:first-child, .market-metrics > article:last-child {
  border: 1px solid #b9ccda2c;
  border-radius: 17px;
  padding: 22px 18px;
  background: linear-gradient(130deg, #d4e1e711, #06192c23);
  box-shadow: inset 0 1px 0 #ecf0ed0d;
}
.market-metrics .metric-value { font-size: clamp(30px, 3vw, 40px); }
.market-metrics > article:last-child .metric-value { font-size: clamp(27px, 2.8vw, 37px); }
.period-label, .data-period { border-radius: 8px; }
.market-foot { color: #c2ced4; }
.comparison-section, .decision-section, .market-background, .intro-section, .related-section {
  background: radial-gradient(ellipse at 5% 0%, #c7d6d76e, transparent 55%),
    linear-gradient(118deg, #dfe7ec, #ece9e0 55%, #e1e8ec);
  box-shadow: inset 0 1px 0 #ffffffe0;
}
.table-scroll { border-radius: 18px; border-color: #bdc9c8; background: #edf1ea; box-shadow: var(--soft-shadow); }
.comparison-table { background: #f2f5ee; }
.comparison-table thead th { background: #1e3b50; }
.comparison-table tbody th { background: #e5ebe3; }
.comparison-table tbody tr:nth-child(2n) td { background: #eaf0e83b; }
.decision-card, .chart-panel, .form-panel, .property-aside, .inventory-panel,
.price-feature, .empty-state {
  border-radius: var(--radius-card);
  border: 1px solid #c6d1cf;
  background: linear-gradient(130deg, #f8f8f0, #eef2eb);
  box-shadow: var(--soft-shadow);
}
.decision-card:hover { background: linear-gradient(130deg, #fffdf5, #e9eff2); }
.price-feature { background: var(--blue-metal); border-color: #496071; }
.inventory-panel { background: linear-gradient(120deg, #d5dfd9, #edece0 50%, #d9e4df); }
.market-takeaways article { border-radius: 18px; border: 1px solid #c5d0cb; background: #f5f4eca8; padding: 25px; }
.method-note, .conditions-grid > div { background: linear-gradient(125deg, #e3e9ee, #eeeee5); border-radius: 16px; border: 1px solid #d0d9d0; }
.faq-list { padding: 3px 27px; border: 1px solid #ccd5cf; border-radius: var(--radius-card); background: linear-gradient(115deg, #f5f5ef, #e9eef0); box-shadow: var(--soft-shadow); }
.faq-list details:first-child { border-top: 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list details[open] summary { color: #77603b; }
.catalog-filters { background: linear-gradient(110deg, #dce5eb, #edeae1, #dce6ec); border: 1px solid #c4d0cc; border-radius: 20px; box-shadow: inset 0 1px 0 #ffffffae; }
.catalog-filters select, .form-grid select, .form-grid input, .form-grid textarea {
  border-radius: var(--radius-control);
  border-color: #bdcbc6;
  background: #fcfcf6;
}
.sort-label select { border-radius: 10px; border: 1px solid #c5d0ca; background: #f3f6ee; padding: 9px 12px; }
.form-panel { background: linear-gradient(120deg, #f4f6eb, #e7edf0); padding: 36px; }
.property-aside { border-top: 2px solid #b7a276; background: linear-gradient(115deg, #e1e8ed, #eeedde); }
.property-gallery { border-radius: var(--radius-panel); overflow: hidden; }
.gallery-cell { border-radius: 12px; }
.plan-image { border-radius: 18px; border-color: #c6d2cd; background: #f8f9f2; }
.plan-image img { border-radius: 10px; }
.plan-image span { border-radius: 8px; background: #edf2e9; border-color: #cad5c9; }
.lightbox { border-radius: 20px; box-shadow: 0 24px 80px #04132170; }
.close-dialog, .gallery-thumb { border-radius: 8px; overflow: hidden; }
.editorial-hero { background: linear-gradient(115deg, #e0e8e3, #ecece0); }
.editorial-copy { background: radial-gradient(ellipse at 5% 10%, #d0dcd96e, transparent 70%); }
.district-hero > .container { width: min(1280px, calc(100% - 64px)); }
.statement-section + .contact-strip { margin-top: 24px; background: var(--blue-metal); }
.contact-strip { margin-bottom: 24px; }
.contact-strip:before { border-radius: inherit; }
.site-footer { border-radius: 28px 28px 0 0; background: linear-gradient(115deg, #0b2031, #132d40 53%, #091e2e); border-top: 1px solid #b7a2763d; }
.toast { border-radius: 12px; background: #15354a; }
.form-error { border-radius: 8px; background: #efe4d8; }

@media(max-width:1050px) {
  .market-metrics { gap: 9px; }
  .market-metrics > article, .market-metrics > article:first-child, .market-metrics > article:last-child { padding: 20px 14px; }
  .market-metrics .metric-value { font-size: 31px; }
  .market-metrics > article:last-child .metric-value { font-size: 27px; }
  .market-takeaways { gap: 18px; }
  .market-takeaways article { padding: 22px; }
}
@media(max-width:850px) {
  .home-hero, .district-hero, .editorial-hero { margin: 14px 14px 0; border-radius: 23px; }
  .home-hero .hero-content, .district-hero > .container { width: calc(100% - 20px); }
  .hero-image-credit { right: 10px; }
  .market-band, .comparison-section, .decision-section, .market-background,
  .statement-section, .intro-section, .related-section, .contact-strip, .about-image { margin-inline: 14px; border-radius: 23px; }
  .market-band > .container, .comparison-section > .container, .decision-section > .container,
  .market-background > .container, .statement-section > .container, .intro-section > .container,
  .related-section > .container, .contact-strip > .container { width: calc(100% - 28px); }
  .market-metrics { gap: 12px; }
  .market-metrics > article, .market-metrics > article:first-child,
  .market-metrics > article:last-child, .market-metrics > article:nth-child(2n+1) {
    padding: 23px 20px!important; border: 1px solid #b9ccda2c;
  }
  .market-metrics .metric-value, .market-metrics > article:last-child .metric-value { font-size: 34px; }
  .property-search label { border-radius: 11px; background: #fbfcf44a; border-color: #cad4cc; }
  .site-header nav { border-radius: 0 0 20px 20px; background: linear-gradient(115deg, #112b3e, #203e54); }
  .market-takeaways article { padding: 20px; }
}
@media(max-width:600px) {
  :root { --radius-card: 20px; --radius-panel: 22px; }
  .site-header { border-radius: 0 0 16px 16px; }
  .home-hero, .district-hero, .editorial-hero { margin: 12px 10px 0; border-radius: 21px; }
  .home-hero .hero-content, .district-hero > .container { width: calc(100% - 20px); }
  .hero-property-panel { border-radius: 15px; }
  .hero-image-credit { right: 10px; }
  .property-search { border-radius: 17px; padding: 12px; gap: 11px; }
  .property-search label { padding: 10px; }
  .property-search button { border-radius: 11px; }
  .card-photo { border-radius: 19px 19px 0 0; }
  .market-band, .comparison-section, .decision-section, .market-background,
  .statement-section, .intro-section, .related-section, .contact-strip, .about-image { margin-inline: 10px; border-radius: 21px; }
  .market-band > .container, .comparison-section > .container, .decision-section > .container,
  .market-background > .container, .statement-section > .container, .intro-section > .container,
  .related-section > .container, .contact-strip > .container { width: calc(100% - 26px); }
  .market-heading-side { gap: 10px; }
  .market-metrics { gap: 9px; }
  .market-metrics > article, .market-metrics > article:first-child,
  .market-metrics > article:last-child, .market-metrics > article:nth-child(2n+1) { padding: 19px 12px!important; border-radius: 14px; }
  .market-metrics .metric-value { font-size: 29px; }
  .market-metrics > article:last-child .metric-value { font-size: 25px; }
  .market-metrics h3 { font-size: 13px; }
  .market-metrics article > p:last-child { font-size: 12px; }
  .market-takeaways { gap: 16px; }
  .market-takeaways article { padding: 23px; }
  .faq-list { padding-inline: 18px; }
  .faq-list summary { padding-right: 29px; }
  .form-panel { padding: 25px 20px; }
  .property-gallery { border-radius: 21px; }
  .spotlight-visual > span { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .contact-strip { margin-bottom: 18px; }
  .site-footer { border-radius: 23px 23px 0 0; }
}
@media(max-width:360px) {
  .market-metrics .metric-value { font-size: 25px; }
  .market-metrics > article:last-child .metric-value { font-size: 21px; }
  .market-metrics > article, .market-metrics > article:first-child,
  .market-metrics > article:last-child, .market-metrics > article:nth-child(2n+1) { padding-inline: 9px!important; }
}

/* Keep secondary text and keyboard focus clear on the tinted surfaces. */
.gold { color: #7d653d; }
.card-location, .source-caption, .collection-foot p, .caption { color: #5d707d; }
.form-title p, .form-footnote, .field-hint { color: #667985; }
.gallery-cell:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }

/* Audit fixes: readable fallbacks and a complete recovery route. */
.error-page { min-height: 56vh; padding-block: 70px; }
.error-page h1 { margin: 20px 0 25px; }
.error-page > p:not(.eyebrow) { max-width: 630px; font-size: 18px; color: #5d707d; }
.error-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px; }
.no-script-note { padding: 16px 20px; border: 1px solid #b7a27680; border-radius: 12px; background: #eee9dc; color: #435968; font-size: 15px; margin-bottom: 20px; }
html:not(.js-ready) [data-favorite], html:not(.js-ready) .saved-link,
html:not(.js-ready) #catalog-filters, html:not(.js-ready) .catalog-toolbar { display: none; }
@media(max-width:850px) {
  html:not(.js-ready) .menu-toggle { display: none; }
  html:not(.js-ready) .header-inner { flex-wrap: wrap; padding-top: 20px; padding-bottom: 16px; }
  html:not(.js-ready) .site-header nav { display: flex; position: static; flex-direction: row; gap: 4px 18px; flex-wrap: wrap; background: transparent; border: 0; box-shadow: none; padding: 4px 0 0; }
  html:not(.js-ready) .site-header nav a { padding: 8px 0; font-size: 14px; }
}
@media(max-width:600px) {
  .error-page { padding-block: 45px; }
  .error-page h1 { font-size: 41px; }
  .error-page > p:not(.eyebrow) { font-size: 16px; }
}

/* Content can grow when readers enlarge text or use longer labels. */
:where(main, header, footer) * { min-width: 0; }
h1, h2, h3, p, dt, dd, li, label, a, button { overflow-wrap: anywhere; }
.wordmark { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.header-actions { flex-shrink: 0; }
.button, .text-link { max-width: 100%; white-space: normal; }
.market-heading-side, .spotlight-facts, .catalog-toolbar { flex-wrap: wrap; }
.market-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.market-metrics .metric-value { white-space: normal; }
.spotlight-copy { min-width: 0; max-width: 100%; }
.home-hero { height: auto; min-height: 530px; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 64px; }
.home-hero .hero-content { position: relative; bottom: auto; }
.hero-copy h1.hero-description { font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1.7; letter-spacing: normal; margin: 18px 0 0; color: #edf1f3; }
.home-hero .hero-image-credit { position: relative; right: auto; bottom: auto; align-self: flex-end; max-width: calc(100% - 40px); margin: 16px 32px 0; }
.skip-link { top: 0; transform: translateY(-150%); }
.skip-link:focus { top: 0; transform: translateY(0); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #976f35; outline-offset: 4px; box-shadow: 0 0 0 3px #fff; }
html:not(.js-ready) .site-header { position: relative; }
@media (max-width: 1000px) { .market-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) {
  .hero-copy h1.hero-description { font-size: 15px; }
  .site-header nav { top: 100%; }
  .header-inner { flex-wrap: wrap; }
  .site-header .wordmark { flex: 1 1 170px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .home-hero { min-height: 560px; padding-top: 70px; }
  .home-hero .hero-image-credit { margin-right: 20px; }
  .saved-filter { white-space: normal; }
  .property-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.wordmark { white-space: normal; }
.home-hero .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.price-benchmark { white-space: normal; max-width: 100%; }
@media (max-width: 600px) {
  .property-search, .market-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr)); }
  .property-search button { height: auto; min-height: 65px; align-self: stretch; }
}

html:not(.js-ready) [data-open-gallery] { display: none; }
.plan-image { text-align: center; }

/* Approved MR artwork; crop only the white canvas in the layout. */
.wordmark.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-art { position: relative; display: block; flex: 0 0 auto; width: 88px; aspect-ratio: 1.3; overflow: hidden; border-radius: 10px; background: #fff; }
.brand-art img { position: absolute; top: 50%; left: 50%; width: 135%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.brand-name { min-width: 0; font-size: 24px; letter-spacing: .065em; white-space: normal; overflow-wrap: anywhere; }
.site-header .brand-name span, .site-footer .brand-name span { font-size: 8px; letter-spacing: .16em; margin-top: 9px; }
.site-header .brand-lockup { padding-block: 8px; padding-right: 20px; }
.site-footer .brand-lockup { gap: 14px; }
.site-footer .brand-name { font-size: 23px; }
.site-footer .brand-art { width: 78px; }
@media (min-width: 851px) and (max-width: 1100px) {
  .site-header .brand-art { width: 64px; }
  .site-header .brand-name { font-size: 21px; }
  .site-header .brand-lockup { gap: 10px; padding-right: 12px; }
  .site-header .header-inner { gap: 16px; }
  .site-header nav { gap: 15px; }
}
@media (max-width: 850px) {
  .site-header .brand-lockup { padding: 8px 0; gap: 10px; }
  .site-header .brand-art { width: 60px; border-radius: 8px; }
  .site-header .brand-name { font-size: 21px; }
  .site-header .brand-name span { font-size: 7px; letter-spacing: .1em; margin-top: 7px; }
  .site-header .header-inner { gap: 12px; }
}
@media (max-width: 360px) {
  .site-header .brand-art { width: 46px; border-radius: 6px; }
  .site-header .brand-lockup { gap: 8px; }
  .site-header .brand-name { font-size: 18px; }
  .site-header .brand-name span { font-size: 6px; letter-spacing: .08em; }
}
