/* Shared by the building pages (generated by scripts/build_buildings.py in the kissmyhoass repo) and
   the search page (site/buildings/index.html). The other pages carry their own copy of these rules. */
:root {
  --red: #D63027;
  --red-deep: #A8231C;
  --cream: #FFF4E0;
  --cream-2: #F7E8CC;
  --ink: #1C1714;
  --ink-soft: #4A403A;
  --amber: #F6D9A0;
  --line: #d9cdb6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.col { max-width: 760px; }

/* Header, navigation and breadcrumbs */
.hero { background: var(--red); color: var(--cream); }
.hero a:focus-visible { outline-color: var(--cream); }
/* The wordmark, H.O.A.ss (Curtis, 2026-10-31): H, O and A stand out, and the dots step from gold to pale
   gold, the last taking the colour of "ss" so it runs into it. Red and brown on light, gold on red and dark. */
.hoa { color: var(--red); }
.dot { font-size: .55em; }
.dot.a { margin: 0 -.11em 0 .01em; color: var(--red); }
.dot.b { margin: 0 .01em 0 -.11em; color: #7A2A20; }
.dot.c { margin: 0 -.1em 0 -.05em; }
.hero .hoa, .hero .dot.a, .cta .hoa, .cta .dot.a, footer .hoa, footer .dot.a { color: #FFC93C; }
.hero .dot.b, .cta .dot.b, footer .dot.b { color: #FFE29A; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 64px; height: 64px; flex: none; }
@media (max-width: 480px) { .brand svg { width: 56px; height: 56px; } }
.brand span { font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.sitenav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.sitenav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; }
.sitenav a:hover, .sitenav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.sitenav .navcta { border: 2px solid var(--cream); border-radius: 999px; padding: 8px 16px; }
.sitenav .navcta:hover { background: var(--cream); color: var(--red); text-decoration: none; }
.hero-body { padding-top: 28px; padding-bottom: 52px; }
.crumbs { margin: 0 0 16px; font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "\203A"; margin: 0 10px; }
.crumbs a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(255, 244, 224, 0.45); }
.crumbs a:hover { border-bottom-color: var(--cream); }
h1 { margin: 0; max-width: 22ch; font-weight: 900; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.03em; }
.dek { margin: 18px 0 0; max-width: 52ch; font-size: clamp(17px, 2.1vw, 20px); }
.meta { margin: 14px 0 0; font-weight: 700; font-size: 15px; color: var(--amber); }
@media (max-width: 720px) {
  .sitenav { width: 100%; gap: 6px 16px; }
  .sitenav a { font-size: 14px; }
  .sitenav .navcta { margin-left: auto; padding: 6px 14px; }
}
@media (max-width: 480px) { .crumbs { font-size: 12px; letter-spacing: 0.08em; } .crumbs li + li::before { margin: 0 6px; } }

/* Body */
main .wrap { padding-top: 40px; padding-bottom: 64px; }
h2 { margin: 44px 0 10px; font-weight: 900; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -0.02em; }
h2:first-child { margin-top: 0; }
h3 { margin: 26px 0 6px; font-weight: 900; font-size: 20px; }
p { margin: 0 0 14px; }
.note { font-size: 14px; color: var(--ink-soft); }
.card { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 22px 24px; margin: 0 0 18px; }
.card.dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card.dark h2, .card.dark h3 { color: var(--amber); }
.card.dark .note { color: #d8cbb8; }
.status h2 { margin: 0 0 6px; font-size: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--red); color: var(--cream); font: inherit; font-weight: 900; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--cream); }
.card.dark .btn:hover { background: var(--cream); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.card.dark .btn-ghost { color: var(--cream); border-color: var(--cream); }
.row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 14px; }

/* Facts */
table.facts { width: 100%; border-collapse: collapse; font-size: 16px; margin: 6px 0 10px; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.facts th { width: 38%; font-weight: 900; }

/* Checklist of documents */
.need { list-style: none; margin: 6px 0 0; padding: 0; }
.need li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.need b { display: block; }
.need span { font-size: 15px; color: var(--ink-soft); }
.need a { font-weight: 900; color: var(--red); text-decoration: none; white-space: nowrap; }
.need a:hover { text-decoration: underline; }

/* Forms */
form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
label.f { display: block; margin: 10px 0 4px; font-weight: 900; font-size: 15px; }
input[type=text], input[type=email], input[type=search], select {
  font: inherit; font-size: 16px; padding: 11px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
form.inline input[type=email] { flex: 1 1 240px; width: auto; border-radius: 999px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 10px 0 0; font-weight: 700; font-size: 15px; }
.msg.err { color: var(--red-deep); }
.card.dark .msg.err { color: var(--amber); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }

/* Crowd answers: names and managers */
.lead { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lead .v { font-weight: 900; font-size: 18px; }
.lead .src { font-size: 13px; color: var(--ink-soft); margin-left: 6px; }
.lead .ask { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lead button, .chip { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.lead button:hover, .chip:hover { background: var(--ink); color: var(--cream); }
.lead .done { font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* Search */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; max-width: 640px; }
.searchbar input { flex: 1 1 280px; width: auto; border: 0; border-radius: 999px; padding: 14px 20px; font-size: 17px; }
.searchbar .btn { background: var(--ink); }
.searchbar .btn:hover { background: var(--cream); color: var(--ink); }
/* The building finder: province or state and city first, then the address, with suggestions as you type */
.finder { margin-top: 24px; max-width: 760px; display: grid; gap: 12px; }
.finder label span { display: block; margin: 0 0 6px; font-weight: 900; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.finder-place { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.finder select, .finder input { border: 0; border-radius: 12px; padding: 13px 16px; font-size: 17px; }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder .btn { background: var(--ink); min-height: 52px; }
.finder .btn:hover { background: var(--cream); color: var(--ink); }
.finder select:focus-visible, .finder input:focus-visible, .finder .btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.combo { position: relative; flex: 1 1 320px; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 12px 30px rgba(28, 23, 20, 0.25); max-height: 380px; overflow-y: auto; }
.suggest li { padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--ink); color: var(--cream); }
.suggest .t { display: block; font-weight: 900; }
.suggest .s { display: block; font-size: 14px; }
@media (max-width: 620px) { .finder-place { grid-template-columns: 1fr; } }

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.results a { display: block; text-decoration: none; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; }
.results a:hover { background: var(--ink); color: var(--cream); }
.results .t { display: block; font-weight: 900; font-size: 19px; }
.results .s { display: block; font-size: 15px; }

footer { background: var(--ink); color: var(--cream); padding: 30px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer a:focus-visible { outline-color: var(--cream); }

/* Directories: a city's neighbourhoods, the cities on the search page */
.dir { columns: 3 220px; column-gap: 28px; list-style: none; margin: 8px 0 24px; padding: 0; }
.dir li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); }
.dir a { font-weight: 700; text-decoration: none; }
.dir a:hover { text-decoration: underline; }
.dir span { float: right; font-size: 14px; color: var(--ink-soft); }

/* The docs library's own brand (Curtis, 2026-11-02). Plain text until OpenCondoDocs.org serves a site; then a link. */
.powered { margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--amber); }
.powered .ocd { color: var(--cream); font-weight: 900; letter-spacing: 0; }
.powered a.ocd { text-decoration: none; border-bottom: 1px solid rgba(255, 244, 224, 0.4); }
.powered a.ocd:hover { border-bottom-color: var(--cream); }
