/* Shared type and spacing scale for the explorer, profiles and campus views. */
:root{--text-xs:.75rem;--text-sm:.875rem;--text-base:1rem;--text-lg:1.25rem;--text-title:1.5rem;--text-display:1.75rem;--weight-normal:400;--weight-medium:500;--weight-strong:600;font-size:16px;--muted:#a5b4bc}
body{font-size:var(--text-base);line-height:1.5}
button,input,select{font-family:inherit;line-height:1.4}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline-color:#e3c48c;outline-offset:3px}
.sidebar{width:260px;padding:28px 22px}
.tools-home{font-size:var(--text-sm);color:#a6c4cc;margin-bottom:26px}
.brand{font-size:var(--text-lg);line-height:1.25;letter-spacing:-.3px;margin-bottom:30px}
.brand strong{font-weight:var(--weight-strong)}
.sidebar-heading{font-size:var(--text-xs);letter-spacing:.08em;margin-bottom:14px}
.text-button{font-size:var(--text-sm);font-weight:var(--weight-medium);color:#c7d5da}
.filter{padding-bottom:16px;margin-bottom:18px}
.filter summary{font-size:var(--text-sm);line-height:1.5;font-weight:var(--weight-strong);padding:3px 0}
.filter-options{margin-top:9px;max-height:none}
.filter label{font-size:var(--text-sm);line-height:1.5;padding:6px 0;align-items:center;gap:10px}
.filter input{width:16px;height:16px;margin:0;accent-color:#d7b474}
.filter label small,.filter summary b{font-size:var(--text-xs);line-height:1.5}
.sidebar-foot,.sidebar-foot small{font-size:var(--text-xs);line-height:1.7;color:#a1b0b8}
main{margin-left:260px;padding:24px 28px;max-width:none}
.map-section{margin:0 0 26px}
#metro-map{height:clamp(290px,36vh,380px)}
.map-heading .mini-label,.map-heading p{display:none}.map-heading{min-height:44px;margin-bottom:16px}.map-heading h2{margin:0;font-size:var(--text-title);font-weight:var(--weight-strong);line-height:1.25}
.map-heading p,.map-heading .mini-label{font-size:var(--text-xs)}
.outline-button,.primary-button,.map-actions .outline-button,.view-switch button{font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:1.4;min-height:40px;padding:9px 13px}
.map-actions{gap:8px;top:14px;left:14px}
.map-caption{font-size:var(--text-xs);line-height:1.5;padding:9px 12px}
.map-legend{font-size:var(--text-xs);line-height:1.5;gap:12px 22px;margin-top:12px;color:#adbec4}
.map-legend span{font-size:inherit}
.pin,.campus-pin,.navy-building-pin{font-size:var(--text-xs);font-weight:var(--weight-strong)}
.search{max-width:720px;min-height:44px;padding:0 14px}
.search input{font-size:var(--text-sm);line-height:1.5;padding:11px 0;color:#e3ecec}
.search input::placeholder{color:#a0b2b9}
.download-group>span,.result-meta,.pagination{font-size:var(--text-sm);line-height:1.5;color:#a7b7be}
.result-meta{margin:17px 0 12px;flex-wrap:wrap}
.finance-status-legend{font-size:var(--text-xs);color:#a7b7be}
.chip{font-size:var(--text-sm);line-height:1.4;padding:6px 10px}
.table-wrap{border-radius:8px;box-shadow:none}
.table-wrap table{min-width:1360px;table-layout:fixed}

.table-wrap th,.table-wrap th button{font-size:var(--text-xs);font-weight:var(--weight-strong);line-height:1.5;letter-spacing:0;color:#bccbd0}
.table-wrap th button{padding:14px 12px;min-height:46px}
.table-wrap td{font-size:var(--text-sm);line-height:1.5;padding:18px 12px;color:#b7c5ca;overflow-wrap:break-word}

.table-wrap .company-button{font-size:var(--text-base);line-height:1.4;font-weight:var(--weight-strong);letter-spacing:0;color:#e0e9e9}
.table-wrap .cell-sub,.table-wrap .sponsor-comment{font-size:var(--text-xs);line-height:1.5;color:#a2b5bf;margin-top:6px;max-width:none}
.profile-link{font-size:var(--text-sm);line-height:1.4;color:#b6c8d1;padding:2px 0}
.table-wrap .owner-name{font-size:var(--text-sm);font-weight:var(--weight-normal);line-height:1.5;color:#c5d1d5}
.table-wrap .finance-value,.table-wrap .finance-comparison{font-size:var(--text-base);line-height:1.4;font-weight:var(--weight-medium);letter-spacing:0;white-space:normal;text-align:left;font-variant-numeric:tabular-nums;padding:0}
.table-wrap .finance-comparison span{display:block;white-space:nowrap}
.financial-spark{display:none}
.financial-caption{display:block;font-size:var(--text-xs);line-height:1.4;margin-top:5px;color:#a4b7c0;font-weight:var(--weight-normal);white-space:nowrap}
.finance-estimate-marker{font-size:var(--text-xs);line-height:1.4;margin-left:4px;color:#bca77f;font-weight:var(--weight-normal)}
.pe-tag,.badge{font-size:var(--text-xs);line-height:1.4;letter-spacing:0;padding:5px 8px;font-weight:var(--weight-medium);white-space:normal}
.table-wrap .cluster-header th{font-size:var(--text-xs);font-weight:var(--weight-strong);line-height:1.5;padding:11px 12px;letter-spacing:.04em;color:#b1c2ca}
.page-footer{font-size:var(--text-xs);color:#91a6b0;margin-top:24px;line-height:1.5}
.detail-dialog{width:min(700px,100vw)}
.dialog-bar{padding:15px 28px;min-height:62px}
.dialog-bar>span,.detail-firm,.mini-label{font-size:var(--text-xs);line-height:1.5;font-weight:var(--weight-medium);letter-spacing:.06em}
.icon-button{font-size:24px;line-height:1;min-width:32px;min-height:32px}
#detail-content{padding:28px}
.detail-title-row h2{font-size:var(--text-display);line-height:1.2;letter-spacing:-.5px;font-weight:var(--weight-strong);margin:0 0 14px}
#detail-content>a,.website-link{font-size:var(--text-sm);line-height:1.5;color:#d8c28f}
.finance-detail{padding:22px;margin:24px 0;border-radius:8px}
.finance-detail-head{align-items:center;gap:12px;flex-wrap:wrap}
.finance-detail .mini-label,.finance-forecast-label,.finance-actual-label,.estimate-confidence{font-size:var(--text-xs);line-height:1.5;letter-spacing:.02em}
.finance-numbers{gap:24px}
.finance-numbers span{font-size:var(--text-sm);line-height:1.5;color:#b0c3ca}
.finance-numbers strong,.finance-numbers .finance-comparison{font-size:var(--text-title);line-height:1.3;letter-spacing:-.3px;font-weight:var(--weight-medium)}
.finance-numbers .finance-comparison span{display:block;color:inherit;font-size:inherit;line-height:inherit}
.finance-numbers .financial-caption{font-size:var(--text-xs);line-height:1.5;margin-top:7px}
.profile-margin{font-size:var(--text-sm);line-height:1.5;margin-top:20px;padding-top:16px}
.profile-margin strong{font-size:var(--text-base);font-weight:var(--weight-medium)}
.detail-grid{gap:22px 26px;padding:24px 0}
.detail-grid dt{font-size:var(--text-xs);line-height:1.5;color:#a6bac3;margin-bottom:7px}
.detail-grid dd{font-size:var(--text-sm);line-height:1.6;font-weight:var(--weight-normal)}
.detail-section{margin-top:28px}
.detail-section h3{font-size:var(--text-base);line-height:1.4;font-weight:var(--weight-strong);margin:0 0 10px;color:#e0e9ec}
.detail-section p,.detail-section li{font-size:var(--text-sm);line-height:1.65;color:#b5c6ce;margin-top:0}
.source>a{font-size:var(--text-sm);line-height:1.5;font-weight:var(--weight-medium);color:#c5d6de}
.source small,.source blockquote,.field-note{font-size:var(--text-xs)!important;line-height:1.6}
.estimate-basis{margin-bottom:26px;padding-bottom:24px;border-bottom:1px solid #354951}
.estimate-period{font-size:var(--text-xs);color:#adc0c8;line-height:1.5;margin:14px 0 0}
.estimate-evidence{margin:18px 0 0;padding-left:18px}
.estimate-evidence li{padding:0 0 10px;font-size:var(--text-sm);line-height:1.6;color:#b5c6ce}
.estimate-evidence a{color:#cbb987;font-size:var(--text-xs)}
.estimate-source-list{padding:0;list-style:none;margin:12px 0 0}
.estimate-source-list li{margin:6px 0}
.estimate-source-list a{font-size:var(--text-sm);color:#cbb987}
.popup-title,.leaflet-container .popup-title{font-size:var(--text-xs);line-height:1.5;letter-spacing:.04em}
.popup-work-link{font-size:var(--text-base);line-height:1.4;font-weight:var(--weight-strong)}
.popup-company small{font-size:var(--text-xs);line-height:1.5}
.map-finance span{font-size:var(--text-xs);line-height:1.5}
.map-finance strong,.map-finance .finance-comparison{font-size:var(--text-base);line-height:1.4;font-weight:var(--weight-medium)}
.navy-yard-dialog .dialog-bar h2{font-size:var(--text-title);line-height:1.25;font-weight:var(--weight-strong);letter-spacing:-.3px}
.campus-actions .outline-button,.campus-view-switch button,.campus-locate,.campus-details{font-size:var(--text-sm);line-height:1.4;font-weight:var(--weight-medium)}
.campus-actions .outline-button{min-height:40px}
.campus-view-switch button{padding:7px 12px;min-height:32px}
.navy-yard-layout{grid-template-columns:minmax(0,1fr) 264px}
.campus-work-link{font-size:var(--text-base);line-height:1.4;font-weight:var(--weight-strong)}
.campus-building-label,.campus-building-main small,.navy-yard-footer{font-size:var(--text-xs);line-height:1.5}
.campus-building-card{padding:14px 13px}
.campus-card-actions{margin-top:9px;gap:18px}
.campus-locate,.campus-details{min-height:32px}
.navy-3d-selection h3{font-size:var(--text-lg);line-height:1.3;font-weight:var(--weight-strong)}
.navy-3d-selection p,.navy-3d-selection .selection-building{font-size:var(--text-xs);line-height:1.5}
.navy-3d-selection .selection-actions a,.navy-3d-selection .selection-actions button{font-size:var(--text-sm);line-height:1.4}
.navy-3d-status{font-size:var(--text-sm);line-height:1.5}
.navy-3d-steer button[data-camera=tilt]{font-size:var(--text-xs)}
@media(max-width:1200px){.sidebar{width:238px;padding:26px 18px}main{margin-left:238px;padding:22px}.table-wrap table{min-width:1360px}.navy-yard-layout{grid-template-columns:minmax(0,1fr) 238px}}
@media(max-width:800px){main{margin-left:0;padding:18px}.sidebar{width:270px;padding:24px 20px}.brand{margin-bottom:28px}#metro-map{height:360px}.map-actions{gap:6px;top:10px;left:10px}.map-actions .outline-button{font-size:var(--text-xs);padding:8px 10px;min-height:36px}.toolbar{gap:10px}.search input{font-size:var(--text-base)}.result-meta{font-size:var(--text-xs);align-items:flex-start}.result-meta>span:last-child{display:block}.finance-status-legend{flex-basis:100%}.detail-title-row h2{font-size:var(--text-title)}#detail-content{padding:24px}.finance-numbers strong,.finance-numbers .finance-comparison{font-size:var(--text-lg)}.detail-section p,.detail-section li,.detail-grid dd{font-size:var(--text-sm)}.navy-yard-dialog .dialog-bar h2{font-size:var(--text-lg)}.navy-yard-layout{grid-template-columns:minmax(0,1fr) 220px}.campus-work-link{font-size:var(--text-sm)}.navy-yard-footer{font-size:var(--text-xs)}}
@media(max-width:680px){.navy-yard-layout{grid-template-columns:1fr}.campus-actions .outline-button,.campus-view-switch button{font-size:var(--text-sm)}.navy-yard-buildings{grid-template-columns:repeat(2,minmax(0,1fr))}.campus-building-card{padding:12px 10px}.campus-card-actions{gap:12px}.navy-3d-selection h3{font-size:var(--text-lg)}.finance-numbers{gap:16px}.detail-grid{gap:20px}.navy-yard-dialog .dialog-bar h2{font-size:var(--text-lg)}}
.estimate-inputs{margin-top:18px}.estimate-inputs summary{font-size:var(--text-sm);line-height:1.5;color:#d7c18e;cursor:pointer;font-weight:var(--weight-medium)}.estimate-inputs h4{font-size:var(--text-sm);line-height:1.5;color:#dce6e9;margin:18px 0 8px}.estimate-inputs>p{margin:18px 0 10px}

.finance-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px 16px}.estimate-confidence{color:#b5c6ce}.estimate-scope{color:#91a7b2}
@media(max-width:480px){.estimate-confidence{flex-basis:100%}.finance-detail{padding:20px}.financial-caption{white-space:normal}}

.campus-work-link{text-wrap:balance}

/* Full-width explorer and phone-friendly company summaries. */
main{margin:0 auto;width:100%;max-width:1840px;padding:28px 32px}
.tools-home{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px}
.map-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.map-heading h1{margin:0;font-size:var(--text-display);line-height:1.25;font-weight:600;letter-spacing:-.5px}
.view-switch{flex-shrink:0}.view-switch button{min-height:44px}
.company-cards,.mobile-sort{display:none}
.icon-button{min-width:44px;min-height:44px}
.campus-card-actions{flex-wrap:wrap}
.detail-dialog{overscroll-behavior:contain}
.detail-section p,.detail-section li{overflow-wrap:anywhere}
.navy-yard-dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overscroll-behavior:contain}
@media(max-width:1100px){main{padding:24px}.table-wrap table{min-width:1240px}}
@media(max-width:800px){
 main{margin:0;padding:12px 16px 24px;max-width:100%}
 .tools-home{margin-bottom:10px}
 .map-heading{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:16px}
 .map-heading h1{font-size:var(--text-title);line-height:1.25;max-width:100%;letter-spacing:-.35px}
 .view-switch{margin:0}.view-switch button{font-size:var(--text-sm);padding:10px 16px}
 #metro-map{height:280px}.map-section{margin-bottom:24px}
 .map-actions{top:10px;left:10px;gap:8px}.map-actions .outline-button{font-size:var(--text-sm);min-height:44px;padding:9px 12px}
 .map-caption{max-width:calc(100% - 20px);font-size:var(--text-xs)}
 .map-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:14px}
 .map-legend span{line-height:1.5;display:flex;align-items:center;gap:6px}
 .toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
 .search{flex:1 1 100%;min-width:0;max-width:none;min-height:48px}.search input{min-width:0;width:100%;font-size:16px;padding:12px 0}
 .download-group{margin-left:auto}.download-group>span{display:none}.download-group .primary-button{min-height:44px;padding:10px 14px;font-size:var(--text-sm)}
 .mobile-sort{display:flex;align-items:center;gap:8px;font-size:var(--text-sm);margin-top:12px;color:#aebfc6}
 .mobile-sort select{flex:1;min-width:0;max-width:300px;min-height:44px;background:#182127;color:#e0e9ec;border:1px solid #42545e;border-radius:6px;padding:9px 10px;font-size:16px}
 .result-meta{margin:16px 0;gap:5px}.result-meta>span{font-size:var(--text-xs)}
 .table-wrap{display:none!important}
 .company-cards{display:grid;gap:14px}.company-cards[hidden]{display:none}
 .company-card{min-width:0;padding:18px;background:#151d21;border:1px solid #3b4b53;border-radius:10px}
 .benchmark-card{background:#26271f;border-color:#756743}
 .card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#a9bac2;font-size:var(--text-xs)}
 .benchmark-card .card-heading{color:#d7bf90}.card-index{font-variant-numeric:tabular-nums}
 .company-card h2{margin:0;font-size:18px;line-height:1.45;font-weight:600}
 .card-work-link{color:#e5eded;text-decoration:none;text-underline-offset:3px;overflow-wrap:anywhere}
 .card-work-link:hover,.card-work-link:focus-visible{text-decoration:underline}
 .benchmark-card .card-work-link{color:#e7cc94}
 .card-financials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:18px 0 0}
 .card-metric-label{display:block;font-size:var(--text-xs);color:#afc0c7;margin-bottom:2px}
 .card-financials .finance-value{font-size:var(--text-lg);font-weight:500;line-height:1.4;min-height:44px;max-width:100%;padding:4px 0;white-space:normal;letter-spacing:0;color:#e1eaea;text-align:left}
 .card-financials .finance-comparison{font-size:var(--text-base)}.card-financials .finance-comparison span{display:block;white-space:nowrap}
 .card-scope{font-size:var(--text-xs);color:#a9bdc6;margin:4px 0 0}
 .card-facts{display:grid;gap:10px;margin:16px 0;padding-top:16px;border-top:1px solid #34474f}
 .card-facts>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}
 .card-facts dt{font-size:var(--text-xs);color:#9bb1bc;line-height:1.6}.card-facts dd{margin:0;font-size:var(--text-sm);color:#d2dfe3;line-height:1.5;overflow-wrap:anywhere}
 .card-details{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:10px 12px;font-size:var(--text-sm);text-align:left}
 .page-footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;line-height:1.6}
 .detail-dialog{width:100%;max-width:100vw;height:100dvh;max-height:100dvh}
 #detail-content{padding:22px 20px calc(24px + env(safe-area-inset-bottom))}.dialog-bar{padding:10px 16px}
 .detail-section p,.detail-section li{font-size:var(--text-base);line-height:1.6}
 .detail-section .field-note{font-size:var(--text-sm)!important}
 .estimate-evidence a{font-size:var(--text-sm)}.estimate-inputs summary{padding:8px 0;min-height:44px}
 .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid dd{overflow-wrap:anywhere}
 .navy-yard-dialog{max-width:calc(100vw - 12px);width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
 .navy-yard-layout{grid-template-columns:1fr;padding:12px 10px 0}
 .navy-yard-dialog .dialog-bar{padding:12px;gap:10px}.navy-yard-dialog .dialog-bar h2{white-space:normal;max-width:calc(100% - 44px);font-size:20px;line-height:1.3;width:100%}
 .campus-actions{margin:0;width:100%;justify-content:space-between;gap:6px;flex-wrap:wrap}
 .campus-actions .icon-button{position:absolute;right:8px;top:5px}
 .campus-view-switch button{min-width:44px;min-height:40px;padding:8px 10px}
 .campus-actions .outline-button{min-height:44px;padding:8px 10px;font-size:var(--text-sm)}
 #navy-3d-shell,#navy-yard-map{height:48dvh;min-height:290px;max-height:430px}
 .navy-yard-buildings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:10px;padding:0}
 .campus-building-card{min-width:0;padding:14px}.campus-work-link{font-size:var(--text-base)}
 .campus-locate,.campus-details{min-height:44px;display:inline-flex;align-items:center;font-size:var(--text-sm)}
 .campus-card-actions{gap:10px 18px}
 .navy-3d-steer button{min-height:44px;min-width:44px}
 .navy-3d-selection{left:10px;bottom:38px;min-width:0;max-width:calc(100% - 76px);padding:12px}.navy-3d-selection h3{font-size:18px}
 .navy-3d-selection .selection-actions{flex-wrap:wrap;gap:4px 14px}.navy-3d-selection .selection-actions a,.navy-3d-selection .selection-actions button{min-height:44px;display:inline-flex;align-items:center}
 .navy-yard-footer{padding:14px;font-size:var(--text-xs)}
}
@media(max-width:480px){.navy-yard-buildings{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.finance-detail{padding:18px}.finance-numbers{gap:12px}.finance-numbers>div{min-width:0}.finance-detail-head{gap:8px}.profile-margin{gap:12px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.company-card{padding:16px}.map-actions .outline-button{padding:9px 10px}.navy-yard-dialog .dialog-bar{padding-left:10px;padding-right:10px}.campus-view-switch button{padding:6px}.campus-actions .outline-button{padding:8px}.card-facts>div{grid-template-columns:82px minmax(0,1fr);gap:8px}}
@media(max-width:800px){.profile-margin{flex-wrap:wrap}.finance-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.navy-building-pin{min-width:44px;min-height:44px}.leaflet-control-zoom a{width:40px;height:40px;line-height:40px}#navy-3d-map .maplibregl-ctrl-group button{width:40px;height:40px}}
@media(max-width:359px){.finance-numbers{grid-template-columns:1fr;gap:18px}}
.results-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
@media(max-width:800px){.results-actions{width:100%;margin:0}.mobile-sort{display:block;flex:1;min-width:0;margin:0}.mobile-sort select{width:100%;max-width:none}.download-group{margin:0;flex-shrink:0}}
.table-wrap table{min-width:1180px}

/* NYC Fabricators: a quiet map and consistent comparison surface. */
main{padding:24px 32px 40px}
.tools-home{margin:0 0 18px;padding:8px 16px;min-height:44px;color:#d8e4e8;text-decoration:none;width:max-content}
.tools-home:hover{text-decoration:none}
.map-heading{margin-bottom:18px;min-height:0}
.map-heading h1{font-size:28px;letter-spacing:-.4px}
.map-section{margin-bottom:22px}
.map-legend{font-size:14px;gap:10px 22px;margin-top:12px}
.toolbar{margin-bottom:18px;gap:12px}
.search{max-width:680px;gap:12px;min-height:44px;flex:1}
.search-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;color:#acbfc7}
.search input{width:100%;min-width:0;font-size:16px}
.results-actions{display:none}
.table-wrap table{table-layout:fixed;min-width:1130px}

.table-wrap th,.table-wrap th button{font-size:14px;text-transform:none;letter-spacing:0}
.table-wrap th button{padding:13px 10px;white-space:nowrap}
.table-wrap td{padding:16px 10px;font-size:14px;line-height:1.5;vertical-align:middle}
.table-wrap th[data-sort="revenueMid"],.table-wrap th[data-sort="ebitdaMid"],.table-wrap th[data-sort="founded"],.table-wrap .revenue-cell,.table-wrap .ebitda-cell,.table-wrap .year-cell{text-align:center}
.table-wrap th[data-sort="revenueMid"] button,.table-wrap th[data-sort="ebitdaMid"] button,.table-wrap th[data-sort="founded"] button{justify-content:center;width:100%;text-align:center}
.table-wrap .finance-value{font-size:16px;display:block;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:inherit}
.finance-value:hover{text-decoration:none}
.finance-comparison>span{display:block;white-space:nowrap}
.finance-comparison small,.profile-margin small{font-size:12px;font-weight:400;color:#aabbc2;margin-left:4px}
.table-wrap .company-button{font-size:16px;font-weight:600;text-decoration:none;line-height:1.4}
.company-button:hover,.card-work-link:hover,.popup-work-link:hover,.detail-work-link:hover{text-decoration:underline;text-underline-offset:3px}
.company-row{cursor:pointer;transition:background-color .12s}
.table-wrap .company-row:hover{background:#243039}
.table-wrap .benchmark-row:hover{background:#32342a}
.company-row:focus-visible{outline:2px solid #e3c48c;outline-offset:-2px}
.company-row.group-start td{border-top:1px solid #53616a}
.pe-tag,.badge{padding:0;border:0;border-radius:0;background:none!important;font-size:14px;font-weight:400;color:#c0cdd2;white-space:normal;text-transform:none;letter-spacing:0}
.pe-tag.confirmed{color:#abc2d7}.pe-tag.unknown{color:#adb5bb}.pe-tag.benchmark{color:#dfc58e}
.reference-index,.mini-label,.detail-grid dt,.card-heading,.campus-building-label,.detail-section h3{text-transform:none;letter-spacing:0}
.pin{width:32px;height:32px;margin:6px;border-width:1.5px}
.pin.cluster{width:36px;height:36px;margin:4px;font-size:12px}
.pin.campus-entry{width:40px;height:40px;margin:2px;box-shadow:0 0 0 4px #d7b47419,0 3px 12px #0008}
.pin.located{outline:3px solid #e8cd95;outline-offset:4px}
.leaflet-control-attribution{font-size:12px!important;line-height:1.4;padding:2px 5px!important}
.popup-company.profile-trigger{cursor:pointer;padding:12px 0}
.popup-company.profile-trigger:focus-visible{outline:2px solid #e3c48c;outline-offset:4px}
.popup-work-link{margin-bottom:8px;text-decoration:none}
.popup-owner:empty{display:none}
.map-finance strong{font-variant-numeric:tabular-nums}
.map-finance .finance-comparison>span{font-size:16px;color:#e0e9e9}
.detail-dialog .dialog-bar{justify-content:flex-end;min-height:52px;padding:4px 16px;border:0}
#detail-content{padding-top:0}
.detail-title-row h2{margin-top:0;margin-bottom:22px}
.finance-detail{padding:20px;margin:0 0 22px}
.finance-numbers{margin:0 0 14px;gap:24px}
.finance-numbers strong{font-variant-numeric:tabular-nums}
.profile-margin strong>span{display:block}
.financial-context{font-size:14px;line-height:1.6;margin:20px 0 0;padding-top:16px;border-top:1px solid #354951}
.financial-context>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;margin-top:10px}
.financial-context dt{color:#acbfc7}.financial-context dd{margin:0;color:#cbd7dc}
.detail-section{margin-top:24px}
.estimate-inputs,.profile-sources{border-top:1px solid #354951;padding-top:14px}
.estimate-inputs summary,.profile-sources summary{font-size:16px;color:#d8e4e8;font-weight:500;cursor:pointer;min-height:44px;display:list-item;line-height:1.6;padding:8px 0}
.estimate-inputs p,.estimate-inputs li{font-size:14px;line-height:1.7;color:#b7c9d0}
.profile-sources .source{margin:12px 0}
.detail-grid{padding:20px 0;margin:0;gap:20px 28px}
.detail-grid dt{font-size:14px}.detail-grid dd{font-size:16px}
.navy-yard-dialog .dialog-bar{justify-content:space-between;border-bottom:1px solid #35424a;padding:14px 20px}
.navy-yard-footer{justify-content:space-between}
.campus-building-card.unknown{border-color:#64717b}.campus-pin.unknown{background:#68737b;border-color:#b1bdc4}
.campus-svg-building.unknown polygon{fill:#68737b;stroke:#b1bdc4}
.navy-building-pin.unknown{background:#68737b;border-color:#b1bdc4;color:#fff}
.navy-building-pin.confirmed{background:#465e73;border-color:#b4cce0;color:#fff}
.navy-building-pin.founder{background:#343b42;border-color:#a6b2bc;color:#fff}
.navy-3d-selection .selection-building{text-transform:none;letter-spacing:0}
@media(max-width:1100px){main{padding:22px}}
@media(max-width:800px){
 main{padding:12px 16px 28px}
 .tools-home{margin-bottom:12px}.map-heading h1{font-size:24px}
 .map-heading{margin-bottom:16px}.map-section{margin-bottom:20px}
 #metro-map{height:250px}.map-legend{font-size:13px;gap:8px 12px;margin-top:12px}
 .toolbar{flex-wrap:nowrap;align-items:stretch;gap:10px;margin-bottom:18px}
 .search{flex:1 1 auto;min-width:80px;padding:0 12px;min-height:48px}
 .search input{padding:12px 0}.search-icon{width:18px;height:18px}
 .results-actions{display:flex;width:auto;margin:0;flex:0 1 47%;min-width:140px}
 .mobile-sort{display:flex;margin:0;width:100%;min-width:0}
 .mobile-sort select{font-size:14px;max-width:100%;min-height:48px;padding:8px}
 .company-cards{gap:12px}.company-card{padding:17px;cursor:pointer}
 .company-card:focus-visible{outline:2px solid #e3c48c;outline-offset:3px}
 .card-heading{margin-bottom:8px;font-size:13px}
 .card-financials{gap:18px;padding-top:16px}
 .card-financials .finance-value{min-height:0;padding:0;font-size:20px;display:block;cursor:inherit}
 .card-financials .finance-comparison{font-size:20px}.card-financials .finance-comparison small{font-size:12px}
 .card-metric-label{font-size:14px;margin-bottom:4px}
 .card-facts{margin-bottom:0;margin-top:16px;gap:9px;padding-top:14px}
 .card-facts dt,.card-facts dd{font-size:14px}
 .detail-grid dd,.detail-section p,.estimate-inputs p,.estimate-inputs li{font-size:16px}
 #detail-content{padding:0 20px 28px}.finance-detail{padding:18px}
 .financial-context>div{grid-template-columns:1fr;gap:3px;margin-top:12px}
 .financial-context{font-size:14px}.finance-numbers strong{font-size:24px}
 .navy-yard-dialog .dialog-bar{padding:12px}
 .leaflet-control-attribution{font-size:12px!important;max-width:calc(100% - 12px)}
}
@media(max-width:359px){main{padding-left:12px;padding-right:12px}.toolbar{gap:8px}.search{gap:7px}.results-actions{min-width:130px}.mobile-sort select{font-size:13px}.card-facts>div{grid-template-columns:82px minmax(0,1fr)}.finance-numbers{grid-template-columns:1fr 1fr;gap:10px}.finance-numbers strong{font-size:22px}}

.campus-marker.is-active .campus-pin{outline:3px solid var(--accent);outline-offset:3px}
.ebitda-cell .finance-comparison>span,.profile-margin strong>span{display:flex;align-items:baseline;gap:6px}
.ebitda-cell .finance-comparison>span{justify-content:center}
.profile-margin strong>span{justify-content:flex-end}
.ebitda-cell .finance-comparison small,.profile-margin strong>span small{width:60px;text-align:left;margin:0}

@media(max-width:800px){.results-actions{flex:0 0 152px;max-width:none}.mobile-sort select{padding-inline:10px}}

/* Keep the two peer categories distinct under every sort. */
.table-wrap th:nth-child(1){width:22%}.table-wrap th:nth-child(2){width:9%}.table-wrap th:nth-child(3){width:10.5%}.table-wrap th:nth-child(4){width:6%}.table-wrap th:nth-child(5){width:10.5%}.table-wrap th:nth-child(6){width:18%}.table-wrap th:nth-child(7){width:9%}.table-wrap th:nth-child(8){width:15%}
.table-wrap .company-row>td:first-child,.table-wrap th[data-sort="name"]{text-align:left}
.table-wrap .category-heading td{padding:12px 16px;background:#10191d;border-top:1px solid #45545d;border-bottom:1px solid #35424a;text-align:left}
.category-heading h2,.company-group-heading{margin:0;color:#d7e1e5;font-size:16px;line-height:1.5;font-weight:600;letter-spacing:0;text-transform:none}
.company-group-heading{grid-column:1/-1;padding:12px 0 0;margin:4px 0 0;border-top:1px solid #45545d}
.pin:not(.cluster)::after{content:"";display:block;width:6px;height:6px;border-radius:50%;background:currentColor}
