/* Project facts follow the selected building; comparisons stay inside the panel. */
.project-page .project-facts-panel{min-width:0;max-width:100%;margin:0 0 14px;border-color:#dce4ef;border-radius:12px;background:#fff;box-shadow:0 3px 14px #213f6906}
.project-facts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid #e4eaf2}
.project-facts-heading>div{min-width:0}
.project-facts-heading .facts-eyebrow{margin:0 0 3px;color:#748398;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:1.1px}
.project-facts-heading h2{margin:0;color:#263c59;font-size:16px;font-weight:750;line-height:1.4;letter-spacing:-.2px;overflow-wrap:anywhere}
.facts-badge{flex-shrink:0;padding:4px 8px;border:1px solid #e4eaf1;border-radius:5px;background:#f7f9fc;color:#758299;font-size:10px;line-height:1.5;white-space:nowrap}
.project-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;background:#e7ecf3}
.project-fact{min-width:0;padding:17px 20px 16px;background:#fff}
.project-fact dt{margin:0 0 8px;color:#596c83;font-size:12px;font-weight:600;line-height:1.45}
.project-fact dd{margin:0;color:#213854;font-size:36px;font-weight:750;line-height:1.15;letter-spacing:-1.2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.project-fact dd small{font-size:18px;letter-spacing:-.2px;font-weight:600}
.project-fact p{margin:7px 0 0;color:#7b889a;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.project-fact p b{font-size:13px;font-weight:650;color:#53677e;font-variant-numeric:tabular-nums}
.project-fact p>span{display:block}
.project-fact .fact-missing{display:inline-block;color:#8995a5;font-size:23px;font-weight:500;letter-spacing:-.5px;line-height:1.45}
.project-fact.fact-sold{background:linear-gradient(115deg,#f0f4ff,#f7f9ff)}
.project-fact.fact-sold dt,.project-fact.fact-sold dd{color:#315bd0}
.project-fact.fact-sold p b{color:#49669c}
.project-fact.fact-sold .fact-missing{color:#8090af}
.project-facts-details{min-width:0;border-top:1px solid #e4eaf2}
.project-facts-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:11px 20px;list-style:none;color:#506991;font-size:12px;font-weight:600;cursor:pointer}
.project-facts-details>summary::-webkit-details-marker,.facts-source-list summary::-webkit-details-marker{display:none}
.project-facts-details>summary:after{content:'＋';flex-shrink:0;color:#91a0b3;font-size:18px;font-weight:400;line-height:1}
.project-facts-details[open]>summary:after{content:'−'}
.project-facts-details>summary:hover{background:#f8faff;color:#315ce8}
.project-facts-details>summary:focus-visible{outline-offset:-4px}
.project-facts-details[open]>summary{border-bottom:1px solid #e9edf4}
.facts-details-body{min-width:0;padding:14px 20px 17px;color:#62748b;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.facts-details-body>p{margin:0 0 12px;max-width:90ch}
.facts-details-body .table-wrap{width:100%;max-width:100%;min-width:0;margin:12px 0 16px;border:1px solid #e1e8f1;border-radius:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#a8b7ca #f1f4f8;scrollbar-width:thin}
.facts-compare{width:100%;min-width:780px;border-collapse:collapse;text-align:left;font-size:12px;font-variant-numeric:tabular-nums}
.facts-compare th,.facts-compare td{padding:11px 13px;border-bottom:1px solid #e7edf4;vertical-align:top}
.facts-compare thead th{background:#f6f8fc;color:#76859a;font-size:11px;font-weight:600;white-space:nowrap}
.facts-compare tbody th{width:29%;min-width:190px;color:#324c71;font-weight:600}
.facts-compare tbody td{min-width:100px;color:#263e5e;font-size:14px}
.facts-compare tbody tr:last-child th,.facts-compare tbody tr:last-child td{border-bottom:0}
.facts-compare tbody tr:hover{background:#f9fbff}
.facts-compare .fact-selected-row,.facts-compare .fact-selected-row:hover{background:#f0f4ff}
.facts-compare button{display:block;max-width:100%;margin:-3px 0;padding:3px 0;border:0;background:transparent;color:#45699d;text-align:left;font-size:12px;font-weight:650;line-height:1.55;overflow-wrap:anywhere}
.facts-compare button:hover{color:#315ce8;text-decoration:underline;text-underline-offset:3px}
.facts-compare small{display:block;max-width:26ch;margin-top:4px;color:#8290a2;font-size:10px;font-weight:400;line-height:1.55}
.facts-compare .fact-missing{color:#8a96a6;font-size:12px;font-weight:400;white-space:nowrap}
.facts-method-list{display:grid;gap:7px;margin:0 0 16px;padding-left:18px}
.facts-method-list li{padding-left:2px}
.facts-method-list b{color:#4a607c;font-weight:650}
.facts-details-body a{color:#4770ae;text-decoration:underline;text-decoration-color:#c3d1e5;text-underline-offset:3px}
.facts-details-body a:hover{color:#315ce8;text-decoration-color:currentColor}
.facts-source-list{display:grid;gap:6px;padding-top:13px;border-top:1px solid #e4eaf2}
.facts-source-list>details{min-width:0;padding:0 10px;border:1px solid #e5eaf2;border-radius:6px;background:#fbfcfe}
.facts-source-list summary{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 0;list-style:none;color:#5b7191;font-size:11px;font-weight:600;line-height:1.55;cursor:pointer;overflow-wrap:anywhere}
.facts-source-list summary:before{content:'›';flex-shrink:0;color:#8798b0;font-size:18px;line-height:1;transition:transform .15s ease}
.facts-source-list details[open]>summary:before{transform:rotate(90deg)}
.facts-source-list details[open]>summary{margin-bottom:5px;border-bottom:1px solid #e9edf4}
.facts-source-list details>a{display:block;width:fit-content;max-width:100%;padding:4px 0 7px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.facts-source-list details>p{padding:3px 0 9px;font-size:11px;line-height:1.6}

/* The historical summary now contains a monthly change and its price. */
.project-page #domrf-stats{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.project-page #domrf-stats .stat-card{min-width:0;overflow-wrap:anywhere}
.project-page #domrf-stats .stat-card:last-child{display:block;grid-column:auto;border-top:0;border-right:0}
.project-page #domrf-stats .stat-card:last-child .stat-caption{grid-column:auto;margin-top:5px}
.project-page #domrf-stats .stat-number small{display:inline-block;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:0}
.project-page .metric-method{max-width:100%;margin-top:5px;color:#7b8b9f;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
.project-page .metric-method>summary{width:fit-content;max-width:100%;padding:3px 0;color:#63809d;font-size:11px;font-weight:500;cursor:pointer}
.project-page .metric-method[open]>summary{color:#315ce8}
.project-page .metric-method>p{max-width:64ch;margin:6px 0 0;padding:8px 10px;border-radius:5px;background:#f3f6fa;color:#667c94;font-size:11px;line-height:1.75}

@media(max-width:700px){
 .project-page .project-facts-panel{margin-bottom:12px;border-radius:10px}
 .project-facts-heading{gap:8px;padding:12px 14px}
 .project-facts-heading .facts-eyebrow{font-size:9px;letter-spacing:.75px}
 .project-facts-heading h2{font-size:14px}
 .facts-badge{padding:3px 6px;font-size:9px}
 .project-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-fact{padding:14px}
 .project-fact dt{min-height:34px;margin-bottom:5px;font-size:11px;line-height:1.5}
 .project-fact dd{font-size:clamp(25px,5.2vw,34px);letter-spacing:-.9px}
 .project-fact dd small{font-size:15px}
 .project-fact p{margin-top:6px;font-size:10px;line-height:1.6}
 .project-fact p b{font-size:12px}
 .project-fact .fact-missing{font-size:20px;line-height:1.65}
 .project-facts-details>summary{min-height:44px;padding:10px 14px;font-size:11px}
 .facts-details-body{padding:12px 14px 14px;font-size:11px}
 .facts-details-body .table-wrap{margin:10px 0 14px}
 .facts-compare{min-width:735px}
 .facts-compare th,.facts-compare td{padding:10px}
 .facts-compare button{min-height:36px}
 .facts-source-list summary{min-height:42px}
 .project-page #domrf-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-page #domrf-stats .stat-card{padding:11px 12px}
 .project-page #domrf-stats .stat-title{font-size:11px;line-height:1.5}
 .project-page #domrf-stats .stat-number{font-size:24px;line-height:1.3}
 .project-page #domrf-stats .stat-caption{font-size:10px;line-height:1.6}
 .project-page #domrf-stats .stat-number small{font-size:11px}
 .project-page .metric-method>summary{min-height:30px;padding:6px 0;font-size:10px}
 .project-page .metric-method>p{padding:7px;font-size:10px}
}
@media(max-width:380px){
 .project-facts-heading{align-items:flex-start;flex-wrap:wrap}
 .facts-badge{margin-top:2px}
 .project-fact{padding:12px 10px}
 .project-fact dd{font-size:23px;letter-spacing:-.7px}
 .project-fact dd small{font-size:13px}
 .project-fact .fact-missing{font-size:18px}
 .project-page #domrf-stats .stat-card{padding:10px}
 .project-page #domrf-stats .stat-number{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.facts-source-list summary:before{transition:none}}
