/* High Desert Realty — public pages (agent pages, area guides, insights).
 *
 * Every colour and typeface comes from hdr-theme.css, the single token file
 * the portal already uses, so the public pages and the agent portal are one
 * look (Haley's brand sheet, approved by Andrew and Haley 2026-10-06).
 * Load hdr-theme.css before this file.
 *
 * The public pages keep their own short alias names (--ground, --ink, ...)
 * so the page templates did not have to be rewritten; the aliases only point
 * at theme tokens. Light surfaces only, like the portal — the brand sheet has
 * no dark variant and the earlier navy dark mode is retired.
 */
:root {
  --ground:      var(--bg);          /* page: a light tint of the brand off-white */
  --surface:     var(--card);        /* fact cells, listing rows, chips: white */
  --edge:        var(--border);
  --edge-hi:     var(--border-hi);
  --ink:         var(--text);
  --ink-2:       var(--text-2);
  --muted:       var(--muted2);      /* 5.3:1 on white — public copy must read */
  --accent:      var(--accent);      /* taupe ink, for links and labels */
  --accent-soft: var(--accent-dim);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px;
        display: flex; flex-direction: column; gap: 34px; }

/* Brand line: the colour lockup, then the office line beside it */
.brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
         font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
         color: var(--muted); font-weight: 700; }
.brand a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.brand a:hover { color: var(--accent); }
.brand-logo { height: 44px; width: auto; display: block; }

header.person { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
header.person img {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--edge); background: var(--surface); flex: none;
}
h1 { margin: 0 0 4px; font-size: clamp(26px, 4.6vw, 34px); line-height: 1.15;
     letter-spacing: -0.015em; text-wrap: balance; font-weight: 700;
     color: var(--hdr-charcoal); }
.role { color: var(--muted); font-size: 14px; margin: 0; }
.summary { font-size: 17px; color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
         gap: 1px; background: var(--edge); border: 1px solid var(--edge);
         border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
            color: var(--muted); font-weight: 700; margin: 0 0 3px; }
.facts dd { margin: 0; font-size: 14.5px; color: var(--ink); }

.body p { margin: 0 0 15px; color: var(--ink-2); max-width: 66ch; }
.body p:last-child { margin-bottom: 0; }

h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
     color: var(--accent); margin: 0 0 14px; font-weight: 700; }

.listings { display: flex; flex-direction: column; gap: 1px;
            background: var(--edge); border: 1px solid var(--edge);
            border-radius: var(--radius); overflow: hidden; }
.listings a { background: var(--surface); padding: 13px 16px; display: block;
              text-decoration: none; color: var(--ink); font-size: 14.5px; }
.listings a:hover { background: var(--accent-soft); color: var(--accent); }
.listings .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.listing-list { list-style: none; margin: 0; padding: 0;
                display: flex; flex-direction: column; gap: 1px;
                background: var(--edge); border: 1px solid var(--edge);
                border-radius: var(--radius); overflow: hidden; }
.listing-list li { background: var(--surface); padding: 13px 16px; }
.listing-list a { text-decoration: none; color: var(--ink); font-size: 14.5px;
                  font-weight: 600; }
.listing-list a:hover { color: var(--accent); }
.listing-list .meta { display: block; color: var(--muted); font-size: 12.5px;
                      margin-top: 2px; font-weight: 400; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 13px; padding: 6px 11px; border: 1px solid var(--edge-hi);
           border-radius: 999px; text-decoration: none; color: var(--ink-2);
           background: var(--surface); }
.chips a:hover { border-color: var(--accent); color: var(--accent);
                 background: var(--accent-soft); }

.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
        color: var(--muted); font-weight: 700; display: block; margin-bottom: 5px; }
input, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--edge-hi); border-radius: 6px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px;
}
input:focus, textarea:focus { outline: 2px solid var(--hdr-charcoal); outline-offset: 1px; }
button {
  align-self: flex-start; padding: 11px 20px; border: 0; border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600;
  font-size: 14.5px; cursor: pointer;
}
button:hover { background: var(--btn-bg-h); }
button:disabled { opacity: .5; cursor: not-allowed; }
.note { font-size: 13px; color: var(--muted); }
.flash { font-size: 14px; padding: 11px 14px; border-radius: 6px;
         background: var(--accent-soft); color: var(--accent); display: none; }

footer { border-top: 1px solid var(--edge); padding-top: 20px;
         font-size: 13px; color: var(--muted); }
footer a { color: var(--accent); }
footer strong { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
