/* Palette: KM brand colors (primary: Charcoal + Orange; neutrals: Stone Gray, Ash, Sterling). */
:root {
  --charcoal: #363537;
  --orange: #e04403;
  --orange-dark: #c03e27;   /* Rustic Clay: orange tone with better contrast behind white text */
  --burnt: #8d2b1d;
  --ash: #5f5d5e;
  --sterling: #afabac;
  --stone: #ebeeef;
  --paper: #ffffff;
  --midnight: #01576e;
  --cosmic: #2d879a;
  --harbor: #97d1dc;
  --valor: #e0f0f4;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 4px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-underline-offset: 2px; }
a:hover { color: var(--burnt); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--charcoal); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Placeholder text, visible so it gets replaced before sharing */
.ph { text-decoration: underline dashed var(--orange); text-underline-offset: 3px; background: rgba(224, 68, 3, .07); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--charcoal); color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; flex-direction: column; color: #fff; text-decoration: none; flex-shrink: 0; padding: 8px 0; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.brand-addr { font-size: 12.5px; color: var(--sterling); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  color: #d9d8d9; text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 21px 12px 19px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .brand { padding-top: 12px; }
  .tabs { margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 12px); }
  .tabs a { padding: 12px 12px 11px; }
}

main { outline: none; min-height: 60vh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14.5px/1 var(--sans); padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--charcoal); background: var(--paper); color: var(--charcoal);
  cursor: pointer; text-decoration: none; min-height: 42px;
}
.btn:hover { background: var(--stone); color: var(--charcoal); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-quiet { border-color: transparent; background: transparent; padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover { background: var(--stone); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Home: hero ---------- */
.hero { position: relative; background: var(--charcoal); overflow: hidden; }
.hero-frames { position: relative; aspect-ratio: 16 / 7; min-height: 380px; max-height: 72vh; width: 100%; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-img.is-active { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(54, 53, 55, .88) 0%, rgba(54, 53, 55, .35) 38%, rgba(54, 53, 55, 0) 62%);
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 34px; color: #fff; }
.hero-status {
  display: inline-block; margin: 0 0 12px; padding: 4px 10px; font-weight: 700; font-size: 13.5px;
  background: var(--orange); color: #fff; border-radius: 2px;
}
.hero h1 { color: #fff; font-size: clamp(44px, 7.5vw, 92px); font-weight: 500; letter-spacing: -.01em; line-height: .98; }
.hero-addr { margin: 12px 0 0; font-size: clamp(16px, 1.8vw, 19px); color: #f1f1f1; }
.hero-ctrl {
  position: absolute; right: var(--gutter); bottom: 30px; display: flex; align-items: center; gap: 4px;
  color: #fff; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.hero-ctrl button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(54, 53, 55, .35); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.hero-ctrl button:hover { background: rgba(54, 53, 55, .7); }
.hero-count { min-width: 48px; text-align: center; }
@media (max-width: 640px) {
  .hero-frames { aspect-ratio: 4 / 5; min-height: 0; max-height: 78vh; }
  .hero-ctrl { top: 16px; bottom: auto; right: 16px; }
}

/* ---------- Home: snapshot strip ---------- */
.snapshot { margin-top: 0; }
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 0; border-bottom: 1px solid var(--stone);
}
.spec-item { padding: 26px 24px 24px 0; border-top: 4px solid var(--orange); margin-right: 24px; }
.spec dt { font-size: 14px; font-weight: 700; color: var(--ash); margin-bottom: 6px; }
.spec dd { margin: 0; }
.spec-value { display: block; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; color: var(--charcoal); }
.spec-note { display: block; margin-top: 6px; font-size: 14px; color: var(--ash); }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
.contacts h2 { font-size: 26px; margin-bottom: 18px; }
.contact-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.contact { background: var(--stone); padding: 18px 20px 16px; border-radius: var(--radius); }
.contact h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; }
.contact h3 small { font-weight: 600; font-size: 13px; color: var(--ash); }
.contact-role { font-size: 14px; color: var(--ash); margin: 2px 0 10px; line-height: 1.4; }
.contact-lines { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.contact-lines li { display: flex; gap: 8px; }
.contact-lines .k { color: var(--ash); width: 16px; flex-shrink: 0; font-weight: 700; font-size: 12.5px; padding-top: 2px; }
.contact-lines a { color: var(--charcoal); text-decoration-color: var(--sterling); word-break: break-word; }
.contact-lines a:hover { color: var(--orange-dark); }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Generic page ---------- */
.page { padding-top: 44px; padding-bottom: 80px; }
.page-head { margin-bottom: 28px; max-width: 760px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 50px); margin-bottom: 10px; }
.page-lede { font-size: 17px; color: var(--ash); margin: 0; }
.section-title { font-size: 26px; margin: 48px 0 16px; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 24px;
  background: var(--stone); border-left: 4px solid var(--sterling); font-size: 14.5px; border-radius: 0 var(--radius) var(--radius) 0;
}
.banner.is-warn { border-left-color: var(--orange); }
.banner p { margin: 0; }
.muted { color: var(--ash); }

/* ---------- Market activity ---------- */
.pipeline { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 28px; padding: 0; list-style: none; }
.pipe-group { display: flex; flex-direction: column; gap: 8px; }
.pipe-group-label { font-size: 13px; font-weight: 700; color: var(--ash); }
.pipe-steps { display: flex; }
.pipe-step {
  appearance: none; border: 0; cursor: pointer; text-align: left; font: inherit;
  position: relative; min-width: 118px; padding: 12px 26px 12px 20px; color: var(--charcoal); background: var(--stone);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  margin-left: -8px;
}
.pipe-steps .pipe-step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); margin-left: 0; padding-left: 16px; }
.pipe-group.is-inactive .pipe-step { clip-path: none; margin-left: 0; border-radius: var(--radius); margin-right: 6px; padding-right: 20px; min-width: 96px; }
.pipe-num { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; }
.pipe-name { display: block; font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.pipe-step[aria-pressed="true"] { outline: 2px solid var(--charcoal); outline-offset: -2px; }
.pipe-step:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.pipe-step[data-stage="Prospect"] { background: var(--valor); }
.pipe-step[data-stage="Inquiry"] { background: var(--harbor); }
.pipe-step[data-stage="Tour"] { background: var(--midnight); color: #fff; }
.pipe-step[data-stage="Proposal"] { background: var(--orange-dark); color: #fff; }
.pipe-step[data-stage="Idle"] { background: var(--stone); }
.pipe-step[data-stage="Dead"] { background: var(--burnt); color: #fff; }
.pipe-step[data-stage="Tour"][aria-pressed="true"],
.pipe-step[data-stage="Proposal"][aria-pressed="true"],
.pipe-step[data-stage="Dead"][aria-pressed="true"] { outline-color: var(--charcoal); box-shadow: inset 0 0 0 4px #fff; }
.pipe-total { align-self: flex-end; font-size: 14px; color: var(--ash); padding-bottom: 12px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.toolbar .search { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-left: auto; }
.toolbar input[type="search"] { width: 220px; }
.filter-note { font-size: 14px; }

input[type="text"], input[type="search"], input[type="email"], select, textarea {
  font: 400 15px/1.4 var(--sans); color: var(--charcoal); background: #fff;
  border: 1px solid var(--sterling); border-radius: var(--radius); padding: 9px 11px; min-height: 42px; width: 100%;
}
textarea { resize: vertical; min-height: 76px; }
input:focus, select:focus, textarea:focus { border-color: var(--charcoal); outline: 2px solid rgba(224, 68, 3, .35); outline-offset: 0; }
input:disabled { background: var(--stone); color: var(--ash); }

.table-scroll { position: relative; overflow-x: auto; border-top: 2px solid var(--charcoal); }
table.activity { width: 100%; border-collapse: collapse; min-width: 1240px; font-size: 14.5px; }
.activity th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ash); padding: 12px 12px 10px; border-bottom: 1px solid var(--sterling); white-space: nowrap; }
.activity td { padding: 14px 12px; border-bottom: 1px solid var(--stone); vertical-align: top; }
.activity tr.is-open td { border-bottom-color: transparent; background: #fafbfb; }
.activity .col-tenant { width: 12%; font-weight: 700; }
.activity .col-stage { width: 8%; }
.activity .col-sf { width: 7%; }
.activity .col-use { width: 9%; }
.activity .col-timing { width: 8%; }
.activity .col-loc { width: 10%; }
.activity .col-contact { width: 12%; }
.activity .col-comments { width: 9%; }
.activity .col-updated { width: 9%; white-space: nowrap; }
.activity .col-edit { width: 4%; text-align: right; }
.undisclosed { font-style: italic; font-weight: 600; color: var(--ash); }
.contact-cell span { display: block; }
.contact-cell .sub { color: var(--ash); font-size: 13.5px; }
.updated-by { display: block; color: var(--ash); font-size: 12.5px; white-space: normal; }
.cell-text { white-space: pre-line; }

.stage {
  display: inline-block; padding: 3px 9px; border-radius: 2px; font-weight: 700; font-size: 13px; white-space: nowrap;
  background: var(--stone); color: var(--charcoal);
}
.stage-Prospect { background: var(--valor); }
.stage-Inquiry { background: var(--harbor); }
.stage-Tour { background: var(--midnight); color: #fff; }
.stage-Proposal { background: var(--orange-dark); color: #fff; }
.stage-Idle { background: var(--stone); color: var(--ash); box-shadow: inset 0 0 0 1px var(--sterling); }
.stage-Dead { background: var(--burnt); color: #fff; }

.comment-toggle {
  appearance: none; background: none; border: 0; padding: 4px 0; font: 600 14px var(--sans);
  color: var(--charcoal); cursor: pointer; text-decoration: underline; text-decoration-color: var(--sterling); text-underline-offset: 3px;
}
.comment-toggle:hover { color: var(--orange-dark); }
.edit-btn { appearance: none; background: none; border: 1px solid var(--sterling); border-radius: var(--radius); padding: 6px 10px; font: 600 13px var(--sans); color: var(--charcoal); cursor: pointer; }
.edit-btn:hover { border-color: var(--charcoal); background: var(--stone); }

.thread-row td { background: #fafbfb; padding: 0 12px 20px; border-bottom: 1px solid var(--sterling); }
.thread { max-width: 720px; margin-left: auto; margin-right: 8%; border-left: 3px solid var(--orange); padding: 4px 0 0 18px; }
.thread ol { list-style: none; margin: 0 0 14px; padding: 0; }
.thread li { padding: 10px 0; border-bottom: 1px solid var(--stone); }
.thread li:last-child { border-bottom: 0; }
.comment-meta { font-size: 13px; color: var(--ash); margin-bottom: 2px; }
.comment-meta strong { color: var(--charcoal); }
.comment-text { white-space: pre-line; margin: 0; }
.thread-empty { color: var(--ash); font-size: 14px; margin: 6px 0 12px; }
.thread form { display: grid; gap: 8px; }
.thread .form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.empty-state { padding: 40px 0; text-align: left; color: var(--ash); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; border-radius: 6px; box-shadow: 0 20px 60px rgba(54, 53, 55, .35); color: var(--charcoal); max-width: min(640px, calc(100vw - 24px)); width: 100%; }
dialog::backdrop { background: rgba(54, 53, 55, .6); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--stone); }
.dialog-head h2 { font-size: 24px; }
.dialog-body { padding: 18px 22px 8px; display: grid; gap: 16px; max-height: 70vh; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; }
.field { display: grid; gap: 6px; }
.field > span, .fieldset-label { font-size: 14px; font-weight: 700; }
.field .hint { font-weight: 400; color: var(--ash); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.icon-btn { appearance: none; border: 0; background: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; color: var(--charcoal); }
.icon-btn:hover { background: var(--stone); }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
  background: var(--charcoal); color: #fff; padding: 11px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-error { background: var(--burnt); }

/* ---------- Marketing assets ---------- */
.asset-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.flyer-card { display: grid; grid-template-columns: 170px 1fr; gap: 22px; background: var(--stone); padding: 22px; border-radius: var(--radius); }
.flyer-card img { width: 170px; box-shadow: 0 2px 10px rgba(54, 53, 55, .2); background: #fff; }
.flyer-card h2 { font-size: 26px; margin-bottom: 4px; }
.flyer-card .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-card { border: 1px solid var(--sterling); padding: 22px; border-radius: var(--radius); }
.site-card h2 { font-size: 26px; margin-bottom: 4px; }
.site-card .url { font-size: 15px; word-break: break-all; color: var(--ash); margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.photo { margin: 0; }
.photo button { appearance: none; border: 0; padding: 0; background: var(--stone); cursor: zoom-in; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo button:hover img { transform: scale(1.03); }
.photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; font-size: 13.5px; color: var(--ash); }
.photo figcaption a { font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .asset-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .flyer-card { grid-template-columns: 1fr; } .flyer-card img { width: 140px; } }

.lightbox { max-width: min(1200px, calc(100vw - 24px)); background: var(--charcoal); color: #fff; }
.lightbox .dialog-head { border-bottom-color: rgba(255, 255, 255, .15); }
.lightbox .dialog-head h2 { color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.lightbox .icon-btn { color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #222; }
.lightbox .dialog-foot { justify-content: space-between; align-items: center; }
.lightbox .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lightbox .btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Property files ---------- */
.files-panel { max-width: 760px; border: 1px solid var(--sterling); border-top: 4px solid var(--charcoal); padding: 26px 28px; border-radius: 0 0 var(--radius) var(--radius); }
.files-panel h2 { font-size: 26px; margin-bottom: 8px; }
.files-panel .btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.files-panel.is-locked { border-top-color: var(--orange); }
.how-list { margin: 16px 0 0; padding-left: 20px; color: var(--ash); font-size: 14.5px; }
.how-list li { margin-bottom: 4px; }

/* ---------- Broker team ---------- */
.team { display: grid; gap: 0; }
.member { display: grid; grid-template-columns: 180px minmax(0, 1fr) 240px; gap: 32px; padding: 34px 0; border-top: 1px solid var(--sterling); }
.member:last-child { border-bottom: 1px solid var(--sterling); }
.headshot { width: 180px; aspect-ratio: 5 / 6; object-fit: cover; object-position: center top; background: var(--stone); }
.headshot-ph { width: 180px; aspect-ratio: 5 / 6; background: var(--stone); display: grid; place-items: center; text-align: center; border: 1px dashed var(--sterling); }
.headshot-ph span { font-family: var(--serif); font-size: 48px; color: var(--ash); line-height: 1; }
.headshot-ph small { display: block; font-size: 12.5px; color: var(--ash); margin-top: 6px; font-family: var(--sans); }
.member h2 { font-size: 30px; }
.member .creds { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ash); margin-left: 6px; }
.member .role { color: var(--ash); margin: 4px 0 14px; font-weight: 600; }
.member .bio p { max-width: 64ch; }
.member .contact-lines { padding-top: 6px; }
@media (max-width: 900px) {
  .member { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; }
  .member .member-contact { grid-column: 2; }
  .headshot, .headshot-ph { width: 140px; }
}
@media (max-width: 540px) {
  .member { grid-template-columns: 1fr; }
  .member .member-contact { grid-column: auto; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: 90px; display: grid; gap: 2px; font-size: 14.5px; }
.faq-nav a { color: var(--ash); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--stone); }
.faq-nav a:hover { color: var(--charcoal); border-left-color: var(--orange); }
.faq-section { padding-top: 8px; margin-bottom: 44px; }
.faq-section > h2 { font-size: 32px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--charcoal); }
.faq-section h3 { font-size: 22px; margin: 26px 0 10px; }
details.qa { border-bottom: 1px solid var(--stone); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-weight: 700; font-size: 16.5px; line-height: 1.4; color: var(--charcoal);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 22px; width: 10px; height: 10px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .2s;
}
details.qa[open] summary::after { transform: rotate(-135deg); top: 26px; }
details.qa summary:hover { color: var(--orange-dark); }
.qa-body { padding: 0 0 18px; max-width: 70ch; }
.qa-body p:last-child { margin-bottom: 0; }
.faq-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 12px; }
.faq-table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--orange-dark); padding: 10px 12px 8px 0; border-bottom: 1px solid var(--charcoal); }
.faq-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--stone); vertical-align: top; }
.faq-table tfoot td { font-weight: 700; border-top: 1px solid var(--charcoal); border-bottom: 0; }
.faq-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq-table caption { caption-side: top; text-align: left; font-size: 14px; color: var(--ash); padding-bottom: 6px; }
.faq-table .mark { text-align: center; width: 130px; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 2px; font-weight: 700; }
.yes { color: var(--orange-dark); box-shadow: inset 0 0 0 1.5px var(--orange); }
.no { color: var(--sterling); box-shadow: inset 0 0 0 1px var(--sterling); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.fine { font-size: 12.5px; color: var(--ash); line-height: 1.5; }
.pull { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; margin: 4px 0 16px; max-width: 34ch; }
.designations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
.designations article { background: var(--stone); padding: 20px; border-radius: var(--radius); }
.designations h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--orange-dark); margin: 0 0 8px; }
.designations p { font-size: 14.5px; margin: 0; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .faq-nav a { border: 1px solid var(--sterling); border-radius: 999px; padding: 5px 12px; }
  .two-col, .designations { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--stone); color: var(--ash); font-size: 13.5px; padding: 22px 0 26px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Small screens: stage pipeline becomes a grid instead of chevrons */
@media (max-width: 640px) {
  .pipeline { display: grid; gap: 16px; }
  .pipe-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pipe-step, .pipe-steps .pipe-step:first-child, .pipe-group.is-inactive .pipe-step {
    clip-path: none; margin: 0; min-width: 0; border-radius: var(--radius); padding: 10px 14px;
  }
  .pipe-total { padding-bottom: 0; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .toolbar input[type="search"] { width: 100%; }
}
@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .spec-item { margin-right: 14px; padding: 18px 0 18px; }
  .spec-value { font-size: 26px; }
}

/* ---------- Comps ---------- */
.page-wide { max-width: 1480px; }
.toolbar .filter { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.toolbar .filter select { width: auto; min-width: 150px; }
.comps-count { font-size: 14px; color: var(--ash); margin: 0 0 8px; }
.comps-scroll { max-height: 75vh; overflow: auto; }
table.comps { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 1500px; width: 100%; }
.comps th {
  position: sticky; top: 0; z-index: 2; background: var(--paper);
  text-align: left; vertical-align: bottom; padding: 0; border-bottom: 1px solid var(--charcoal);
}
.comps th button {
  appearance: none; border: 0; background: none; font: 700 12.5px/1.3 var(--sans); color: var(--ash);
  padding: 10px 10px 8px; width: 100%; text-align: inherit; cursor: pointer; display: flex; gap: 4px; align-items: flex-end;
}
.comps th.num button { justify-content: flex-end; text-align: right; }
.comps th button:hover, .comps th[aria-sort="ascending"] button, .comps th[aria-sort="descending"] button { color: var(--charcoal); }
.sort-ind { color: var(--orange); min-width: 8px; }
.comps td { padding: 10px; border-bottom: 1px solid var(--stone); vertical-align: top; }
.comps td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comps tbody tr:hover td { background: #f6f7f7; }
/* Keep the property name visible while scrolling sideways */
.comps th:nth-child(2), .comps td:nth-child(2) {
  position: sticky; left: 40px; background: var(--paper); z-index: 1; min-width: 190px; max-width: 230px;
  box-shadow: 1px 0 0 var(--stone); font-weight: 700;
}
.comps th.col-sel, .comps td.col-sel { position: sticky; left: 0; z-index: 1; background: var(--paper); width: 40px; min-width: 40px; max-width: 40px; }
.comps th:nth-child(2), .comps th.col-sel { z-index: 3; }
.comps tbody tr:hover td:nth-child(2), .comps tbody tr:hover td.col-sel { background: #f6f7f7; }
.comps .col-long { min-width: 300px; max-width: 380px; }
.comps .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { appearance: none; border: 0; background: none; padding: 2px 0; font: 700 12.5px var(--sans); color: var(--orange-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .comps th:first-child, .comps td:first-child { min-width: 140px; max-width: 160px; }
  .toolbar .filter { width: 100%; justify-content: space-between; }
}
.comps td:not(.num):not(.col-long) { min-width: 110px; }

/* ================= v2: Kidder Mathews branding, database editing ================= */
.site-header .wrap { max-width: 1480px; }
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-bug { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.header-inner { gap: 22px; }
.tabs a { padding-left: 10px; padding-right: 10px; font-size: 14px; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.hdr-btn {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--radius); padding: 7px 12px;
}
.hdr-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
@media (max-width: 1320px) { .header-actions { display: none; } }
@media (max-width: 860px) {
  .brand { padding-top: 10px; }
  .brand-bug { width: 32px; height: 32px; }
}

/* Hero: property logo and buttons */
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: clamp(220px, 30vw, 400px); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-ghost { background: rgba(54, 53, 55, .35); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.hero-copy { padding-bottom: 30px; }
@media (max-width: 640px) { .hero-btns .btn { flex: 1; } }

/* Snapshot: five across */
.spec { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Contacts: three columns */
.contacts { display: block; padding-top: 56px; padding-bottom: 72px; }
.contacts > h2 { font-size: 30px; margin-bottom: 22px; }
.contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.contact-group h3 {
  display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15px; font-weight: 700;
  color: var(--charcoal); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--charcoal);
}
.group-bug { width: 22px; height: 22px; }
.contact-group .contact { margin-bottom: 12px; }
.contact h4 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 16.5px; }
.contact h4 small { font-weight: 600; font-size: 12.5px; color: var(--ash); }
.contact-addr { font-size: 13.5px; color: var(--ash); margin: 8px 0 0; line-height: 1.45; }
.lnote { font-style: normal; font-size: 12.5px; color: var(--ash); }
@media (max-width: 960px) { .contact-cols { grid-template-columns: 1fr; } }

/* Buttons and dialogs */
.btn-danger { background: var(--burnt); border-color: var(--burnt); color: #fff; }
.btn-danger:hover { background: #6f2216; border-color: #6f2216; color: #fff; }
.btn-danger-quiet { border-color: transparent; background: transparent; color: var(--burnt); padding-left: 6px; padding-right: 6px; }
.btn-danger-quiet:hover { background: #f6e9e7; color: var(--burnt); }
.link-btn { appearance: none; border: 0; background: none; padding: 0 0 0 6px; font: 600 12.5px var(--sans); color: var(--ash); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--burnt); }
.dialog-foot .spacer { flex: 1; }
.dialog-foot { align-items: center; }
.dialog-wide { max-width: min(860px, calc(100vw - 24px)); }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.field-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
#ask-msg p { margin: 0 0 10px; }
.tool-more { display: inline-flex; gap: 2px; }
.toolbar .search { margin-left: auto; }
.col-actions { width: 64px; text-align: right; }
.comps td.col-actions, .comps th.col-actions { position: sticky; right: 0; background: var(--paper); box-shadow: -1px 0 0 var(--stone); }

/* Marketing: matching cards */
.asset-card { display: grid; grid-template-columns: 170px 1fr; gap: 22px; background: var(--stone); padding: 22px; border-radius: var(--radius); align-items: start; }
.asset-card img { width: 170px; aspect-ratio: 1.29; object-fit: cover; box-shadow: 0 2px 10px rgba(54, 53, 55, .2); background: #fff; }
.asset-card h2 { font-size: 26px; margin-bottom: 4px; }
.asset-card .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.asset-top { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .asset-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .asset-card { grid-template-columns: 1fr; } .asset-card img { width: 140px; } }
.section-title { margin-top: 44px; }

/* Broker team logo */
.page-head-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; }
.team-logo { height: 46px; width: auto; }

/* Footer: charcoal with white logo */
.site-footer { background: var(--charcoal); color: #cfcdcf; padding: 26px 0 30px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; }
.spec-value { font-size: clamp(22px, 2.2vw, 28px); white-space: nowrap; }
.spec-item { padding-right: 12px; margin-right: 16px; }

/* v3: partner logos */
.group-logo { height: 24px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.brand-partner { height: 30px; width: auto; max-width: 180px; object-fit: contain; flex-shrink: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); }
@media (max-width: 640px) { .brand-partner { height: 24px; max-width: 120px; } }

/* v3: wider Market Activity page so all 11 columns fit on desktop */
.wrap.wrap-wide { max-width: 1400px; }

/* v3: multi-select + bulk delete */
.col-sel { width: 40px; text-align: center; }
.activity th.col-sel, .comps th.col-sel { padding: 12px 8px 10px; vertical-align: bottom; }
.activity td.col-sel, .comps td.col-sel { padding-left: 8px; padding-right: 8px; text-align: center; }
.col-sel input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); cursor: pointer; }
.activity tr.is-selected td, .comps tr.is-selected td, .comps tr.is-selected td:nth-child(2), .comps tr.is-selected td.col-sel { background: #fdf1ec; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 14px; background: #fdf1ec; border: 1px solid #f3c7b5; border-radius: 4px; font-size: 14px; }
.sel-bar .sel-count { margin-right: auto; }
.activity th.col-sel, .comps th.col-sel { text-align: center; vertical-align: bottom; padding: 10px 8px 9px; }
.activity th.col-sel input, .comps th.col-sel input { display: inline-block; vertical-align: middle; }

/* v3: Last edited column on comps */
.comps th.col-edited, .comps td.col-edited { white-space: nowrap; min-width: 120px; }
.comps td.col-edited .sub { display: block; font-size: 12px; color: var(--ash); }
.sel-bar[hidden] { display: none; }

/* ================= v4: portfolio (multi-property) pages ================= */
/* Status chips: Existing / Under Construction / Proposed */
.pstatus { display: inline-block; padding: 3px 9px; border-radius: 2px; font: 700 12.5px/1.4 var(--sans); white-space: nowrap; }
.pstatus-Existing { background: var(--midnight); color: #fff; }
.pstatus-Under-Construction { background: var(--harbor); color: var(--charcoal); }
.pstatus-Proposed { background: var(--paper); color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }

/* Home: portfolio totals + property table */
.portfolio { padding-bottom: 8px; }
.pf-loading { padding: 28px 0; margin: 0; }
.portfolio .spec { border-bottom: 0; }
.pf-scroll { margin-top: 8px; }
table.pf-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 900px; }
.pf-table thead th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ash); padding: 12px 12px 10px; border-bottom: 1px solid var(--sterling); white-space: nowrap; }
.pf-table td, .pf-table tbody th { padding: 14px 12px; border-bottom: 1px solid var(--stone); vertical-align: top; text-align: left; font-weight: 400; }
.pf-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-table thead th.num { text-align: right; }
.pf-name { width: 30%; }
.pf-name a { font-weight: 700; font-size: 15.5px; color: var(--charcoal); text-decoration-color: var(--sterling); }
.pf-name a:hover { color: var(--orange-dark); }
.pf-note { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ash); line-height: 1.45; max-width: 46ch; }
.pf-rate { max-width: 230px; }
.pf-table .col-edit { width: 90px; text-align: right; }
.pf-table .col-edit .updated-by { margin-top: 6px; text-align: right; }

@media (max-width: 760px) {
  table.pf-table { min-width: 0; }
  .pf-scroll { overflow: visible; }
  .pf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pf-table, .pf-table tbody, .pf-table tr, .pf-table td, .pf-table tbody th { display: block; width: 100%; }
  .pf-table tr { padding: 16px 0; border-bottom: 1px solid var(--sterling); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .pf-table td, .pf-table tbody th { padding: 0; border: 0; }
  .pf-table tbody th { grid-column: 1 / -1; }
  .pf-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 700; color: var(--ash); }
  .pf-table .num { text-align: left; }
  .pf-table .pf-rate { grid-column: 1 / -1; max-width: none; }
  .pf-table .col-edit { grid-column: 1 / -1; text-align: left; width: auto; }
  .pf-table .col-edit .updated-by { display: inline; margin-left: 10px; }
}

/* Properties page */
.prop-list { display: grid; gap: 0; }
.prop-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-top: 1px solid var(--sterling); scroll-margin-top: 90px; }
.prop-card:last-child { border-bottom: 1px solid var(--sterling); }
.prop-cover { display: block; align-self: start; }
.prop-cover img { width: 300px; aspect-ratio: 11 / 8.5; object-fit: cover; background: var(--stone); box-shadow: 0 2px 10px rgba(54, 53, 55, .2); }
.prop-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.prop-title h2 { font-size: clamp(26px, 3vw, 32px); }
.prop-addr { color: var(--ash); margin: 6px 0 18px; }
.prop-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; margin: 0; padding-top: 14px; border-top: 4px solid var(--orange); }
.prop-facts dt { font-size: 13px; font-weight: 700; color: var(--ash); margin-bottom: 2px; }
.prop-facts dd { margin: 0; font-size: 15px; line-height: 1.4; }
.prop-note { margin: 16px 0 0; font-size: 14.5px; color: var(--ash); max-width: 70ch; }
.prop-card .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.prop-pages { font-size: 13.5px; margin-left: 4px; }
@media (max-width: 960px) { .prop-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .prop-card { grid-template-columns: 1fr; gap: 18px; }
  .prop-cover img { width: 100%; max-width: 420px; }
}

/* Market activity: Property column and combined Total SF (Office) */
.activity .col-prop { width: 11%; }
.activity .col-sf { width: 9%; }
.hint-line { font-size: 13px; color: var(--ash); margin: 0; }

/* v5: hero copy pinned to the left edge of the photo frame, not the centered content column */
.hero-copy.wrap { max-width: none; margin: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1100px) { .hero-copy.wrap { padding-left: 48px; } }
/* A photo shown whole (e.g. the site map): letterboxed on charcoal, pushed right so the logo sits in the open space */
.hero-img.is-contain { object-fit: contain; object-position: right center; background: var(--charcoal); }
@media (max-width: 640px) { .hero-img.is-contain { object-position: center top; } }
/* v5: portfolio table column widths (long text like "3.75 AC/66,284 SF BTS" wraps instead of squeezing the rate column) */
@media (min-width: 761px) {
  .pf-table .num { white-space: normal; width: 120px; }
  .pf-table td[data-label="Availability"] { min-width: 130px; }
  .pf-table .pf-rate { min-width: 210px; }
  .pf-name { width: 26%; }
}
/* v5: phones: logo and buttons sit below the photo instead of over it, so the site map stays readable */
@media (max-width: 640px) {
  .hero-frames { aspect-ratio: 4 / 3; max-height: none; }
  .hero-shade { display: none; }
  .hero-copy, .hero-copy.wrap { position: static; padding-top: 22px; padding-bottom: 26px; }
  .hero-img.is-contain { object-position: center; }
  .hero-ctrl { top: 12px; right: 12px; bottom: auto; }
}

/* v6: Home shows the property list only (no totals strip) */
.portfolio { padding-top: 36px; }

/* v7 (Prologis): totals strip back on Home, above the property table; photo covers on Properties */
.portfolio .spec { margin-bottom: 18px; }
.pf-table .pf-note { font-weight: 400; }
.prop-cover img { aspect-ratio: 16 / 10; }
@media (min-width: 761px) {
  .pf-name { width: 24%; }
  .pf-table .num { width: 110px; }
  .pf-table td[data-label="Office SF"] { width: 150px; }
}
@media (min-width: 961px) { .prop-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }

/* v8: Properties page groups, For lease chip, public read-only mode */
.prop-group { font-size: 24px; margin: 34px 0 6px; }
.prop-group:first-child { margin-top: 8px; }
.pstatus-lease { background: var(--orange); color: #fff; }
.prop-card.is-other .prop-facts { border-top-color: var(--sterling); }
.footer-link { background: none; border: 0; padding: 0; margin-left: auto; color: rgba(255,255,255,.7); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.footer-link:hover { color: #fff; }
body.is-readonly #add-row, body.is-readonly #act-import, body.is-readonly #comp-add, body.is-readonly #comps-import,
body.is-readonly .edit-btn, body.is-readonly .col-sel, body.is-readonly .col-edit, body.is-readonly .col-actions,
body.is-readonly form[data-comment], body.is-readonly [data-del-comment], body.is-readonly .sel-bar { display: none !important; }
.prop-facts .is-wide { grid-column: 1 / -1; }
