/* Shared navigation, contact controls, and rental browsing. */
[hidden] { display: none !important; }
html { scroll-padding-block: 1.5rem 6rem; }
body { overflow-wrap: break-word; }
button, select { font: inherit; }
button { cursor: pointer; }
button, a, select, summary { touch-action: manipulation; }
.skip-link { position: fixed; top: -8rem; left: 1rem; z-index: 100; background: white; color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.topbar { position: relative; gap: 1rem; }
.brand { min-width: 0; }
.brand-mark { flex: 0 0 42px; }
.brand-copy span { font-size: .875rem; }
.top-contact { flex-wrap: wrap; justify-content: flex-end; }
.contact-link { min-height: 44px; padding: .6rem .8rem; }
.mobile-menu, .mobile-contact-bar { display: none; }
.mobile-menu summary { cursor: pointer; min-height: 44px; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.4); border-radius: .4rem; font-size: .875rem; font-weight: 700; }
.mobile-menu-links { position: absolute; top: calc(100% - 1px); left: 0; right: 0; z-index: 30; display: grid; padding: .6rem 1.25rem 1rem; background: var(--ink); border-block: 1px solid rgba(255,255,255,.3); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.mobile-menu-links a { min-height: 44px; padding: .65rem .5rem; text-decoration: none; overflow-wrap: anywhere; }
.mobile-menu-links a:hover, .mobile-menu-links a[aria-current] { color: var(--accent); }
.mobile-contact-bar a { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem .3rem; border: 1px solid rgba(255,255,255,.4); border-radius: .35rem; color: white; text-decoration: none; font-size: .875rem; font-weight: 800; }
.mobile-contact-bar .email { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.mobile-contact-bar a:hover { background: white; color: var(--ink); }
.brand-copy, .hero-person, .listing, .listing-body, .agent-main, .agent-details, .story, .details, .consulting-copy { min-width: 0; }
.action { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.action::after { content: none; }
.agent-contacts .action, .detail a { overflow-wrap: anywhere; }
.eyebrow, .agent-kicker, .consulting-kicker { font-size: .875rem; }
.eyebrow::before { flex: 0 0 24px; }
.neighborhood, .facts .fact, .amenities, .portfolio-location, .portfolio-facts, .portfolio-link { font-size: .875rem; }
.price small { font-size: .75rem; }
.date-pill, .status { font-size: .8125rem; }
.date-pill.pending, .status.pending { background: var(--ink); color: white; }
.portfolio-title-row { flex-wrap: wrap; }
.portfolio-price::after { content: " /mo"; font-size: .75rem; font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.inquiry-link { background: var(--ink); color: white; font-size: .875rem; line-height: 1.4; }
.inquiry-link:hover { background: var(--accent); color: var(--ink); }
.card-actions .inquiry-link { width: 100%; }
.card-actions .portfolio-link { min-height: 44px; }
.listing-grid:empty, .portfolio-grid:empty { display: none; }
.listing-walkthrough { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.walkthrough-media { align-self: stretch; min-width: 0; background: var(--ink); }
.walkthrough-media video { display: block; width: 100%; height: 480px; max-height: 70vh; object-fit: contain; }
.listing-walkthrough .listing-top { flex-wrap: wrap; }
.listing-walkthrough .price small { text-align: left; }
.fact.stabilized { background: var(--accent); border-color: var(--accent); }
@media (max-width: 700px) {
  .listing-walkthrough { grid-template-columns: 1fr; }
  .walkthrough-media video { height: auto; aspect-ratio: 9 / 16; max-height: 480px; }
}

/* Keep the existing navy/lime identity, with a more compact first screen. */
body[data-page="home"] .hero { padding-block: clamp(2rem, 4vw, 3.25rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
body[data-page="home"] h1 { font-size: clamp(2.8rem, 5.2vw, 4.7rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.hero-actions .action { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero-actions .action.secondary { background: transparent; color: white; border-color: rgba(255,255,255,.5); }
.hero-actions .action:hover { background: white; color: var(--ink); border-color: white; }
.hero-profile { display: flex; gap: 1rem; align-items: center; text-decoration: none; }
.hero-profile img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.hero-profile strong { display: block; font-size: 1.125rem; }
.hero-profile span span { display: block; color: rgba(255,255,255,.76); font-size: .875rem; line-height: 1.5; margin-top: .25rem; }
.hero-person p { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.76); margin: 1rem 0 .7rem; }
.hero-bio-link { font-size: .875rem; color: var(--accent); text-underline-offset: 4px; }
body[data-page="home"] .inventory { padding-top: 2.5rem; }
.section-head { margin-bottom: 1rem; }
.listing-notice { margin: 0 0 1.2rem; font-size: .875rem; color: #46545e; }
.listing-notice.is-stale { border-left: 3px solid var(--ink); padding: .75rem 1rem; background: white; }
.listing-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .9rem 1.25rem; margin-block: 1.1rem .7rem; padding: 1.1rem; background: white; border: 1px solid var(--line); }
.filter-field { display: grid; gap: .35rem; flex: 1 1 12rem; min-width: 0; }
.filter-field label { font-size: .875rem; font-weight: 700; }
.filter-field select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: .6rem 2rem .6rem .7rem; border: 1px solid #77838b; border-radius: .25rem; background: white; color: var(--ink); font-size: 1rem; }
.filter-reset { min-height: 48px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; padding: .6rem .25rem; }
.filter-count { flex: 0 0 100%; margin: 0; font-size: .875rem; color: var(--muted); }
.rent-note { max-width: 85ch; margin: .8rem 0 1.6rem; font-size: .875rem; color: #46545e; line-height: 1.65; }
.filter-empty { padding: 2rem; background: white; border: 1px solid var(--line); }
.filter-empty h3 { margin-top: 0; font: 400 1.75rem/1.15 var(--serif); }
.filter-empty .action { margin: .5rem .5rem 0 0; }

@media (max-width: 960px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 82px; align-items: center; gap: .75rem; }
  .topbar .brand { flex: 1; gap: .6rem; }
  .brand-copy strong { font-size: .9375rem; }
  .brand-copy span { display: block; font-size: .8125rem; max-width: 17rem; line-height: 1.4; }
  .topbar .top-contact { display: none; }
  .mobile-menu { display: block; flex: 0 0 auto; }
  .mobile-contact-bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .5rem; padding: .6rem max(.75rem, env(safe-area-inset-left)) calc(.6rem + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid rgba(255,255,255,.4); }
}
@media (max-width: 840px) {
  body[data-page="home"] .hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-person { padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.25); }
  .hero-person p { margin: .8rem 0 .5rem; }
}
@media (max-width: 560px) {
  .hero-actions { display: grid; }
  .hero-profile img { flex-basis: 56px; width: 56px; height: 56px; }
  body[data-page="home"] .hero { padding-top: 1.8rem; padding-bottom: 1.8rem; }
  .filter-field { flex-basis: 100%; }
  .filter-empty { padding: 1.25rem; }
  .filter-empty .action { width: 100%; margin-inline: 0; }
  .brand-mark { flex-basis: 34px; width: 34px; height: 34px; }
  .bio-hero .eyebrow { letter-spacing: .08em; }
}
@media print {
  .mobile-contact-bar, .mobile-menu, .listing-filters, .skip-link { display: none !important; }
  body { padding-bottom: 0; }
}

/* Give the vacancy list a clear place in navigation and the home-page results. */
.top-contact .vacancy-nav { min-height: 48px; padding: .7rem 1.15rem; background: var(--accent); border-color: var(--accent); color: var(--ink); font-size: 1rem; font-weight: 850; }
.top-contact .vacancy-nav:hover { background: white; border-color: white; color: var(--ink); }
.mobile-menu-links .vacancy-nav { margin-block: .4rem; padding: .75rem; border-radius: .25rem; background: var(--accent); color: var(--ink); font-size: 1rem; font-weight: 850; }
.vacancy-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 0 0 1.5rem; padding: 1.5rem; background: var(--accent); border: 1px solid var(--ink); }
.vacancy-callout h3 { margin: 0 0 .4rem; font: 400 clamp(1.7rem,3vw,2.35rem)/1.1 var(--serif); letter-spacing: -.025em; }
.vacancy-callout p { margin: 0; font-size: .9375rem; }
.vacancy-callout .action { flex: 0 0 auto; min-height: 48px; }
.vacancy-results-section { margin-top: 2.5rem; }
.vacancy-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.vacancy-results-head h3 { margin: 0; font: 400 clamp(1.75rem,3vw,2.4rem)/1.15 var(--serif); letter-spacing: -.025em; }
.vacancy-results-head p { margin: 0; color: var(--muted); font-size: .875rem; }
.vacancy-results-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.vacancy-result { display: flex; flex-direction: column; min-width: 0; padding: 1.35rem; border: 1px solid var(--line); background: white; }
.vacancy-result .vacancy-kind { margin: 0 0 .7rem; font-size: .875rem; color: var(--muted); }
.vacancy-result h4 { margin: 0 0 1rem; font: 400 1.45rem/1.2 var(--serif); letter-spacing: -.015em; }
.vacancy-result h4 span { display: block; margin-top: .35rem; font: 700 .9375rem/1.4 var(--sans); letter-spacing: normal; }
.vacancy-result dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: .5rem 1rem; margin: 0 0 1.25rem; font-size: .9375rem; }
.vacancy-result dt { color: var(--muted); }
.vacancy-result dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.vacancy-result .vacancy-detail-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; font-weight: 750; text-underline-offset: 4px; }
.vacancy-timing { color: var(--muted); font-size: .875rem; }
.unpriced-note { margin: .75rem 0 1rem; padding: .9rem 1rem; background: white; border-left: 3px solid var(--ink); font-size: .9375rem; }
.tour-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: .25rem; font-size: .875rem; font-weight: 800; line-height: 1.35; text-decoration: none; text-align: center; }
.tour-link:hover { background: var(--accent); color: var(--ink); }
.vacancy-result .tour-link { align-self: flex-start; margin-top: .65rem; }
@media (max-width: 1000px) { .vacancy-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .vacancy-callout { align-items: stretch; flex-direction: column; padding: 1.25rem; gap: 1rem; }
  .vacancy-results-grid { grid-template-columns: 1fr; }
}
