/* An agency's website (spec 2026-10-26-agency-websites §7, §14): the layout of the site's own pages, on top of
   Northlight (northlight.v1.css) and the agency's accent (/_static/brand.css). Only Northlight's tokens: no colour,
   radius or font of its own. No inline styles anywhere (the CSP refuses them). Rename the file (site.v4.css next) when it
   changes, so a cached copy never outlives it (v3: a form page's panel takes the page's width). */

html.nl-root { min-height: 100%; }
body { margin: 0; }
main { padding-bottom: var(--space-24); }
.ribbon { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); text-align: center;
  font-size: 14px; padding: 8px var(--space-4); }

/* Header and footer. A logo is JPEG on white (spec W19); multiply lets the page's ground show through (N8). */
.logo-img { max-height: 48px; width: auto; display: block; mix-blend-mode: multiply; }
[data-theme="midnight"] .logo-img { mix-blend-mode: normal; }
.nl-nav-links { justify-content: flex-start; }
/* Northlight's header is its own stacking context (z-index): it needs the ground for multiply to blend with. */
.nl-nav { background: var(--bg); }
.site-foot { border-top: 1px solid var(--line); padding: var(--space-16) 0 var(--space-24); font-size: 15px; }
.site-foot p { margin: 6px 0; }
.foot-grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.foot-brand .nl-logo { margin-bottom: var(--space-3); }
.site-foot .nl-eyebrow { margin-bottom: var(--space-2); }
.site-foot .nl-icon { vertical-align: -3px; }
.socials { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.foot-note { color: var(--muted); font-size: 13px; margin-top: var(--space-8); }
.foot-note p { margin: 0 0 8px; }
.made { color: var(--muted); font-size: 13px; margin-top: var(--space-4); }
.wa { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 20; box-shadow: var(--shadow-lg); }

/* Home. */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); padding-top: var(--space-12); }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--space-6); }
.hero-photo { flex: 1 1 320px; position: relative; aspect-ratio: 4 / 5; max-height: 640px; border-radius: var(--r-lg); overflow: hidden; }
.hero-photo .nl-ph { position: absolute; inset: 0; border-radius: var(--r-lg); }
.hero-search { margin-top: var(--space-10); margin-bottom: var(--space-12); }
.nl-search .nl-btn .nl-icon { width: 18px; height: 18px; }

/* Prose the agency writes (Markdown). */
.prose p { margin: 0 0 1em; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  font-size: 28px; line-height: 1.15; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.nl-lead.prose p:last-child { margin-bottom: 0; }
.page { max-width: 820px; padding-top: var(--space-12); display: flex; flex-direction: column; gap: var(--space-6); }

/* Results. Northlight's segmented control and pills, as links. */
.results { padding-top: var(--space-12); }
.nl-seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: var(--pill);
  font-weight: 500; font-size: 14px; color: var(--muted); transition: background-color .4s var(--ease), color var(--dur-quick); }
.nl-seg a.nl-on { background: var(--ink); color: var(--bg); }
.nl-pills { margin-bottom: var(--space-6); }
.filters { margin-bottom: var(--space-12); align-items: stretch; }
.filters .nl-field { flex: 1 1 160px; }
.more-filters { flex: 0 1 auto; padding: 4px 8px; }
.more-filters[open] { flex: 1 1 100%; }
.more-filters > summary { list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-grid { display: flex; flex-wrap: wrap; gap: 6px; padding-top: var(--space-3); }
.more-grid .nl-field { flex: 1 1 180px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 0 16px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.filter-actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); padding: 4px 8px; }
.empty { padding: var(--space-12) 0; display: flex; flex-direction: column; gap: var(--space-2); }
.pager { list-style: none; padding: 0; margin: var(--space-12) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--touch);
  min-height: var(--touch); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); font-weight: 500; }
.pager a:hover { border-color: var(--ink); }
.pager span[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* A property. */
.detail { padding-top: var(--space-8); }
.back { color: var(--muted); }
.detail-head { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-6) 0 var(--space-8); }
.address { display: inline-flex; align-items: center; gap: 8px; }
.gallery { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-lg); }
.gallery .nl-ph { flex: 0 0 100%; aspect-ratio: 3 / 2; scroll-snap-align: start; border-radius: var(--r-lg); }
@media (min-width: 900px) { .gallery .nl-ph { flex-basis: 72%; aspect-ratio: 2 / 1.1; } }
.detail-cols { display: flex; flex-wrap: wrap; gap: var(--space-14); margin-top: var(--space-12); }
.detail-main { flex: 1 1 520px; display: flex; flex-direction: column; gap: var(--space-8); }
.prices { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.prices .nl-price { font-size: clamp(28px, 3vw, 40px); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags .nl-tag { border: 1px solid var(--line); }
.description { white-space: pre-line; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--space-5); font-weight: 500; }
.panel { flex: 1 1 320px; align-self: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 1100px) { .detail-cols .panel { position: sticky; top: var(--space-6); max-width: 400px; } }

/* Forms (spec §8). */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  min-height: var(--touch); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-size: 16px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .check { padding: 0; color: var(--ink); font-size: 14px; flex-direction: row; }
.form .error { color: var(--ink); font-size: 13px; font-weight: 600; }
.form .error::before { content: "• "; color: var(--accent); }
.form .alert { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--ink); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .nl-btn { align-self: flex-start; }
/* A form page's panel: the shared .panel shrinks to its content inside the page's column (align-self: flex-start, a
   flex basis that is a height there), so the form gets the page's width, up to a comfortable line. */
.form-panel { margin-top: var(--space-4); flex: none; align-self: stretch; width: 100%; max-width: 560px; }
.thanks { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: var(--space-5);
  background: var(--surface); display: flex; flex-direction: column; gap: var(--space-3); }
