/* Screen Estate: clear blue, quiet surfaces, architectural spacing. */
:root {
    --primary: #2458eb;
    --primary-hover: #1944bd;
    --navy: #102344;
    --pale: #edf3ff;
    --paper: #fafbfd;
    --surface: #ffffff;
    --forest: var(--navy);
    --forest-dark: #0b1933;
    --ink: #253650;
    --muted: #607087;
    --line: #dce4ef;
    --orange: var(--primary);
    --orange-hover: var(--primary-hover);
    --sage: var(--pale);
    --sans: var(--gh-font-body, "Avenir Next", "Segoe UI", sans-serif);
    --serif: var(--gh-font-heading, "Avenir Next", "Segoe UI", sans-serif);
    --radius: 12px;
    --page-width: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body > #main-content { min-height: 55vh; }
::selection { background: #d8e4ff; color: var(--navy); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--orange); }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--forest); line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.04em; }
h1 { font-size: clamp(2.8rem, 5.6vw, 5.8rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
h3 { font-size: 1.2rem; }
em { font-weight: inherit; }
p:last-child { margin-bottom: 0; }
.skip-link { position: fixed; z-index: 10000; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 20px; background: var(--forest); color: white; border-radius: var(--radius); }
.skip-link:focus { transform: translateY(0); color: white; }
.page-shell, .app-shell { width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; }
.app-shell { padding-block: 64px 96px; min-height: 220px; scroll-margin-top: 28px; }
.app-page { padding-block: 38px 96px; min-height: 65vh; }
.app-page > main { min-height: 240px; }
.eyebrow { color: var(--primary); font-family: var(--sans); font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.text-link, .hero-link { display: inline-flex; align-items: center; gap: 28px; padding-bottom: 7px; border-bottom: 1px solid currentColor; font-size: .85rem; font-weight: 600; text-decoration: none; }
.page-heading { max-width: 820px; margin-block: 20px 48px; }
.page-heading h1 { margin-bottom: 20px; }
.page-heading > .muted { max-width: 570px; font-size: 1.05rem; }

/* Global navigation */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(var(--page-width), calc(100% - 96px)); min-height: 84px; margin-inline: auto; }
.wordmark { display: inline-flex; align-items: baseline; flex-shrink: 0; color: var(--forest); font-size: 1.85rem; font-weight: 750; line-height: 1; letter-spacing: -.085em; text-decoration: none; }
.wordmark > span:first-child { font-weight: 400; }
.brand-mark { align-self: flex-start; width: 7px; height: 7px; margin: 3px 0 0 6px; background: var(--orange); border-radius: 50%; }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.primary-nav a { position: relative; padding-block: 12px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.primary-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 2px; background: var(--orange); content: ""; }
.identity-controls { display: flex; align-items: center; gap: 16px; min-width: 0; }
.identity-status { max-width: 150px; overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.connect-button { background: var(--orange) !important; border-color: var(--orange) !important; }
.connect-button:hover { background: var(--orange-hover) !important; border-color: var(--orange-hover) !important; }

/* An abstract architectural elevation, not a sample property. */
.search-hero { display: grid; grid-template-columns: 1.2fr 1fr; width: min(var(--page-width), calc(100% - 96px)); margin: 52px auto 40px; }
.hero-copy { padding: 24px 48px 0 0; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.hero-copy h1 { position: relative; z-index: 1; margin-bottom: 25px; font-size: clamp(3.2rem, 5.4vw, 5.5rem); line-height: 1.04; }
.hero-copy h1 em { color: var(--orange); }
.hero-description { max-width: 430px; margin-bottom: 27px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.hero-link { gap: 48px; }
.hero-footnote { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 46px; color: var(--muted); font-size: .65rem; letter-spacing: .04em; }
.hero-footnote span + span { border-left: 1px solid var(--line); padding-left: 20px; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; min-height: 480px; background: var(--pale); }
.hero-art::after { position: absolute; z-index: -1; right: -20%; bottom: -38%; width: 100%; height: 90%; border: 1px solid #b6c8e5; border-radius: 50%; content: ""; }
.art-caption { position: absolute; z-index: 3; top: 25px; left: 28px; color: var(--muted); font-family: var(--sans); font-size: .95rem; }
.art-sun { position: absolute; z-index: -1; top: 73px; right: 43px; width: 112px; aspect-ratio: 1; background: var(--primary); border-radius: 50%; }
.architecture { position: absolute; right: 18%; bottom: 52px; width: 58%; height: 69%; background: #fafbfd; border-radius: 150px 150px 0 0; box-shadow: 24px 20px 0 #cfddf3; }
.architecture::before { position: absolute; inset: 15px 15px 0; border: 1px solid #cad7ec; border-bottom: 0; border-radius: 140px 140px 0 0; content: ""; }
.architecture-inset { position: absolute; top: 18%; right: 21%; left: 21%; height: 40%; border: 11px solid #dce7fa; border-radius: 90px 90px 0 0; background: var(--navy); }
.architecture-inset::before, .architecture-inset::after { position: absolute; background: #9eb4d8; content: ""; }
.architecture-inset::before { top: 0; bottom: 0; left: 48%; width: 2px; }
.architecture-inset::after { top: 56%; right: 0; left: 0; height: 2px; }
.architecture-door { position: absolute; right: 37%; bottom: 0; width: 27%; height: 29%; background: #5777aa; border: 8px solid #dce7fa; border-bottom: 0; }
.architecture-window { position: absolute; right: 13%; bottom: 11%; width: 13%; height: 15%; background: #9eb4d8; border: 5px solid #dce7fa; }
.architecture-step { position: absolute; right: -15%; bottom: -16px; left: -15%; height: 16px; background: #b6c8e5; box-shadow: 0 13px 0 #d4e0f3; }
.art-coordinate { position: absolute; right: 25px; bottom: 17px; color: var(--muted); font-size: .7rem; letter-spacing: .12em; }
.network-strip { display: flex; justify-content: space-between; gap: 20px; width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; padding-block: 23px; border-block: 1px solid var(--line); font-size: .75rem; }
.network-strip > span { display: flex; align-items: baseline; gap: 14px; }
.strip-number { color: var(--orange); font-family: var(--serif); font-style: italic; }

/* Shared application controls */
.button, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 23px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: #ffffff; font-size: .9375rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background .18s, border-color .18s, box-shadow .18s; }
.button:hover, button:hover, input[type="submit"]:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: white; }
.button-secondary { border-color: var(--line); background: transparent; color: var(--forest); }
.button-secondary:hover { border-color: var(--forest); background: var(--sage); color: var(--forest); }
.button-small { min-height: 36px; padding: 8px 15px; font-size: .75rem; }
label, .field > span { display: block; margin-bottom: 7px; color: var(--ink); font-size: .875rem; font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #cad5e5; border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: .9375rem; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #718198; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #2458eb1a; }
textarea { min-height: 130px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--primary); vertical-align: middle; }
input[type="file"] { padding: 9px; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 5px 10px; border: 0; border-radius: 3px; background: var(--sage); color: var(--forest); }
fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding-inline: 8px; font-weight: 600; }
.toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.search-form { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; width: 100%; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--forest); background: var(--surface); }
.search-form .field { flex: 1 1 150px; }
.search-form .field:first-child { flex-grow: 2; }
.field { min-width: 0; }
.search-form > .form-grid { width: 100%; }
.identity-key { overflow-wrap: anywhere; font-size: .8rem; }
.description-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.image-placeholder { display: grid; height: 100%; place-items: center; padding: 24px; color: var(--muted); font-family: var(--serif); }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
a.button-secondary { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.maplibregl-marker { background: transparent; border: 0; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.filters .field { flex: 1 1 120px; }
.filters label { white-space: normal; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.results-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.results-header h2, .results-header p { margin-bottom: 0; }
.results-header h2 { font-size: 2rem; }
.results-header select { width: auto; }
.search-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); align-items: start; gap: 28px; }
.results-panel, .map-panel { min-width: 0; }
.map-panel { position: sticky; top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sage); }
#property-map { width: 100%; height: 600px; min-height: 340px; background: var(--sage); }
.map-panel > p { padding: 12px 16px; font-size: .75rem; }
.map-panel button { min-height: 0; padding: 0; border: 0; border-radius: 0; }
.map-panel .leaflet-popup-content { color: var(--ink); font-family: var(--sans); }
.map-panel .leaflet-popup-content a { color: var(--forest); }
.map-panel .leaflet-control-attribution { font-size: 10px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.results-panel .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.property-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.property-card:hover { border-color: #a9bee9; box-shadow: 0 12px 32px #1023440d; }
a.property-card, .property-card > a { display: block; color: inherit; text-decoration: none; }
.property-image { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); object-fit: cover; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property-card:hover .property-image img { transform: scale(1.025); }
.property-image .badge { position: absolute; top: 12px; left: 12px; background: var(--surface); }
.property-body { padding: 21px; }
.property-body .eyebrow { margin-bottom: 9px; font-size: .6rem; }
.property-body h2, .property-body h3 { margin-bottom: 12px; font-family: var(--sans); font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.property-body h2 a, .property-body h3 a { text-decoration: none; }
.price { margin-block: 12px; color: var(--forest); font-size: 1.15rem; font-weight: 650; letter-spacing: -.03em; }
.price small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; color: var(--muted); font-size: .75rem; }
.property-body .meta { padding-top: 13px; border-top: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--sage); color: var(--forest); font-size: .65rem; font-weight: 600; line-height: 1.5; letter-spacing: .04em; }
.empty-state { grid-column: 1 / -1; padding: clamp(28px, 5vw, 64px); border: 1px dashed #b6c8e5; background: var(--pale); text-align: center; }
.empty-state h2 { font-size: 2rem; }
.empty-state p { max-width: 480px; margin-inline: auto; color: var(--muted); }
.empty-state .button { margin-top: 10px; }
.notice, .error, .success { margin-block: 20px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid #9a7b36; border-radius: var(--radius); background: #f1ebd8; color: #675326; font-size: .85rem; overflow-wrap: anywhere; }
.error, .notice.error { border-color: #e0b3a7; border-left-color: #a43b28; background: #f6e8e1; color: #862e20; }
.success, .notice.success { border-color: #b8cdb5; border-left-color: #3e6f43; background: #e9f0e2; color: #2c5c33; }

/* Property, identity, and publishing views */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: 28px; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel > h2:first-child { margin-bottom: 24px; font-size: 1.8rem; }
.panel + .panel { margin-top: 24px; }
.dashboard-grid > .panel + .panel { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wide { grid-column: 1 / -1; }
.form-grid > .actions { margin-top: 8px; }
.relay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: .85rem; overflow-wrap: anywhere; }
.relay-row > :first-child { min-width: 0; }
.relay-row:last-child { border-bottom: 0; }
.relay-row button { flex-shrink: 0; }
.listing-detail { max-width: 1150px; margin-inline: auto; }
.listing-detail h1 { max-width: 900px; margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.listing-detail > .price { font-size: 1.8rem; }
.listing-detail > .meta { margin-block: 20px 30px; }
.listing-detail .panel { margin-top: 28px; }
.listing-detail p, .listing-detail h1 { overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 28px; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; max-height: 600px; aspect-ratio: 4 / 3; background: var(--sage); object-fit: cover; }
.gallery > :first-child { grid-column: 1 / -1; }
.gallery > :first-child img, .gallery > img:first-child { aspect-ratio: 16 / 9; }
.profile-header { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; padding: 36px; border: 1px solid var(--line); background: var(--sage); }
.profile-header img { width: 96px; height: 96px; flex-shrink: 0; border: 4px solid var(--surface); border-radius: 50%; object-fit: cover; }
.profile-header > div { min-width: 0; flex: 1; }
.profile-header h1 { margin-bottom: 10px; font-size: clamp(2.2rem, 4vw, 3.5rem); overflow-wrap: anywhere; }
.profile-header p, .profile-header code { overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs button, .tabs a { min-height: 40px; padding: 9px 17px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: .85rem; text-decoration: none; }
.tabs .active, .tabs [aria-selected="true"], .tabs [aria-current="page"] { border-color: var(--forest); background: var(--forest); color: var(--surface); }
.tabs button:hover, .tabs a:hover { background: var(--sage); color: var(--forest); }

/* Ghost journal and editor content */
.guides-page { padding-block: 42px 96px; }
.guides-heading { margin-bottom: 64px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.guide-card { min-width: 0; border-bottom: 1px solid var(--line); }
.guide-image { display: block; overflow: hidden; margin-bottom: 25px; background: var(--sage); }
.guide-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.guide-card:hover .guide-image img { transform: scale(1.025); }
.guide-body { padding-bottom: 28px; }
.guide-body h2 { margin-bottom: 16px; font-size: 2rem; }
.guide-body h2 a { text-decoration: none; }
.guide-body .muted { font-size: .9rem; }
.guide-date { color: var(--muted); font-weight: 400; letter-spacing: .03em; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 55px; font-size: .85rem; }
.article-shell { width: min(1200px, calc(100% - 96px)); margin: 0 auto; padding-block: 48px 96px; }
.article-header { max-width: 850px; margin: 0 auto 40px; }
.article-header h1 { margin-bottom: 26px; }
.article-deck { max-width: 740px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--muted); font-size: .75rem; }
.article-feature { margin: 0 0 48px; }
.article-feature img { width: 100%; max-height: 760px; object-fit: cover; }
figcaption { margin-top: 10px; color: var(--muted); font-size: .75rem; text-align: center; }
.gh-content { display: flow-root; font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.gh-content > * { max-width: 720px; margin-inline: auto; }
.gh-content > * + * { margin-top: 24px; }
.gh-content h2, .gh-content h3 { margin-top: 48px; }
.gh-content h2 { font-size: 2.3rem; }
.gh-content h3 { font-size: 1.35rem; }
.gh-content a { text-decoration-color: var(--orange); }
.gh-content blockquote { padding: 8px 0 8px 28px; border-left: 3px solid var(--orange); color: var(--forest); font-family: var(--serif); font-size: 1.6rem; line-height: 1.5; }
.gh-content pre { overflow-x: auto; padding: 24px; background: var(--sage); font-size: .85rem; }
.gh-content code { font-size: .85em; }
.gh-content hr { margin-block: 48px; border: 0; border-top: 1px solid var(--line); }
.gh-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.gh-content th, .gh-content td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.gh-content iframe { max-width: 100%; }
.gh-content .kg-width-wide { max-width: 1000px; }
.gh-content .kg-width-full { max-width: none; }
.kg-image-card img { margin-inline: auto; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 12px; }
.kg-gallery-row { display: flex; gap: 12px; }
.kg-gallery-image { min-width: 0; flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-container { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.kg-bookmark-content { min-width: 0; flex: 1; padding: 24px; }
.kg-bookmark-title { font-weight: 600; line-height: 1.4; }
.kg-bookmark-description { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.kg-bookmark-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: .75rem; }
.kg-bookmark-icon { width: 20px; height: 20px; }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 30%; }
.kg-bookmark-thumbnail img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--sage); }
.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-button-card a { padding: 10px 22px; border-radius: var(--radius); background: var(--forest); color: white; text-decoration: none; }
.article-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 720px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }

/* Colophon */
.site-footer { padding: 64px max(48px, calc((100vw - var(--page-width)) / 2)) 28px; background: var(--navy); color: #edf3ff; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 48px; }
.site-footer .wordmark { color: var(--paper); }
.footer-top p { font-family: var(--sans); font-size: 1.25rem; line-height: 1.6; }
.footer-top nav { display: grid; justify-content: end; gap: 12px; font-size: .8rem; }
.footer-top nav a { display: flex; justify-content: space-between; gap: 36px; text-decoration: none; }
.site-footer a:hover { color: #b7ceff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; border-top: 1px solid #ffffff26; color: #b6c5dc; font-size: .8125rem; }
.footer-bottom a { text-decoration: none; }

@media (min-width: 1600px) {
    .hero-copy { padding-top: 38px; }
    .hero-art { min-height: 530px; }
}
@media (max-width: 1100px) {
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-inner, .page-shell, .app-shell, .search-hero, .network-strip { width: calc(100% - 56px); }
    .header-inner { gap: 20px; }
    .identity-status { max-width: 90px; }
    .primary-nav { gap: 20px; }
    .hero-copy { padding-right: 30px; }
    .hero-copy h1 { font-size: clamp(3rem, 5.8vw, 4.5rem); }
    .hero-art { min-height: 460px; }
    .hero-footnote { margin-top: 28px; }
    .search-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 20px; }
    .results-panel .listing-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 20px; }
    .panel { padding: 22px; }
    .site-footer { padding-inline: 28px; }
    .article-shell { width: calc(100% - 56px); }
}
@media (max-width: 800px) {
    .header-inner { flex-wrap: wrap; gap: 0 18px; padding-top: 22px; }
    .wordmark { font-size: 1.75rem; }
    .identity-controls { margin-left: auto; }
    .identity-status { max-width: 130px; }
    .primary-nav { order: 3; width: 100%; justify-content: center; gap: 40px; margin-top: 14px; padding-block: 5px; border-top: 1px solid var(--line); }
    .search-hero { grid-template-columns: 1.2fr 1fr; margin-top: 30px; }
    .hero-copy { padding-top: 8px; }
    .hero-copy > .eyebrow { margin-bottom: 23px; font-size: .6rem; }
    .hero-copy h1 { font-size: clamp(2.65rem, 6vw, 3.8rem); }
    .hero-description { font-size: .9rem; }
    .hero-art { min-height: 390px; }
    .art-caption { top: 20px; left: 18px; max-width: 160px; font-size: .8rem; }
    .art-sun { right: 20px; width: 80px; }
    .architecture { right: 21%; width: 60%; height: 61%; }
    .architecture-inset { border-width: 7px; }
    .art-coordinate { right: 15px; left: 15px; font-size: .45rem; }
    .hero-footnote { display: none; }
    .network-strip { gap: 18px; font-size: .65rem; }
    .network-strip > span { gap: 9px; }
    .search-layout { grid-template-columns: minmax(0, 1fr); }
    .map-panel { position: relative; top: auto; }
    #property-map { height: 400px; }
    .results-panel .listing-grid, .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-grid > .panel + .panel { margin-top: 0; }
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-body h2 { font-size: 1.7rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top > .wordmark { grid-column: 1 / -1; }
    .footer-top nav { justify-content: start; }
}
@media (max-width: 560px) {
    .header-inner, .page-shell, .app-shell, .search-hero, .network-strip, .article-shell { width: calc(100% - 36px); }
    .header-inner { padding-top: 18px; }
    .wordmark { font-size: 1.65rem; }
    .identity-controls { gap: 8px; }
    .identity-status { max-width: 76px; font-size: .6rem; }
    .connect-button { gap: 8px; padding: 8px 11px; font-size: .7rem; }
    .primary-nav { justify-content: space-between; gap: 12px; margin-top: 18px; }
    .primary-nav a { font-size: .75rem; }
    .search-hero { grid-template-columns: minmax(0, 1fr); margin-top: 30px; margin-bottom: 24px; }
    .hero-copy { padding: 0; }
    .hero-copy h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
    .hero-description { max-width: 390px; margin-bottom: 22px; font-size: .95rem; }
    .hero-link { margin-bottom: 28px; }
    .hero-art { min-height: 265px; }
    .architecture { right: 26%; bottom: 39px; width: 42%; height: 73%; border-radius: 100px 100px 0 0; box-shadow: 20px 12px 0 #cfddf3; }
    .architecture::before { inset: 10px 10px 0; }
    .architecture-inset { top: 17%; right: 20%; left: 20%; height: 43%; border-width: 7px; }
    .architecture-door { border-width: 5px; }
    .architecture-window { border-width: 3px; }
    .architecture-step { bottom: -10px; height: 10px; box-shadow: 0 8px 0 #d4e0f3; }
    .art-caption { max-width: 115px; top: 16px; left: 16px; font-size: .7rem; }
    .art-sun { top: 30px; right: 34px; width: 72px; }
    .art-coordinate { bottom: 10px; text-align: right; }
    .network-strip { display: grid; gap: 12px; padding-block: 18px; font-size: .7rem; }
    .network-strip > span { gap: 16px; }
    .app-shell { padding-block: 32px 56px; }
    .app-page { padding-block: 25px 56px; }
    .page-heading { margin-block: 10px 30px; }
    .page-heading h1 { font-size: 2.9rem; }
    .page-heading > .muted { font-size: .95rem; }
    .toolbar { gap: 14px; }
    .search-form { padding: 18px; gap: 16px 12px; }
    .search-form .field { flex-basis: calc(50% - 12px); }
    .search-form .field:first-child { flex-basis: 100%; }
    .search-form > .button, .search-form > button { width: 100%; }
    .filters { width: 100%; }
    .results-header { align-items: start; }
    .results-header h2 { font-size: 1.7rem; }
    .results-header select { max-width: 100%; }
    .results-panel .listing-grid, .listing-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }
    .property-body { padding: 20px; }
    .property-body h2, .property-body h3 { font-size: 1.6rem; }
    #property-map { height: 340px; }
    .panel { padding: 20px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .actions { align-items: stretch; }
    .actions > .button, .actions > button { flex: 1 1 auto; }
    .profile-header { align-items: start; gap: 18px; padding: 22px; }
    .profile-header img { width: 70px; height: 70px; }
    .profile-header > div { flex-basis: 100%; }
    .profile-header h1 { font-size: 2.5rem; }
    .gallery { gap: 7px; }
    .gallery img { aspect-ratio: 1; }
    .listing-detail h1 { font-size: 2.6rem; }
    .guides-page { padding-block: 30px 56px; }
    .guides-heading { margin-bottom: 40px; }
    .guide-body h2 { font-size: 2rem; }
    .article-shell { padding-block: 28px 56px; }
    .article-header h1 { font-size: 2.8rem; }
    .article-header { margin-bottom: 28px; }
    .article-byline { gap: 8px 16px; }
    .article-feature { margin-bottom: 30px; }
    .gh-content { font-size: 1rem; }
    .gh-content h2 { font-size: 1.9rem; }
    .gh-content blockquote { margin-left: 0; padding-left: 20px; font-size: 1.35rem; }
    .kg-bookmark-thumbnail { display: none; }
    .kg-gallery-row { gap: 6px; }
    .kg-gallery-container { gap: 6px; }
    .site-footer { padding: 36px 18px 22px; }
    .footer-top { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-bottom: 30px; }
    .footer-top > .wordmark { grid-column: auto; }
    .footer-top p { font-size: 1.3rem; }
    .footer-top nav { gap: 10px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
