/*
Theme Name: Brokerage Nexus
Theme URI: https://brokeragenexus.com/
Author: Brokerage Nexus
Description: An Underscores-inspired foundation for exploring real estate company ownership.
Version: 1.0.0-beta.4
Requires PHP: 8.0
Text Domain: brokerage-nexus
*/

:root {
	--bn-ink: #151714;
	--bn-muted: #6d7169;
	--bn-line: #dfe2da;
	--bn-paper: #f5f6f1;
	--bn-white: #fff;
	--bn-surface: #fff;
	--bn-surface-soft: #fafbf7;
	--bn-surface-muted: #eceee8;
	--bn-field: #fff;
	--bn-text-soft: #4f534c;
	--bn-header: rgba(245,246,241,.94);
	--bn-shadow: rgba(20,23,18,.1);
	--bn-accent: #b9f255;
	--bn-accent-dark: #789f34;
	--bn-panel: 390px;
	color-scheme: light;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
	--bn-ink: #f1f3ed;
	--bn-muted: #a5aba1;
	--bn-line: #343a32;
	--bn-paper: #111410;
	--bn-white: #1a1e19;
	--bn-surface: #1a1e19;
	--bn-surface-soft: #151914;
	--bn-surface-muted: #252a23;
	--bn-field: #20251f;
	--bn-text-soft: #c4c9c0;
	--bn-header: rgba(17,20,16,.94);
	--bn-shadow: rgba(0,0,0,.34);
	--bn-accent-dark: #9ed73f;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bn-paper); }
body { margin: 0; color: var(--bn-ink); background: var(--bn-paper); }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; padding: 12px; clip: auto; background: #fff; }

.site-header {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 72px; padding: 0 28px; border-bottom: 1px solid var(--bn-line); background: var(--bn-header);
}
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; letter-spacing: -.035em; }
.site-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--bn-ink); color: var(--bn-accent); font-size: 14px; letter-spacing: -.1em; }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--bn-muted); font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--bn-ink); }
.appearance-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid var(--bn-line); border-radius: 9px; background: var(--bn-surface); color: var(--bn-muted); cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.appearance-toggle:hover, .appearance-toggle:focus-visible { border-color: var(--bn-accent-dark); color: var(--bn-ink); outline: 0; }
.appearance-icon { flex: 0 0 auto; }
.appearance-icon-sun { display: none; }
html[data-theme="dark"] .appearance-icon-sun { display: block; }
html[data-theme="dark"] .appearance-icon-moon { display: none; }
.appearance-toggle.is-compact { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border-color: rgba(255,255,255,.13); border-radius: 10px; background: rgba(16,19,16,.88); box-shadow: 0 8px 28px rgba(0,0,0,.18); color: #c9cdc5; backdrop-filter: blur(14px); }
.appearance-toggle.is-compact .appearance-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--bn-line); border-radius: 999px; background: var(--bn-white); color: var(--bn-ink); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bn-accent-dark); }

.nexus-shell { height: calc(100vh - 72px); min-height: 620px; display: grid; grid-template-columns: minmax(0,1fr) var(--bn-panel); overflow: hidden; }
.map-column { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; }
.map-toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--bn-line); }
.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bn-muted); pointer-events: none; }
.company-search { width: 100%; height: 44px; padding: 0 42px; border: 1px solid var(--bn-line); border-radius: 12px; outline: 0; background: var(--bn-white); }
.company-search:focus { border-color: #aeb3a7; box-shadow: 0 0 0 3px rgba(185,242,85,.26); }
.shortcut { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 7px; border: 1px solid var(--bn-line); border-radius: 5px; color: var(--bn-muted); background: var(--bn-paper); font-size: 11px; }
.filter-button, .view-button, .zoom-button { height: 44px; padding: 0 14px; border: 1px solid var(--bn-line); border-radius: 12px; background: var(--bn-white); cursor: pointer; }
.filter-button[aria-pressed="true"], .view-button[aria-pressed="true"] { border-color: var(--bn-ink); background: var(--bn-ink); color: var(--bn-white); }
.result-count { margin-left: auto; color: var(--bn-muted); font-size: 12px; white-space: nowrap; }

.graph-viewport { position: relative; overflow: hidden; background: #0d100d; }
.globe-viewport::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 90px rgba(0,0,0,.42); }
#company-map { position: absolute; inset: 0; }
.mapboxgl-map { font-family: inherit; }
.mapboxgl-ctrl-bottom-left { left: 12px; bottom: 58px; }
.mapboxgl-ctrl-bottom-right { right: 12px; }
.mapboxgl-ctrl-logo, .mapboxgl-ctrl-attrib { opacity: .75; }
.mapboxgl-popup.company-dot-tooltip { pointer-events: none; }
.mapboxgl-popup.company-dot-tooltip .mapboxgl-popup-content { padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(13,16,13,.92); box-shadow: 0 8px 24px rgba(0,0,0,.25); color: #fff; font-size: 10px; font-weight: 650; line-height: 1.2; }
.mapboxgl-popup.company-dot-tooltip .mapboxgl-popup-tip { border-top-color: rgba(13,16,13,.92); border-bottom-color: rgba(13,16,13,.92); }
.company-marker { position: relative; width: 20px; height: 20px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--marker-color, var(--bn-accent)); box-shadow: 0 0 0 5px rgba(255,255,255,.12), 0 5px 20px rgba(0,0,0,.45); cursor: pointer; transition: width .15s, height .15s, opacity .15s, box-shadow .15s; }
.company-marker::after { content: attr(data-label); position: absolute; left: 50%; top: 25px; width: max-content; max-width: 170px; transform: translateX(-50%); padding: 5px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: rgba(17,20,16,.9); color: #fff; font-size: 10px; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.company-marker:hover, .company-marker:focus, .company-marker.is-active { width: 27px; height: 27px; z-index: 4; outline: none; box-shadow: 0 0 0 5px rgba(185,242,85,.26), 0 5px 22px rgba(0,0,0,.6); }
.company-marker.is-dimmed { opacity: .12; pointer-events: none; }
.company-marker.is-hidden { display: none; }
.company-marker.is-root { border-color: var(--bn-accent); }
.map-setup { position: absolute; inset: 0; z-index: 6; place-items: center; padding: 30px; background-color: #151714; background-image: radial-gradient(rgba(185,242,85,.18) 1px, transparent 1px); background-size: 24px 24px; color: #fff; text-align: center; }
.map-setup:not([hidden]) { display: grid; }
.map-setup > div { max-width: 480px; }
.map-setup .site-mark { margin: 0 auto 24px; background: var(--bn-accent); color: var(--bn-ink); }
.map-setup h2 { margin: 0 0 10px; font-size: 36px; letter-spacing: -.05em; }
.map-setup p { margin: 0 0 20px; color: #b8bdb3; line-height: 1.55; }
.map-setup code { display: block; padding: 12px 15px; border: 1px solid #42463f; border-radius: 9px; background: #0b0d0b; color: var(--bn-accent); font-size: 12px; }
.ownership-graph { width: 100%; height: 100%; min-height: 480px; display: block; touch-action: none; }
.graph-stage { transform-origin: 0 0; }
.graph-edge { fill: none; stroke: #b5bab0; stroke-width: 1.5; }
.graph-edge.is-active { stroke: var(--bn-ink); stroke-width: 2; }
.graph-node { cursor: pointer; outline: none; }
.node-card { fill: #fff; stroke: #d9ddd4; stroke-width: 1; filter: drop-shadow(0 5px 14px rgba(27,30,25,.05)); transition: stroke .15s; }
.graph-node:hover .node-card, .graph-node:focus .node-card, .graph-node.is-active .node-card { stroke: var(--bn-ink); stroke-width: 1.5; }
.graph-node.is-dimmed { opacity: .18; }
.node-mark { fill: var(--node-color, var(--bn-ink)); }
.node-initials { fill: #fff; font-size: 12px; font-weight: 750; text-anchor: middle; dominant-baseline: central; }
.node-name { fill: var(--bn-ink); font-size: 14px; font-weight: 700; }
.node-type { fill: var(--bn-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.node-count { fill: var(--bn-muted); font-size: 10px; }
.graph-empty { position: absolute; z-index: 2; inset: 0; display: none; place-items: center; text-align: center; color: #aeb3aa; }
.graph-empty.is-visible { display: grid; }
.graph-empty [data-empty="action"] { display: inline-block; margin-top: 14px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: #fff; font-size: 9px; text-decoration: none; }
.graph-empty [data-empty="action"][hidden] { display: none; }
.graph-controls { position: absolute; z-index: 3; left: 20px; bottom: 20px; display: flex; overflow: hidden; border: 1px solid var(--bn-line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(20,23,18,.08); }
.zoom-button { width: 42px; padding: 0; border: 0; border-radius: 0; border-right: 1px solid var(--bn-line); font-size: 18px; }
.zoom-button:last-child { border-right: 0; }
.legend { position: absolute; z-index: 3; right: 20px; top: 20px; bottom: auto; display: flex; gap: 15px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(13,16,13,.82); color: #d9ddd5; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }

.company-panel { overflow-y: auto; border-left: 1px solid var(--bn-line); background: var(--bn-white); }
.panel-inner { min-height: 100%; display: flex; flex-direction: column; }
.panel-kicker { padding: 24px 24px 0; color: var(--bn-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.panel-hero { padding: 30px 24px 24px; border-bottom: 1px solid var(--bn-line); }
.panel-logo { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; color: #fff; background: var(--company-color, var(--bn-ink)); font-weight: 750; letter-spacing: -.04em; }
.panel-logo.has-image, .company-profile-mark.has-image, .directory-card-mark.has-image, .related-mark.has-image { overflow: hidden; background: #fff; border: 1px solid var(--bn-line); }
.panel-logo.has-image.is-inverse, .company-profile-mark.has-image.is-inverse { background: var(--company-color, var(--bn-ink)); border-color: transparent; }
.directory-card-mark.has-image.is-inverse { background: var(--card-color, var(--bn-ink)); border-color: transparent; }
.related-mark.has-image.is-inverse { background: var(--related-color, var(--bn-ink)); border-color: transparent; }
.panel-logo img, .company-profile-mark img, .directory-card-mark img, .related-mark img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; box-sizing: border-box; object-fit: contain; }
.panel-logo img { padding: 9px; }
.directory-card-mark img { padding: 6px; }
.related-mark img { padding: 4px; }
.panel-title { margin: 0; font-size: clamp(28px,3vw,42px); line-height: .98; letter-spacing: -.055em; }
.panel-type { margin: 12px 0 0; color: var(--bn-muted); font-size: 13px; }
.panel-stats { display: grid; grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--bn-line); }
.panel-stat { padding: 18px 24px; }
.panel-stat:nth-child(odd) { border-right: 1px solid var(--bn-line); }
.panel-stat:nth-child(-n+2) { border-bottom: 1px solid var(--bn-line); }
.panel-stat strong { display: block; margin-bottom: 4px; font-size: 20px; letter-spacing: -.04em; }
.panel-stat span { color: var(--bn-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.panel-section { padding: 24px; border-bottom: 1px solid var(--bn-line); }
.panel-section h3 { margin: 0 0 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--bn-muted); }
.panel-section p { margin: 0; color: #4f534c; font-size: 14px; line-height: 1.6; }
.related-list { display: grid; gap: 8px; }
.related-button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 1px solid var(--bn-line); border-radius: 10px; background: var(--bn-white); text-align: left; cursor: pointer; }
.related-button:hover { border-color: #9fa49a; }
.related-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--related-color); color: #fff; font-size: 9px; font-weight: 700; }
.related-copy strong { display: block; font-size: 12px; }
.related-copy span { color: var(--bn-muted); font-size: 10px; }
.data-note { margin-top: auto; padding: 20px 24px; color: var(--bn-muted); background: var(--bn-paper); font-size: 11px; line-height: 1.5; }

.site-main:not(.nexus-shell), .standard-page { width: min(760px, calc(100% - 40px)); margin: 70px auto; }
.content-page h1 { margin: 0 0 48px; font-size: clamp(48px,8vw,82px); line-height: .9; letter-spacing: -.065em; }
.page-content { color: #4f534c; font-size: 14px; line-height: 1.75; }
.page-content h2 { margin: 38px 0 8px; color: var(--bn-ink); font-size: 19px; letter-spacing: -.035em; }
.page-content p { margin: 0 0 18px; }
.site-main.directory-page { width: min(1120px, calc(100% - 40px)); margin: 56px auto 80px; }
.directory-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.directory-header h1 { margin: 0; font-size: clamp(40px,7vw,76px); line-height: .95; letter-spacing: -.065em; }
.directory-header p { max-width: 440px; margin: 0; color: var(--bn-muted); line-height: 1.55; }
.directory-filters { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(5,minmax(115px,1fr)) auto; gap: 8px; align-items: end; padding: 15px; border: 1px solid var(--bn-line); border-radius: 15px; background: #fff; }
.directory-filters label { display: grid; gap: 6px; min-width: 0; }
.directory-filters label > span { color: var(--bn-muted); font-size: 7px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.directory-filters input, .directory-filters select { width: 100%; height: 40px; min-width: 0; padding: 0 10px; border: 1px solid var(--bn-line); border-radius: 8px; outline: 0; background: #fff; color: var(--bn-ink); font-size: 10px; }
.directory-filters input:focus, .directory-filters select:focus { border-color: #94b754; box-shadow: 0 0 0 3px rgba(185,242,85,.16); }
.directory-filter-actions { display: flex; gap: 6px; }
.directory-filter-actions button, .directory-filter-actions a { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border: 1px solid var(--bn-ink); border-radius: 8px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 750; text-decoration: none; }
.directory-filter-actions a { border-color: var(--bn-line); background: #fff; color: var(--bn-muted); }
.directory-results-bar { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 13px; }
.directory-results-bar strong { font-size: 12px; }
.directory-results-bar span { color: var(--bn-muted); font-size: 9px; }
.directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.directory-card { min-height: 270px; display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--bn-line); border-radius: 16px; background: #fff; }
.directory-card:hover { border-color: var(--bn-ink); }
.directory-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.directory-card-type { overflow: hidden; color: var(--bn-muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.directory-card-copy { margin: auto 0 18px; }
.directory-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.05; letter-spacing: -.045em; }
.directory-card h2 a { text-decoration: none; }
.directory-card p { margin: 0; color: var(--bn-muted); font-size: 12px; }
.directory-card-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--card-color, var(--bn-ink)); color: #fff; font-size: 11px; font-weight: 750; }
.directory-card-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 -20px; border-top: 1px solid var(--bn-line); border-bottom: 1px solid var(--bn-line); }
.directory-card-stats div { padding: 12px 20px; }
.directory-card-stats div + div { border-left: 1px solid var(--bn-line); }
.directory-card-stats dt { color: var(--bn-muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.directory-card-stats dd { margin: 5px 0 0; font-size: 13px; font-weight: 750; }
.directory-card-actions { display: flex; align-items: center; gap: 8px; padding-top: 14px; }
.directory-card-actions > a, .directory-card-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--bn-line); border-radius: 7px; background: #fff; color: var(--bn-muted); cursor: pointer; font-size: 8px; font-weight: 750; text-decoration: none; }
.directory-card-actions > a:first-child { border-color: var(--bn-ink); background: var(--bn-ink); color: #fff; }
.directory-card-actions form, .directory-card-actions form button { margin: 0; }
.directory-card-actions form { margin-left: auto; }
.directory-card-actions button, .directory-card-actions .directory-save-link { width: 32px; padding: 0; color: var(--bn-ink); }
.directory-empty { padding: 60px 24px; border: 1px dashed #cdd1c9; border-radius: 15px; text-align: center; }
.directory-empty h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.directory-empty p { margin: 10px 0 20px; color: var(--bn-muted); font-size: 11px; }
.directory-empty a { font-size: 10px; font-weight: 750; }
.directory-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.directory-pagination a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--bn-line); border-radius: 8px; background: #fff; font-size: 9px; text-decoration: none; }
.directory-pagination a[aria-current="page"] { border-color: var(--bn-ink); background: var(--bn-ink); color: #fff; }
.pagination-gap { display: grid; width: 24px; place-items: center; color: var(--bn-muted); font-size: 10px; }

.office-network-page { width: min(1180px,calc(100% - 40px)); margin: 62px auto 90px; }
.network-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 72px; align-items: end; padding-bottom: 60px; border-bottom: 1px solid var(--bn-line); }
.network-hero > *, .network-directory > * { min-width: 0; }
.network-brand-mark { margin-bottom: 24px; }
.network-hero h1 { max-width: 780px; margin: 0; font-size: clamp(58px,9vw,112px); line-height: .84; letter-spacing: -.078em; overflow-wrap: anywhere; }
.network-hero-copy > p { max-width: 690px; margin: 27px 0 0; color: var(--bn-text-soft); font-size: 16px; line-height: 1.65; }
.network-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border: 1px solid var(--bn-line); border-radius: 16px; overflow: hidden; background: var(--bn-surface); }
.network-stat-grid div { min-height: 116px; padding: 23px; }
.network-stat-grid div:nth-child(odd) { border-right: 1px solid var(--bn-line); }
.network-stat-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--bn-line); }
.network-stat-grid dt { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.network-stat-grid dd { margin: 10px 0 0; font-size: 28px; font-weight: 750; letter-spacing: -.055em; }
.network-footprint { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 48px; align-items: start; padding: 58px 0; border-bottom: 1px solid var(--bn-line); }
.network-footprint h2, .network-directory-heading h2 { margin: 7px 0 0; font-size: clamp(36px,5vw,58px); letter-spacing: -.06em; }
.network-market-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 1px; border: 1px solid var(--bn-line); border-radius: 14px; overflow: hidden; background: var(--bn-surface); }
.network-market-list a { display: grid; gap: 7px; min-height: 86px; padding: 18px; background: var(--bn-surface); box-shadow: 0 0 0 .5px var(--bn-line); text-decoration: none; }
.network-market-list a:hover, .network-market-list a:focus { background: var(--bn-surface-soft); }
.network-market-list strong { font-size: 13px; }
.network-market-list span { color: var(--bn-muted); font-size: 10px; }
.network-directory { padding-top: 62px; }
.network-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.network-directory-heading p { max-width: 360px; margin: 0; color: var(--bn-muted); font-size: 11px; line-height: 1.55; text-align: right; }
.network-filters.directory-filters { grid-template-columns: minmax(230px,1.5fr) repeat(3,minmax(145px,1fr)) auto; background: var(--bn-surface); }
.network-filters.directory-filters input, .network-filters.directory-filters select { background: var(--bn-field); color: var(--bn-ink); }
.network-office-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.network-office-card { display: flex; min-height: 265px; min-width: 0; flex-direction: column; padding: 20px; border: 1px solid var(--bn-line); border-radius: 15px; background: var(--bn-surface); }
.network-office-card:hover { border-color: var(--bn-ink); }
.network-office-card-copy > span { display: block; overflow: hidden; color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.network-office-card h3 { margin: auto 0 9px; font-size: 21px; line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.network-office-card h3 a { text-decoration: none; }
.network-office-card-copy > p { min-height: 32px; margin: 0; color: var(--bn-muted); font-size: 10px; line-height: 1.5; }
.network-office-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px -20px 0; padding: 12px 20px; border-top: 1px solid var(--bn-line); border-bottom: 1px solid var(--bn-line); }
.network-office-meta > a { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.network-map-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: var(--bn-surface-muted); color: var(--bn-muted); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.network-map-status.is-mapped { background: rgba(185,242,85,.18); color: var(--bn-accent-dark); }
.network-office-actions { display: flex; gap: 7px; padding-top: 14px; }
.network-office-actions a { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid var(--bn-line); border-radius: 7px; color: var(--bn-muted); font-size: 8px; font-weight: 750; text-decoration: none; }
.network-office-actions a:first-child { border-color: var(--bn-ink); background: var(--bn-ink); color: var(--bn-surface); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-top: 1px solid var(--bn-line); color: var(--bn-muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 16px; font-size: 10px; }

@media (max-width: 900px) {
	:root { --bn-panel: 330px; }
	.site-nav > a { display: none; }
	.site-nav > a:last-child { display: block; }
	.result-count { display: none; }
	.directory-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.directory-search { grid-column: span 2; }
	.directory-filter-actions { justify-content: flex-end; }
}
@media (max-width: 720px) {
	.site-header { min-height: 62px; padding: 0 16px; }
	.status-pill { display: none; }
	.nexus-shell { height: auto; min-height: calc(100vh - 62px); grid-template-columns: 1fr; grid-template-rows: minmax(570px,70vh) auto; overflow: visible; }
	.map-toolbar { padding: 12px; gap: 8px; }
	.filter-button { width: 44px; padding: 0; font-size: 0; }
	.filter-button::after { content: "≡"; font-size: 18px; }
	.company-panel { border-left: 0; border-top: 1px solid var(--bn-line); }
	.legend { display: none; }
	.directory-header { align-items: start; flex-direction: column; }
	.directory-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.directory-search, .directory-filter-actions { grid-column: 1/-1; }
	.directory-filter-actions { justify-content: stretch; }
	.directory-filter-actions > * { flex: 1; }
	.directory-grid { grid-template-columns: 1fr; }
	.office-network-page { width: calc(100% - 32px); margin: 44px auto 70px; }
	.network-hero { grid-template-columns: 1fr; gap: 38px; padding-bottom: 44px; }
	.network-hero h1 { font-size: clamp(54px,17vw,78px); }
	.network-hero .company-profile-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
	.network-hero .company-profile-actions > * { width: 100%; min-width: 0; padding-right: 9px; padding-left: 9px; text-align: center; }
	.network-hero .company-profile-actions > :first-child { grid-column: 1/-1; }
	.network-footprint { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
	.network-market-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.network-directory { padding-top: 46px; }
	.network-directory-heading { align-items: flex-start; flex-direction: column; }
	.network-directory-heading p { text-align: left; }
	.network-filters.directory-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.network-search, .network-filters .directory-filter-actions { grid-column: 1/-1; }
	.network-office-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Minimal globe layout. */
.site-header {
	position: relative;
	z-index: 10;
	min-height: 56px;
	padding: 0 18px;
	border-color: rgba(21,23,20,.1);
}
.site-branding { gap: 9px; font-size: 13px; letter-spacing: -.025em; }
.site-mark { width: 25px; height: 25px; font-size: 10px; }
.site-nav { gap: 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.nexus-shell {
	position: relative;
	display: block;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	background: #0d100d;
}
.map-column { position: absolute; inset: 0; display: block; }
.map-toolbar {
	position: absolute;
	z-index: 5;
	top: 16px;
	left: 16px;
	display: flex;
	width: min(1320px, calc(100% - 410px));
	padding: 0;
	border: 0;
	background: transparent;
}
.map-brand { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(16,19,16,.88); box-shadow: 0 8px 28px rgba(0,0,0,.18); text-decoration: none; backdrop-filter: blur(14px); }
.map-brand .site-mark { width: 24px; height: 24px; background: var(--bn-accent); color: var(--bn-ink); font-size: 9px; }
.search-wrap { max-width: none; }
.company-search {
	height: 42px;
	padding-left: 40px;
	border-color: rgba(255,255,255,.13);
	border-radius: 10px;
	background: rgba(16,19,16,.88);
	box-shadow: 0 8px 28px rgba(0,0,0,.18);
	color: #fff;
	backdrop-filter: blur(14px);
}
.company-search::placeholder { color: #9ba096; }
.company-search:focus { border-color: rgba(185,242,85,.72); box-shadow: 0 0 0 3px rgba(185,242,85,.12); }
.search-wrap svg { color: #aeb3aa; }
.shortcut { border-color: #3f443c; background: #222620; color: #aeb3aa; }
.filter-button {
	height: 42px;
	padding: 0 13px;
	border-color: rgba(255,255,255,.13);
	border-radius: 10px;
	background: rgba(16,19,16,.88);
	box-shadow: 0 8px 28px rgba(0,0,0,.18);
	color: #c9cdc5;
	font-size: 11px;
	backdrop-filter: blur(14px);
}
.filter-button[aria-pressed="true"] { border-color: var(--bn-accent); background: var(--bn-accent); color: var(--bn-ink); }
.account-button {
	display: grid;
	flex: 0 0 auto;
	height: 42px;
	place-items: center;
	padding: 0 12px;
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 10px;
	background: rgba(16,19,16,.88);
	box-shadow: 0 8px 28px rgba(0,0,0,.18);
	color: #c9cdc5;
	font-size: 10px;
	text-decoration: none;
	backdrop-filter: blur(14px);
}
.account-button:hover, .account-button:focus { border-color: rgba(185,242,85,.65); color: #fff; }
.toolbar-select { position: relative; flex: 0 1 132px; min-width: 96px; }
.toolbar-select select {
	width: 100%;
	height: 42px;
	padding: 0 28px 0 11px;
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 10px;
	appearance: none;
	background: rgba(16,19,16,.88) linear-gradient(45deg,transparent 50%,#92988e 50%) calc(100% - 13px) 18px/5px 5px no-repeat;
	box-shadow: 0 8px 28px rgba(0,0,0,.18);
	color: #c9cdc5;
	cursor: pointer;
	font-size: 10px;
	backdrop-filter: blur(14px);
}
.toolbar-select select:focus { border-color: rgba(185,242,85,.72); outline: 0; }
.status-select { flex-basis: 92px; }
.result-count { margin-left: 2px; padding: 0 5px; color: #9ba096; font-size: 10px; }
.graph-viewport { position: absolute; inset: 0; }
.globe-viewport::after { box-shadow: inset 0 0 70px rgba(0,0,0,.24); }
.legend { display: none; }
.company-marker { width: 14px; height: 14px; border-width: 1.5px; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.company-marker::after { top: 20px; padding: 4px 6px; border: 0; background: rgba(13,16,13,.76); font-size: 9px; opacity: 0; transition: opacity .15s; }
.company-marker:hover::after, .company-marker:focus::after, .company-marker.is-active::after { opacity: 1; }
.company-marker:hover, .company-marker:focus, .company-marker.is-active { width: 22px; height: 22px; }
.graph-controls { left: 16px; bottom: 16px; border-color: rgba(255,255,255,.13); border-radius: 10px; background: rgba(16,19,16,.86); backdrop-filter: blur(14px); }
.zoom-button { width: 38px; height: 38px; border-color: rgba(255,255,255,.1); background: transparent; color: #fff; font-size: 15px; }
.relationship-legend {
	position: absolute;
	z-index: 4;
	left: 148px;
	bottom: 21px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 10px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 9px;
	background: rgba(16,19,16,.72);
	color: #9ba096;
	font-size: 8px;
	letter-spacing: .03em;
	backdrop-filter: blur(12px);
}
.relationship-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend-line { display: block; width: 20px; border-top: 1px solid #aeb3aa; }
.legend-line.is-dashed { border-top-style: dashed; }
.legend-line.is-faded { opacity: .3; }
.relationship-card {
	position: absolute;
	z-index: 6;
	left: 16px;
	bottom: 72px;
	width: min(330px, calc(100% - 32px));
	padding: 16px;
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 13px;
	background: rgba(16,19,16,.94);
	box-shadow: 0 18px 55px rgba(0,0,0,.28);
	color: #f1f3ed;
	backdrop-filter: blur(18px);
}
.relationship-card[hidden] { display: none; }
.relationship-card-topline { display: flex; align-items: center; justify-content: space-between; }
.relationship-card-topline span { color: var(--bn-accent); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.relationship-card-topline span[data-status="historical"] { color: #9ba096; }
.relationship-card-topline button { width: 24px; height: 24px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: transparent; color: #aeb3aa; cursor: pointer; font-size: 16px; }
.relationship-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; margin-top: 13px; }
.relationship-route button { padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; }
.relationship-route button:last-child { text-align: right; }
.relationship-route span { color: var(--bn-accent); }
.relationship-card h2 { margin: 13px 0 0; color: #aeb3aa; font-size: 10px; font-weight: 500; }
.relationship-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 14px -16px 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.relationship-facts div { padding: 11px 16px; }
.relationship-facts div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.09); }
.relationship-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
.relationship-facts dt { color: #777e74; font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.relationship-facts dd { margin: 4px 0 0; color: #e5e8e1; font-size: 10px; }
.relationship-source { display: grid; gap: 7px; padding-top: 13px; }
.relationship-source span { color: #777e74; font-size: 8px; }
.relationship-source a { overflow: hidden; color: #dce0d8; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-underline-offset: 3px; }
.relationship-source a[hidden] { display: none; }

.company-panel {
	position: absolute;
	z-index: 5;
	top: 14px;
	right: 14px;
	bottom: 14px;
	width: 355px;
	overflow-y: auto;
	border: 1px solid rgba(21,23,20,.08);
	border-radius: 14px;
	background: rgba(250,251,247,.96);
	box-shadow: 0 18px 60px rgba(0,0,0,.2);
	backdrop-filter: blur(18px);
	transition: transform .25s ease, opacity .2s ease;
}
.company-panel.is-closed { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.panel-inner { min-height: 100%; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.panel-kicker { padding: 0; font-size: 9px; }
.panel-close { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid var(--bn-line); border-radius: 50%; background: transparent; color: var(--bn-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.panel-hero { padding: 26px 18px 20px; }
.panel-hero { position: relative; }
.panel-logo { width: 42px; height: 42px; margin-bottom: 18px; border-radius: 11px; font-size: 12px; }
.panel-title { font-size: 32px; }
.panel-type { margin-top: 9px; font-size: 11px; }
.favorite-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; padding: 7px 10px; border: 1px solid var(--bn-line); border-radius: 999px; background: transparent; color: var(--bn-muted); cursor: pointer; font-size: 9px; font-weight: 700; }
.favorite-button[hidden] { display: none; }
.favorite-button[aria-pressed="true"] { border-color: rgba(120,159,52,.35); background: rgba(185,242,85,.18); color: #526d28; }
.favorite-button:disabled { opacity: .55; cursor: wait; }
.office-network-button { display: inline-flex; align-items: center; margin: 15px 0 0 6px; padding: 7px 10px; border: 1px solid rgba(120,159,52,.35); border-radius: 999px; background: rgba(185,242,85,.18); color: #526d28; cursor: pointer; font-size: 9px; font-weight: 700; }
.office-network-button[hidden] { display: none; }
.panel-stat { padding: 15px 18px; }
.panel-stat strong { font-size: 17px; }
.company-panel.is-office .panel-stat strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.25; }
.panel-stat span, .panel-section h3 { font-size: 9px; }
.panel-section { padding: 18px; }
.panel-section p { font-size: 12px; line-height: 1.55; }
.related-list { gap: 6px; }
.related-button { padding: 7px; border: 0; background: var(--bn-paper); }
.data-note { padding: 14px 18px; font-size: 9px; }
.verification-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.verification-heading h3 { margin: 0; }
.verification-badge { padding: 5px 7px; border-radius: 999px; background: #eceee8; color: var(--bn-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.verification-badge[data-verification="verified"] { background: rgba(120,159,52,.13); color: #58752a; }
.verification-date { color: var(--bn-muted) !important; font-size: 10px !important; }
.source-link { display: inline-block; margin-top: 10px; color: var(--bn-ink); font-size: 10px; font-weight: 700; text-underline-offset: 3px; }
.source-link[hidden] { display: none; }
.profile-link { display: inline-flex; margin-top: 14px; color: var(--bn-ink); font-size: 10px; font-weight: 700; text-underline-offset: 3px; }
.panel-open {
	position: absolute;
	z-index: 5;
	top: 16px;
	right: 16px;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 13px;
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 10px;
	background: rgba(16,19,16,.88);
	color: #fff;
	box-shadow: 0 8px 28px rgba(0,0,0,.18);
	cursor: pointer;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .08em;
	backdrop-filter: blur(14px);
}
.panel-open:not([hidden]) { display: flex; }

.account-page { min-height: calc(100vh - 109px); padding: 72px max(24px,calc((100vw - 1120px)/2)) 96px; background: var(--bn-paper); }
.account-intro { max-width: 760px; margin-bottom: 44px; }
.account-eyebrow { display: block; margin-bottom: 12px; color: var(--bn-muted); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.account-intro h1, .dashboard-header h1 { margin: 0; font-size: clamp(48px,8vw,92px); line-height: .88; letter-spacing: -.07em; }
.account-intro p, .dashboard-header p { max-width: 610px; margin: 24px 0 0; color: var(--bn-muted); font-size: 15px; line-height: 1.6; }
.account-notice { margin: 0 0 24px; padding: 13px 15px; border: 1px solid #cdd3c6; border-radius: 10px; background: #fff; font-size: 12px; }
.auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--bn-line); border-radius: 18px; overflow: hidden; background: #fff; }
.auth-card { position: relative; display: grid; align-content: start; gap: 17px; min-height: 520px; padding: 34px; }
.auth-card + .auth-card { border-left: 1px solid var(--bn-line); background: #171a16; color: #fff; }
.auth-index { position: absolute; top: 18px; right: 20px; color: var(--bn-muted); font-size: 9px; }
.auth-card h2 { margin: 4px 0 16px; font-size: 30px; letter-spacing: -.05em; }
.auth-card label:not(.auth-check) { display: grid; gap: 7px; }
.auth-card label > span { color: var(--bn-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-card input:not([type="checkbox"]) { width: 100%; height: 47px; padding: 0 13px; border: 1px solid var(--bn-line); border-radius: 9px; outline: 0; background: #fff; color: var(--bn-ink); }
.auth-card input:focus { border-color: #94b754; box-shadow: 0 0 0 3px rgba(185,242,85,.18); }
.auth-card small { color: #8b9186; font-size: 9px; }
.auth-check { display: flex; align-items: center; gap: 8px; }
.auth-check input { accent-color: var(--bn-accent-dark); }
.auth-check span { color: var(--bn-muted); font-size: 10px; }
.auth-card > button { height: 47px; margin-top: 5px; border: 0; border-radius: 9px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 11px; font-weight: 750; }
.auth-card.is-register > button { background: var(--bn-accent); color: var(--bn-ink); }
.auth-secondary { color: var(--bn-muted); font-size: 10px; text-underline-offset: 3px; }
.auth-terms { margin: 0; color: #8b9186; font-size: 9px; line-height: 1.5; }
.auth-consent { align-items: flex-start; }
.auth-consent a { color: inherit; text-underline-offset: 2px; }
.auth-single { width: min(560px,100%); min-height: auto; border: 1px solid var(--bn-line); border-radius: 16px; background: #fff; }
.account-inline-link { display: inline-block; padding: 10px 13px; border: 1px solid var(--bn-line); border-radius: 9px; background: #fff; font-size: 10px; text-decoration: none; }
.nexus-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 64px; }
.dashboard-actions { display: flex; gap: 8px; }
.dashboard-actions a, .watchlist-empty a { padding: 10px 13px; border: 1px solid var(--bn-line); border-radius: 9px; background: #fff; font-size: 10px; text-decoration: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(30px,4vw,48px); letter-spacing: -.055em; }
.section-heading strong { font-size: 34px; letter-spacing: -.05em; }
.watchlist-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.watchlist-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 15px; border: 1px solid var(--bn-line); border-radius: 13px; background: #fff; }
.watchlist-card a { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.watchlist-card a > span:last-child { min-width: 0; }
.watchlist-mark { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--watchlist-color); color: #fff; font-size: 9px; font-weight: 750; }
.watchlist-card strong, .watchlist-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watchlist-card strong { font-size: 12px; }
.watchlist-card small { margin-top: 4px; color: var(--bn-muted); font-size: 9px; }
.watchlist-card form { flex: 0 0 auto; }
.watchlist-card form button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--bn-line); border-radius: 50%; background: transparent; color: var(--bn-muted); cursor: pointer; }
.watchlist-card form button.watchlist-alert-toggle[aria-pressed="true"] { border-color: rgba(120,159,52,.35); background: rgba(185,242,85,.18); color: #58752a; }
.watchlist-actions { display: flex; align-items: center; gap: 8px; }
.watchlist-card .watchlist-map-link { padding: 6px 8px; border: 1px solid var(--bn-line); border-radius: 7px; color: var(--bn-muted); font-size: 8px; font-weight: 700; }
.watchlist-empty { padding: 45px; border: 1px dashed #cdd1c9; border-radius: 15px; text-align: center; }
.watchlist-empty h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.watchlist-empty p { margin: 9px 0 22px; color: var(--bn-muted); font-size: 12px; }
.private-places-section { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--bn-line); }
.section-description { max-width: 650px; margin: 12px 0 0; color: var(--bn-muted); font-size: 11px; line-height: 1.55; }
.private-places-layout { display: grid; grid-template-columns: minmax(300px,.78fr) minmax(0,1.22fr); gap: 14px; align-items: start; }
.private-place-form { display: grid; gap: 14px; padding: 23px; border: 1px solid var(--bn-line); border-radius: 15px; background: #fff; }
.private-place-form-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.private-place-form-heading > span { display: grid; flex: 0 0 39px; height: 39px; place-items: center; border-radius: 10px; background: var(--bn-accent); font-size: 18px; }
.private-place-form-heading h3, .private-place-empty h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.private-place-form-heading p, .private-place-empty p { margin: 4px 0 0; color: var(--bn-muted); font-size: 9px; line-height: 1.45; }
.private-place-form label, .private-place-editor label { display: grid; gap: 6px; min-width: 0; }
.private-place-form label > span, .private-place-editor label > span { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.private-place-form input, .private-place-form select, .private-place-form textarea, .private-place-editor input, .private-place-editor select, .private-place-editor textarea { width: 100%; min-width: 0; padding: 0 11px; border: 1px solid var(--bn-line); border-radius: 8px; outline: 0; background: #fff; color: var(--bn-ink); font: inherit; font-size: 10px; }
.private-place-form input, .private-place-form select, .private-place-editor input, .private-place-editor select { height: 42px; }
.private-place-form textarea, .private-place-editor textarea { padding-top: 10px; resize: vertical; line-height: 1.5; }
.private-place-form :is(input,select,textarea):focus, .private-place-editor :is(input,select,textarea):focus { border-color: #94b754; box-shadow: 0 0 0 3px rgba(185,242,85,.15); }
.private-place-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.private-place-form > button, .private-place-edit-actions button { min-height: 42px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 750; }
.private-place-form > button:disabled, .private-place-editor button:disabled { opacity: .4; cursor: not-allowed; }
.private-place-list { display: grid; gap: 9px; }
.private-place-card { border: 1px solid var(--bn-line); border-radius: 14px; background: #fff; overflow: hidden; }
.private-place-card summary { display: flex; align-items: center; gap: 13px; padding: 16px; cursor: pointer; list-style: none; }
.private-place-card summary::-webkit-details-marker { display: none; }
.private-place-mark { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 11px; background: #252a22; color: var(--bn-accent); font-size: 9px; font-weight: 800; }
.private-place-summary { display: block; min-width: 0; flex: 1; }
.private-place-summary > strong, .private-place-summary > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.private-place-summary > strong { font-size: 12px; }
.private-place-summary > small { margin-top: 4px; color: var(--bn-muted); font-size: 9px; }
.private-place-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.private-place-tags em { padding: 4px 7px; border-radius: 999px; background: #f0f2ed; color: #666c61; font-size: 7px; font-style: normal; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.private-place-tags em:first-child { background: rgba(185,242,85,.18); color: #58752a; }
.private-place-chevron { color: var(--bn-muted); transition: transform .2s ease; }
.private-place-card[open] .private-place-chevron { transform: rotate(180deg); }
.private-place-editor { position: relative; padding: 19px; border-top: 1px solid var(--bn-line); background: #fafbf8; }
.private-place-editor > form:first-child { display: grid; gap: 13px; }
.private-place-edit-actions { display: flex; align-items: center; gap: 12px; }
.private-place-edit-actions a { color: var(--bn-muted); font-size: 9px; font-weight: 750; }
.private-place-delete { position: absolute; right: 19px; bottom: 19px; }
.private-place-delete button { min-height: 32px; padding: 0 9px; border: 1px solid #e2c2c2; border-radius: 7px; background: transparent; color: #8a3b3b; cursor: pointer; font-size: 8px; font-weight: 750; }
.private-place-empty { display: grid; min-height: 250px; padding: 35px; place-content: center; border: 1px dashed #cdd1c9; border-radius: 14px; text-align: center; }
.private-place-empty > span { display: block; margin-bottom: 13px; color: #8c9486; font-size: 29px; }
.verification-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -34px 0 48px; padding: 16px 18px; border: 1px solid rgba(120,159,52,.28); border-radius: 12px; background: rgba(185,242,85,.15); }
.verification-callout strong { font-size: 12px; }
.verification-callout p { margin: 4px 0 0; color: #5d6653; font-size: 10px; }
.verification-callout form button { padding: 9px 11px; border: 0; border-radius: 8px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 9px; }
.verification-callout.is-suspended { border-color: #e4b9b9; background: #fff1f1; }
.account-settings { margin-top: 72px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.settings-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 22px; border: 1px solid var(--bn-line); border-radius: 14px; background: #fff; }
.settings-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.04em; }
.settings-card label { display: grid; gap: 6px; }
.settings-card label > span { color: var(--bn-muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-card input:not([type="checkbox"]), .settings-card select { width: 100%; height: 43px; padding: 0 11px; border: 1px solid var(--bn-line); border-radius: 8px; outline: 0; background: #fff; }
.settings-card input:focus, .settings-card select:focus { border-color: #94b754; box-shadow: 0 0 0 3px rgba(185,242,85,.15); }
.settings-card small, .settings-card p { margin: 0; color: var(--bn-muted); font-size: 9px; line-height: 1.5; }
.settings-card button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 700; }
.settings-card button:disabled { opacity: .4; cursor: not-allowed; }
.data-controls form { margin-top: auto; }
.data-controls form button { width: 100%; }
.policy-links { display: flex; gap: 14px; padding-top: 5px; font-size: 9px; }
.danger-zone { color: #7b2424; }
.danger-zone summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.danger-zone form { display: grid; gap: 13px; }
.danger-zone button { background: #7b2424; }

.company-profile { min-height: calc(100vh - 109px); padding: 66px max(24px,calc((100vw - 1120px)/2)) 96px; }
.company-profile-hero { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 70px; align-items: end; padding-bottom: 58px; border-bottom: 1px solid var(--bn-line); }
.company-profile-hero > *, .company-profile-body > * { min-width: 0; }
.company-profile-mark { display: grid; width: 58px; height: 58px; margin-bottom: 28px; place-items: center; border-radius: 16px; background: var(--company-color,var(--bn-ink)); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.05em; }
.company-profile-mark img { padding: 9px; }
.office-network-logo { margin-bottom: 18px; }
.panel-logo.has-image { width: 172px; height: 58px; border-radius: 12px; }
.panel-logo.has-image img { padding: 6px 10px; }
.company-profile-mark.has-image { width: 220px; height: 76px; border-radius: 14px; }
.company-profile-mark.has-image img { padding: 8px 12px; }
.directory-card-mark.has-image { width: 108px; height: 42px; border-radius: 9px; }
.directory-card-mark.has-image img { padding: 5px 8px; }
.related-mark.has-image { flex: 0 0 auto; width: 72px; height: 32px; border-radius: 7px; }
.related-mark.has-image img { padding: 4px 6px; }
.company-profile h1 { max-width: 800px; margin: 0; font-size: clamp(54px,8vw,104px); line-height: .86; letter-spacing: -.075em; }
.company-profile-type { margin: 21px 0 0; color: var(--bn-muted); font-size: 13px; }
.company-profile-summary { margin: 27px 0 0; max-width: 730px; color: #4f534c; font-size: 16px; line-height: 1.65; }
.company-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 29px; }
.company-profile-actions a, .company-profile-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 15px; border: 1px solid var(--bn-line); border-radius: 10px; background: #fff; color: var(--bn-ink); cursor: pointer; font-size: 10px; font-weight: 750; text-decoration: none; }
.company-profile-actions .primary-action { border-color: var(--bn-ink); background: var(--bn-ink); color: #fff; }
.company-profile-actions form { margin: 0; }
.company-fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--bn-line); border-radius: 16px; overflow: hidden; background: #fff; }
.company-fact-grid div { min-height: 104px; padding: 22px; }
.company-fact-grid div:nth-child(odd) { border-right: 1px solid var(--bn-line); }
.company-fact-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--bn-line); }
.company-fact-grid dt { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.company-fact-grid dd { margin: 8px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
.company-profile-body { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 70px; padding-top: 58px; }
.company-connections-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.company-connections-heading h2 { margin: 0; font-size: clamp(34px,5vw,58px); letter-spacing: -.06em; }
.company-connections-heading span { color: var(--bn-muted); font-size: 11px; }
.company-connection-list { display: grid; gap: 9px; }
.company-connection { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(170px,1fr) auto; gap: 20px; align-items: center; padding: 19px; border: 1px solid var(--bn-line); border-radius: 13px; background: #fff; }
.connection-company { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.connection-mark { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--connection-color,var(--bn-ink)); color: #fff; font-size: 9px; font-weight: 800; }
.connection-company strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.connection-details strong, .connection-details small { display: block; }
.connection-details strong { font-size: 11px; }
.connection-details small { margin-top: 5px; color: var(--bn-muted); font-size: 9px; }
.connection-source { max-width: 190px; overflow: hidden; color: var(--bn-muted); font-size: 9px; font-weight: 700; text-overflow: ellipsis; text-underline-offset: 3px; white-space: nowrap; }
.connection-research { display: grid; justify-items: end; gap: 7px; min-width: 0; }
.connection-correction { color: var(--bn-muted); font-size: 8px; text-underline-offset: 2px; }
.connection-status { display: inline-flex; margin-bottom: 6px; padding: 4px 6px; border-radius: 999px; background: rgba(185,242,85,.17); color: #58752a; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.connection-status.is-historical { background: #eceee8; color: var(--bn-muted); }
.company-profile-aside { display: grid; align-content: start; gap: 12px; }
.profile-note { padding: 21px; border: 1px solid var(--bn-line); border-radius: 13px; background: #fff; }
.profile-note h3 { margin: 0; font-size: 14px; }
.profile-note p { margin: 9px 0 0; color: var(--bn-muted); font-size: 10px; line-height: 1.55; }
.profile-note a { display: inline-block; margin-top: 12px; font-size: 9px; font-weight: 750; text-underline-offset: 3px; }
.profile-change-log ul { display: grid; gap: 10px; padding: 0; margin: 13px 0 0; list-style: none; }
.profile-change-log li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; padding-top: 10px; border-top: 1px solid var(--bn-line); }
.profile-change-log li strong { font-size: 10px; }
.profile-change-log li span { color: var(--bn-muted); font-size: 8px; }
.profile-change-log li a { grid-column: 1/-1; margin-top: 2px; }
.company-no-connections { padding: 35px; border: 1px dashed #cdd1c9; border-radius: 13px; color: var(--bn-muted); font-size: 12px; }
.office-profile h1 { font-size: clamp(52px,7vw,88px); }
.office-parent-link { display: inline-block; color: var(--bn-muted); text-decoration: none; }
.office-parent-link:hover, .office-parent-link:focus, .office-detail-list dd a, .office-fact-grid dd a { text-decoration: underline; text-underline-offset: 3px; }
.office-fact-grid dd a { color: inherit; text-decoration-thickness: 1px; }
.office-fact-grid dd { overflow-wrap: anywhere; font-size: 15px; line-height: 1.2; }
.office-profile-main { display: grid; gap: 58px; }
.office-overview h2, .office-map-section h2 { margin: 8px 0 0; font-size: clamp(34px,5vw,56px); letter-spacing: -.06em; }
.office-description { max-width: 700px; margin: 22px 0 0; color: #4f534c; font-size: 14px; line-height: 1.7; }
.office-description > :first-child { margin-top: 0; }
.office-detail-list { margin: 34px 0 0; border-top: 1px solid var(--bn-line); }
.office-detail-list div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--bn-line); }
.office-detail-list dt, .office-contact-card li span { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.office-detail-list dd { margin: 0; font-size: 12px; line-height: 1.5; }
.office-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.office-section-heading > a { color: var(--bn-muted); font-size: 9px; font-weight: 750; text-underline-offset: 3px; }
#office-profile-map { height: 360px; overflow: hidden; border: 1px solid var(--bn-line); border-radius: 16px; background: #e8eae4; }
#office-profile-map .mapboxgl-popup-content { display: grid; gap: 4px; max-width: 220px; padding: 12px 14px; border-radius: 9px; color: var(--bn-ink); font: inherit; }
#office-profile-map .mapboxgl-popup-content strong { font-size: 11px; }
#office-profile-map .mapboxgl-popup-content span { color: var(--bn-muted); font-size: 9px; line-height: 1.4; }
.office-contact-card ul { display: grid; gap: 0; padding: 0; margin: 15px 0 0; list-style: none; }
.office-contact-card li { display: grid; gap: 5px; padding: 12px 0; border-top: 1px solid var(--bn-line); }
.office-contact-card li a { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.office-data-note { background: #f3f4ef; }
.correction-section { margin-top: 72px; padding-top: 58px; border-top: 1px solid var(--bn-line); }
.correction-intro { max-width: 680px; }
.correction-intro h2 { margin: 0; font-size: clamp(38px,5vw,62px); letter-spacing: -.06em; }
.correction-intro p { margin: 18px 0 0; color: var(--bn-muted); font-size: 13px; line-height: 1.6; }
.correction-notice { margin-top: 24px; padding: 13px 15px; border: 1px solid rgba(120,159,52,.3); border-radius: 10px; background: rgba(185,242,85,.13); font-size: 11px; }
.correction-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 30px; padding: 25px; border: 1px solid var(--bn-line); border-radius: 16px; background: #fff; }
.correction-form label { display: grid; gap: 7px; min-width: 0; }
.correction-form label > span { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.correction-form input, .correction-form select, .correction-form textarea { width: 100%; min-width: 0; padding: 0 11px; border: 1px solid var(--bn-line); border-radius: 8px; outline: 0; background: #fff; color: var(--bn-ink); font: inherit; font-size: 11px; }
.correction-form input, .correction-form select { height: 43px; }
.correction-form textarea { padding-top: 11px; resize: vertical; line-height: 1.5; }
.correction-form input:focus, .correction-form select:focus, .correction-form textarea:focus { border-color: #94b754; box-shadow: 0 0 0 3px rgba(185,242,85,.15); }
.correction-wide { grid-column: 1/-1; }
.correction-submit { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 5px; }
.correction-submit p { margin: 0; color: var(--bn-muted); font-size: 9px; }
.correction-submit button { min-height: 43px; padding: 0 15px; border: 0; border-radius: 8px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 750; }
.correction-signin { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px; border: 1px solid var(--bn-line); border-radius: 13px; background: #fff; }
.correction-signin p { margin: 0; color: var(--bn-muted); font-size: 11px; }
.correction-signin a { padding: 10px 12px; border-radius: 8px; background: var(--bn-ink); color: #fff; font-size: 9px; font-weight: 750; text-decoration: none; }
.submission-history { margin-top: 72px; }
.submission-list { display: grid; gap: 8px; }
.submission-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border: 1px solid var(--bn-line); border-radius: 12px; background: #fff; }
.submission-card h3 { margin: 8px 0 3px; font-size: 14px; }
.submission-card h3 a { text-decoration: none; }
.submission-card p, .submission-card time { margin: 0; color: var(--bn-muted); font-size: 9px; }
.submission-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #eceee8; color: var(--bn-muted); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.submission-status.is-approved { background: rgba(185,242,85,.18); color: #58752a; }
.submission-status.is-rejected { background: #fff0f0; color: #8a3b3b; }
.submission-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px dashed #cdd1c9; border-radius: 13px; }
.submission-empty p { margin: 0; color: var(--bn-muted); font-size: 10px; }
.submission-empty a { font-size: 9px; font-weight: 750; }
.alert-history-section { margin-top: 72px; }
.alert-history-list { display: grid; gap: 8px; }
.alert-history-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border: 1px solid var(--bn-line); border-radius: 12px; background: #fff; }
.alert-history-card h3 { margin: 8px 0 3px; font-size: 14px; }
.alert-history-card p, .alert-history-card time { margin: 0; color: var(--bn-muted); font-size: 9px; }
.delivery-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: rgba(185,242,85,.18); color: #58752a; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.delivery-status.is-failed { background: #fff0f0; color: #8a3b3b; }
.alert-preferences p { margin-bottom: 4px; }
.compare-page { width: min(1240px,calc(100% - 40px)); min-height: calc(100vh - 109px); margin: 60px auto 90px; }
.compare-header { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.55fr); gap: 70px; align-items: end; margin-bottom: 35px; }
.compare-header .account-eyebrow { grid-column: 1/-1; margin-bottom: -48px; }
.compare-header h1 { margin: 0; font-size: clamp(52px,8vw,98px); line-height: .88; letter-spacing: -.075em; }
.compare-header p { margin: 0; color: var(--bn-muted); font-size: 14px; line-height: 1.6; }
.compare-picker { display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)) auto; gap: 8px; align-items: end; padding: 16px; border: 1px solid var(--bn-line); border-radius: 15px; background: #fff; }
.compare-picker label { display: grid; gap: 6px; min-width: 0; }
.compare-picker label > span { color: var(--bn-muted); font-size: 7px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.compare-picker select, .compare-picker input[type="text"] { width: 100%; height: 42px; min-width: 0; padding: 0 10px; border: 1px solid var(--bn-line); border-radius: 8px; outline: 0; background: #fff; color: var(--bn-ink); font-size: 10px; }
.compare-picker select:focus, .compare-picker input[type="text"]:focus { border-color: #94b754; box-shadow: 0 0 0 3px rgba(185,242,85,.15); }
.compare-picker-actions { display: flex; gap: 6px; }
.compare-picker-actions button, .compare-picker-actions a { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 13px; border: 1px solid var(--bn-ink); border-radius: 8px; background: var(--bn-ink); color: #fff; cursor: pointer; font-size: 9px; font-weight: 750; text-decoration: none; }
.compare-picker-actions a { border-color: var(--bn-line); background: #fff; color: var(--bn-muted); }
.compare-empty { margin-top: 24px; padding: 70px 30px; border: 1px dashed #cdd1c9; border-radius: 16px; text-align: center; }
.compare-empty > span { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.compare-empty h2 { margin: 12px 0 0; font-size: clamp(32px,5vw,54px); letter-spacing: -.06em; }
.compare-empty p { margin: 13px 0 22px; color: var(--bn-muted); font-size: 11px; }
.compare-empty a { display: inline-flex; padding: 10px 13px; border-radius: 8px; background: var(--bn-ink); color: #fff; font-size: 9px; font-weight: 750; text-decoration: none; }
.comparison-scroll-hint { display: none; }
.comparison { margin-top: 25px; overflow-x: auto; border: 1px solid var(--bn-line); border-radius: 16px; background: #fff; }
.comparison-row { display: grid; grid-template-columns: 145px repeat(var(--compare-count),minmax(170px,1fr)); min-width: 840px; border-bottom: 1px solid var(--bn-line); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row > * { min-width: 0; border-right: 1px solid var(--bn-line); }
.comparison-row > *:last-child { border-right: 0; }
.comparison-label { padding: 17px; background: #fafbf7; }
.comparison-label span { color: var(--bn-muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.comparison-value { padding: 17px; font-size: 11px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.comparison-companies { align-items: stretch; }
.comparison-companies .comparison-label { padding-top: 24px; }
.comparison-company { display: flex; min-height: 245px; flex-direction: column; padding: 22px 18px 18px; }
.comparison-mark { display: grid; width: 40px; height: 40px; margin-bottom: 35px; place-items: center; border-radius: 11px; background: var(--compare-color,var(--bn-ink)); color: #fff; font-size: 10px; font-weight: 800; }
.office-comparison-mark { background: #789f34; }
.office-compare-page .compare-header p a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.comparison-company h2 { margin: auto 0 7px; font-size: 20px; line-height: 1.03; letter-spacing: -.045em; overflow-wrap: anywhere; }
.comparison-company p { margin: 0; color: var(--bn-muted); font-size: 9px; }
.comparison-company > div { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.comparison-company a, .comparison-company button { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: 0 9px; border: 1px solid var(--bn-line); border-radius: 7px; background: #fff; color: var(--bn-muted); cursor: pointer; font-size: 8px; font-weight: 750; text-decoration: none; }
.comparison-company a:first-child { border-color: var(--bn-ink); background: var(--bn-ink); color: #fff; }
.comparison-company form { margin: 0 0 0 auto; }
.comparison-company button { width: 31px; padding: 0; color: var(--bn-ink); }
.comparison-note { padding: 14px 4px 0; color: var(--bn-muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 950px) and (min-width: 761px) {
	.status-select, .result-count { display: none; }
	.compare-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.compare-picker-actions { justify-content: flex-end; }
}

@media (max-width: 1500px) and (min-width: 761px) {
	.status-select, .result-count { display: none; }
}

@media (max-width: 1200px) and (min-width: 761px) {
	.toolbar-select:not(.office-network-select) { display: none; }
}

@media (max-width: 760px) {
	.site-header { min-height: 52px; padding: 0 12px; }
	.nexus-shell { height: 100vh; min-height: 620px; }
	.map-toolbar { top: 10px; left: 10px; width: calc(100% - 20px); padding-right: 52px; }
	.toolbar-select { display: none; }
	.filter-button { width: 42px; padding: 0; color: transparent; font-size: 0; }
	.filter-button::after { content: "P"; color: #c9cdc5; font-size: 10px; }
	.office-filter::after { content: "O"; }
	.saved-filter::after { content: "S"; }
	.office-network-select:not([hidden]) { display: block; position: absolute; top: 50px; left: 42px; width: min(260px,calc(100vw - 116px)); }
	.filter-button[aria-pressed="true"] { color: transparent; }
	.filter-button[aria-pressed="true"]::after { color: var(--bn-ink); }
	.company-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 52vh; border-radius: 14px; }
	.company-panel.is-closed { transform: translateY(calc(100% + 16px)); }
	.panel-open { top: auto; right: 10px; bottom: 10px; }
	.graph-controls { left: 10px; bottom: 10px; }
	.relationship-legend { display: none; }
	.relationship-card { left: 10px; bottom: 62px; width: calc(100% - 20px); }
	.account-button { width: 42px; padding: 0; overflow: hidden; color: transparent; }
	.account-button::after { content: "N"; color: #c9cdc5; font-size: 10px; }
	.account-page { padding: 48px 16px 70px; }
	.auth-grid, .watchlist-grid { grid-template-columns: 1fr; }
	.settings-grid { grid-template-columns: 1fr; }
	.private-places-layout { grid-template-columns: 1fr; }
	.private-place-row { grid-template-columns: 1fr; }
	.auth-card { min-height: auto; padding: 28px 22px; }
	.auth-card + .auth-card { border-top: 1px solid var(--bn-line); border-left: 0; }
	.dashboard-header { align-items: start; flex-direction: column; margin-bottom: 44px; }
	.verification-callout { align-items: flex-start; flex-direction: column; margin-top: -20px; }
	.company-profile { padding: 44px 16px 70px; }
	.company-profile-hero, .company-profile-body { grid-template-columns: 1fr; gap: 38px; }
	.company-profile h1 { font-size: clamp(46px,15vw,68px); overflow-wrap: anywhere; }
	.company-profile-summary { overflow-wrap: anywhere; }
	.office-profile h1 { font-size: clamp(44px,13vw,64px); }
	.office-detail-list div { grid-template-columns: 1fr; gap: 7px; }
	.office-section-heading { align-items: flex-start; flex-direction: column; }
	#office-profile-map { height: 300px; }
	.company-connection { grid-template-columns: 1fr; gap: 13px; }
	.connection-research { justify-items: start; }
	.connection-source { max-width: none; white-space: normal; }
	.correction-form { grid-template-columns: 1fr; padding: 20px; }
	.correction-wide, .correction-submit { grid-column: auto; }
	.correction-submit, .correction-signin, .submission-empty { align-items: flex-start; flex-direction: column; }
	.compare-page { width: calc(100% - 32px); margin: 44px auto 70px; }
	.compare-header { grid-template-columns: 1fr; gap: 18px; }
	.compare-header .account-eyebrow { grid-column: auto; margin-bottom: 0; }
	.compare-header h1 { font-size: clamp(48px,15vw,68px); }
	.compare-picker { grid-template-columns: 1fr; }
	.compare-picker-actions { justify-content: stretch; }
	.compare-picker-actions > * { flex: 1; }
	.comparison-scroll-hint { display: block; margin: 24px 0 -12px; color: var(--bn-muted); font-size: 9px; text-align: right; }
	.comparison { margin-right: -16px; border-radius: 14px 0 0 14px; }
}

/* Site-wide appearance system. Component surfaces inherit these tokens so the
   chosen mode remains consistent across profiles, forms, account tools, and
   comparison tables. Logo canvases intentionally remain white unless a logo
   is explicitly marked as inverse. */
:is(
	.screen-reader-text:focus, .directory-filters, .directory-filter-actions a,
	.directory-card, .directory-card-actions > a, .directory-card-actions button,
	.directory-pagination a, .account-notice, .auth-grid, .auth-single,
	.account-inline-link, .dashboard-actions a, .watchlist-empty a, .watchlist-card,
	.private-place-form, .private-place-card, .settings-card,
	.company-profile-actions a, .company-profile-actions button, .company-fact-grid,
	.company-connection, .profile-note, .correction-form, .correction-signin,
	.submission-card, .alert-history-card, .compare-picker,
	.compare-picker-actions a, .comparison, .comparison-company a,
	.comparison-company button
) { background: var(--bn-surface); }

:is(
	.directory-filters input, .directory-filters select,
	.auth-card input:not([type="checkbox"]),
	.private-place-form input, .private-place-form select, .private-place-form textarea,
	.private-place-editor input, .private-place-editor select, .private-place-editor textarea,
	.settings-card input:not([type="checkbox"]), .settings-card select,
	.correction-form input, .correction-form select, .correction-form textarea,
	.compare-picker select, .compare-picker input[type="text"]
) { background: var(--bn-field); color: var(--bn-ink); }

:is(.private-place-editor, .comparison-label, .office-data-note) { background: var(--bn-surface-soft); }
:is(.private-place-tags em, .verification-badge, .connection-status.is-historical, .submission-status) { background: var(--bn-surface-muted); }
:is(.panel-section p, .page-content, .company-profile-summary, .office-description) { color: var(--bn-text-soft); }
.company-profile-actions .primary-action { border-color: var(--bn-ink); background: var(--bn-ink); color: var(--bn-surface); }

html[data-theme="dark"] .site-mark { background: var(--bn-accent); color: #151714; }
html[data-theme="dark"] .company-panel { border-color: var(--bn-line); background: rgba(26,30,25,.97); box-shadow: 0 18px 60px rgba(0,0,0,.46); }
html[data-theme="dark"] .auth-card + .auth-card { background: #20251f; color: var(--bn-ink); }
html[data-theme="dark"] .auth-card small,
html[data-theme="dark"] .auth-terms { color: #a5aba1; }
html[data-theme="dark"] .private-place-tags em { color: var(--bn-muted); }
html[data-theme="dark"] .verification-callout p { color: var(--bn-text-soft); }
html[data-theme="dark"] #office-profile-map { background: #171b17; }
html[data-theme="dark"] #office-profile-map .mapboxgl-popup-content { background: var(--bn-surface); color: var(--bn-ink); }
html[data-theme="dark"] #office-profile-map .mapboxgl-popup-tip { border-top-color: var(--bn-surface); border-bottom-color: var(--bn-surface); }

html[data-theme="dark"] :is(
	.directory-filter-actions button, .directory-card-actions > a:first-child,
	.directory-pagination a[aria-current="page"], .auth-card > button,
	.private-place-form > button, .private-place-edit-actions button,
	.verification-callout form button, .settings-card button,
	.company-profile-actions .primary-action, .correction-submit button,
	.correction-signin a, .compare-picker-actions button, .compare-empty a,
	.comparison-company a:first-child
) { border-color: var(--bn-accent); background: var(--bn-accent); color: #151714; }
html[data-theme="dark"] .auth-card.is-register > button { background: var(--bn-accent); color: #151714; }

/* The map chrome follows the same preference while leaving data colors vivid. */
html[data-theme="light"] :is(.nexus-shell, .graph-viewport) { background: #e8ebe5; }
html[data-theme="light"] .globe-viewport::after { box-shadow: inset 0 0 70px rgba(47,54,45,.13); }
html[data-theme="light"] :is(
	.map-brand, .company-search, .filter-button, .account-button,
	.toolbar-select select, .appearance-toggle.is-compact, .graph-controls,
	.relationship-legend, .panel-open
) { border-color: rgba(21,23,20,.14); background-color: rgba(250,251,247,.9); color: #343933; box-shadow: 0 8px 28px rgba(32,38,29,.1); }
html[data-theme="light"] .toolbar-select select { background-image: linear-gradient(45deg,transparent 50%,#62685f 50%); }
html[data-theme="light"] .company-search::placeholder { color: #777e74; }
html[data-theme="light"] .search-wrap svg { color: #676e64; }
html[data-theme="light"] .shortcut { border-color: #c8cdc4; background: #eef0eb; color: #62685f; }
html[data-theme="light"] .filter-button[aria-pressed="true"] { border-color: #789f34; background: var(--bn-accent); color: #151714; }
html[data-theme="light"] .account-button:hover,
html[data-theme="light"] .account-button:focus { border-color: #789f34; color: #151714; }
html[data-theme="light"] .zoom-button { border-color: rgba(21,23,20,.1); color: #252924; }
html[data-theme="light"] .relationship-legend { color: #61685f; }
html[data-theme="light"] .relationship-card { border-color: rgba(21,23,20,.13); background: rgba(250,251,247,.96); color: #151714; box-shadow: 0 18px 55px rgba(30,36,27,.16); }
html[data-theme="light"] .relationship-card-topline button { border-color: var(--bn-line); color: var(--bn-muted); }
html[data-theme="light"] .relationship-route button { color: #151714; }
html[data-theme="light"] .relationship-card h2,
html[data-theme="light"] .relationship-facts dt,
html[data-theme="light"] .relationship-source span { color: #6d7169; }
html[data-theme="light"] .relationship-facts { border-color: var(--bn-line); }
html[data-theme="light"] .relationship-facts div:nth-child(odd),
html[data-theme="light"] .relationship-facts div:nth-child(-n+2) { border-color: var(--bn-line); }
html[data-theme="light"] .relationship-facts dd,
html[data-theme="light"] .relationship-source a { color: #30352f; }
html[data-theme="light"] .mapboxgl-popup.company-dot-tooltip .mapboxgl-popup-content { border-color: rgba(21,23,20,.13); background: rgba(250,251,247,.96); color: #151714; box-shadow: 0 8px 24px rgba(30,36,27,.16); }
html[data-theme="light"] .mapboxgl-popup.company-dot-tooltip .mapboxgl-popup-tip { border-top-color: rgba(250,251,247,.96); border-bottom-color: rgba(250,251,247,.96); }

.mapboxgl-ctrl-group { background: var(--bn-surface); }
html[data-theme="dark"] .mapboxgl-ctrl-group button span { filter: invert(1); }
html[data-theme="dark"] .mapboxgl-ctrl-attrib { background-color: rgba(17,20,16,.82); color: var(--bn-muted); }
html[data-theme="dark"] .mapboxgl-ctrl-attrib a { color: var(--bn-ink); }

@media (prefers-reduced-motion: no-preference) {
	body, .site-header, .company-panel, .appearance-toggle,
	.directory-card, .profile-note, .company-fact-grid, .company-connection,
	.watchlist-card, .settings-card, .comparison { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
}

@media (max-width: 760px) {
	.site-nav .appearance-toggle-label { display: none; }
	.site-nav .appearance-toggle { width: 34px; padding: 0; }
	.map-toolbar .appearance-toggle.is-compact { position: absolute; top: 0; right: 0; }
	.map-toolbar .search-wrap { position: absolute; top: 50px; left: 0; width: 100%; max-width: none; }
	.office-network-select:not([hidden]) { top: 100px; left: 0; width: 100%; }
	html[data-theme] .map-toolbar .account-button { color: transparent; font-size: 0; }
	html[data-theme="light"] .account-button::after { color: #343933; }
	html[data-theme="dark"] .account-button::after { color: #c9cdc5; }
}

/* Keep launch navigation readable on narrow screens. */
@media (max-width: 760px) {
 html[data-theme] .map-toolbar .launch-nav-link { width: auto; padding: 0 10px; font-size: 11px; color: var(--bn-ink); flex-shrink: 0; }
 .map-toolbar .launch-nav-link::after { content: none; }
 .map-toolbar .result-count { display: none; }
}
/* Respect semantic visibility even when a component defines display:flex. */
[hidden] { display: none !important; }
@media (min-width: 1201px) {
 .map-toolbar .status-select { display: block; }
}
@media (max-width: 900px) {
 .site-header { flex-wrap: wrap; gap: 12px; padding: 12px; }
 .site-nav { gap: 12px; }
 .site-nav > a { display: inline-flex; }
}

/* A brief introduction gives first-time visitors a starting point on the globe. */
.map-introduction { position: absolute; z-index: 4; top: 78px; left: 16px; width: min(410px, calc(100% - 32px)); padding: 22px 42px 20px 22px; border: 1px solid var(--bn-line); border-radius: 14px; background: var(--bn-surface); color: var(--bn-ink); box-shadow: 0 12px 32px var(--bn-shadow); }
.map-introduction h1 { margin: 0 0 10px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -.035em; }
.map-introduction p { margin: 0; color: var(--bn-muted); font-size: 12px; line-height: 1.6; }
.map-introduction-close { position: absolute; top: 5px; right: 5px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--bn-muted); font-size: 23px; cursor: pointer; }
.map-introduction-close:hover, .map-introduction-close:focus-visible { color: var(--bn-ink); background: var(--bn-surface-soft); }
@media (max-width: 760px) {
 .map-introduction { top: 112px; left: 10px; width: calc(100% - 20px); padding: 16px 40px 16px 16px; }
 .map-introduction h1 { font-size: 23px; }
 .map-introduction p { font-size: 11px; }
}
