/* 7 October: quieter hierarchy, consistent alignment, evidence-first corpus. */
.rail{box-shadow:4px 0 18px -12px rgba(12,22,25,.22);border-right-color:rgba(12,22,25,.1);gap:34px}
.brand{padding:0 12px;min-height:60px;justify-content:center}
.brand-logo{width:155px;height:auto;mix-blend-mode:multiply}
.bar{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--paper)}
/* The image and title lead. Numbers sit in one compact supporting strip. */
.cover,.cover-in{min-height:520px}
.cover-in{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:64px var(--gap);gap:0}
.cover-in>div{max-width:760px}
.cover .display{font-size:clamp(68px,6.2vw,96px);line-height:.98;margin-top:18px;text-wrap:initial}
.kpi{position:absolute;top:32px;right:var(--gap);width:450px;max-width:calc(100% - 2 * var(--gap));padding:18px 22px;border:0;border-radius:3px;background:rgba(8,23,27,.64);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.kpi .eyebrow{font-size:10px;letter-spacing:.12em;color:#b7c7c7}
.kpi-line{display:grid;grid-template-columns:1.1fr 1fr 1fr 1.2fr;gap:16px;align-items:baseline;margin-top:12px}
.kpi-line>div{display:grid;grid-template-rows:36px 28px;gap:6px;align-items:baseline}
.kpi-line b{font:400 29px/1 var(--serif);color:#d9e8e7}
.kpi-line .kpi-total b{font-size:38px;color:#fff}
.kpi-line span{font:400 11px/1.3 var(--sans);color:#c0d0cf;white-space:normal}
/* A sequential milestone timeline with one alignment rule for every date. */
.band-in{max-width:none;padding:0;position:relative}
.band-row{min-height:178px;display:flex;align-items:stretch}
.vlabel{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;align-self:stretch;height:auto;flex:0 0 48px;width:48px;padding:0;border:0;background:var(--teal-wash);font:600 11px/1 var(--sans);letter-spacing:.17em;display:flex;align-items:center;justify-content:center}
.band-row .axis{position:relative;display:grid;grid-template-columns:repeat(var(--marks,4),minmax(0,1fr));flex:1;gap:12px;margin:0;padding:22px 28px 18px;height:178px;min-width:0}
.ax-line{top:91px;left:28px;right:28px;background:var(--rule)}
.ax-m,.ax-m.hot,.ax-m.end,.ax-m.start{position:relative;left:auto!important;top:auto;transform:none;width:auto!important;min-width:0;padding:0 5px;display:grid;grid-template-rows:56px 26px auto;justify-items:center;align-items:start;text-align:center;border-radius:3px}
.ax-top,.ax-m.end .ax-top,.ax-m.start .ax-top{height:auto;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:flex-start;width:100%}
.ax-top b,.ax-m.hot .ax-top b{font:500 16px/1.2 var(--sans);color:var(--ink)}
.ax-top span{font:400 12px/1.2 var(--sans);color:var(--ink-3)}
.ax-dots{height:26px;align-items:center;margin:0;gap:3px}
.ax-dots i,.ax-m.hot .ax-dots i{width:10px;height:10px;background:var(--teal);box-shadow:0 0 0 3px var(--sheet)}
.ax-lab,.ax-m.hot .ax-lab,.ax-m.start .ax-lab,.ax-m.end .ax-lab{font:400 16px/1.2 var(--serif);color:var(--ink-2);margin:5px 0 0;max-width:170px;width:auto;white-space:normal;text-wrap:balance}
/* The report uses the same edge-to-edge hero as the home page. */
.reports-page{max-width:none}
.reports-page .rhero{margin:0 calc(-1 * var(--gap));border-radius:0}
.reports-page .rhero-in{max-width:1240px;margin:auto;padding:58px var(--gap);min-height:520px;gap:60px}
.reports-page>.tools,.reports-page>#rep-list{max-width:1240px;margin-left:auto;margin-right:auto}
.reports-page>.tools{margin-top:40px}
.rh-title{font-weight:400}
/* Flush side drawers, with the project name as the sole large heading. */
@media screen{
.drawer,.drawer.wide,.drawer.narrow{top:0;right:0;bottom:0;left:auto;border-radius:0;max-height:100dvh;box-shadow:-16px 0 60px -25px rgba(12,22,25,.38)}
.drawer{width:min(700px,92vw)}.drawer.wide{width:min(960px,92vw)}.drawer.narrow{width:min(560px,92vw)}
.dr-bar{border-radius:0}
}
.project-brief .dr-id{padding:35px 40px 28px}
.project-brief .dr-id>.eyebrow{font-size:10px;letter-spacing:.14em;color:var(--ink-3)}
.project-brief .dr-id h2{font:400 36px/1.1 var(--serif);letter-spacing:-.015em;margin:12px 0 14px;max-width:780px;text-wrap:balance}
.brief-meta{display:flex;gap:12px 20px;flex-wrap:wrap;align-items:center;color:var(--ink-3);font-size:14px}
.brief-stage{display:inline-flex;align-items:center;gap:7px;color:var(--teal-2)}
.brief-stage:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--teal)}
.project-brief .dr-body{padding:26px 40px 40px}
.project-brief .secnav{padding-left:40px;padding-right:40px}
.project-brief .secnav button{font-size:13px}.project-brief .secnav small{font-size:11px}
.project-brief .dsec>h3{font-size:24px}
.project-brief .dsec>.brief-label,.brief-label{font:500 12px/1.4 var(--sans);color:var(--ink-3);margin-bottom:9px}
.brief-summary{font:400 17px/1.65 var(--sans);color:var(--ink-2);max-width:760px}
.brief-facts{margin-top:26px;border-top:1px solid var(--rule-2)}
.brief-fact{display:grid;grid-template-columns:165px minmax(0,1fr);gap:24px;padding:16px 0;border-bottom:1px solid var(--rule-2);align-items:baseline}
.brief-fact dt{font:400 13px/1.4 var(--sans);color:var(--ink-3)}
.brief-fact dd{font:400 16px/1.5 var(--sans);color:var(--ink-2);display:flex;flex-wrap:wrap;gap:9px 12px;align-items:center;min-width:0}
.brief-fact dd small{display:block;width:100%;font:400 12px/1.4 var(--sans);color:var(--ink-3);margin-top:2px}
.brief-fact dd>span{min-width:0}.brief-fact .src{font-size:14px;white-space:normal;overflow-wrap:anywhere}.brief-fact .pool{width:34px;height:23px}
.brief-next{display:grid;grid-template-columns:20px minmax(0,1fr);gap:14px;padding:20px 0 0;align-items:start}
.brief-next>svg{margin-top:2px;color:var(--teal-2)}.brief-next .brief-label{display:block;color:var(--teal-2);margin-bottom:5px}
.brief-next p{font:400 16px/1.5 var(--sans);color:var(--ink-2)}.brief-next small{font-size:12px;color:var(--ink-3)}
.brief-progress{margin-top:24px;padding-top:17px;border-top:1px solid var(--rule-2)}
.brief-progress summary{cursor:pointer;font:400 13px/1.5 var(--sans);color:var(--ink-3)}.brief-progress summary span{margin-left:12px;color:var(--ink-2)}.brief-progress .dr-track{margin:22px 0 5px}
.project-brief .focus{border:0;padding:0;font:400 17px/1.65 var(--sans)}
/* Sam's conversation controls share the global header. */
#sam-controls{display:flex;gap:18px;align-items:center}#sam-controls:empty{display:none}
.bar:has(#sam-controls:not(:empty)) .asof{display:none}
.bar-action,.chat-history summary{font:500 13px/1.3 var(--sans);white-space:nowrap;color:var(--ink-2);cursor:pointer}
.chat-history{position:relative}.chat-history summary{list-style:none}.chat-history summary::-webkit-details-marker{display:none}
.chat-history summary:after{content:'⌄';margin-left:6px;color:var(--ink-3)}
.chat-history summary span{font-weight:400;font-size:11px;margin-left:3px;color:var(--ink-3)}
.history-list{position:absolute;z-index:25;top:35px;right:0;width:320px;max-height:65vh;overflow:auto;background:var(--sheet);border:1px solid var(--rule);box-shadow:0 10px 35px #0c161918;border-radius:4px;padding:6px}
.history-list button{display:block;width:100%;text-align:left;padding:13px 12px;border-bottom:1px solid var(--rule-2)}.history-list button:last-child{border:0}
.history-list button:hover,.history-list [aria-current=true]{background:var(--teal-wash)}.history-list b{display:block;font:500 14px/1.4 var(--sans)}.history-list small{display:block;font-size:11px;color:var(--ink-3);margin-top:5px}.history-list p{padding:14px;color:var(--ink-3);font-size:13px}
.thread>.turn:first-child{margin-top:0;padding-top:0}.thread>.turn:first-child .ask{margin-top:0}.sam-ws .thread{padding-top:0}.main.fixed{padding-top:26px}
/* Map toggles are a single flat filter row. */
.map-filters{display:flex;gap:0;flex-wrap:wrap;border-bottom:1px solid var(--rule);margin:0 0 22px;align-items:center}
.map-filters .pill{height:46px;padding:0 16px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:13px}
.map-filters .pill:first-child{padding-left:0}.map-filters .pill:hover{color:var(--teal-2);background:none}
.map-filters .pill[aria-pressed=true]{background:none;border-bottom-color:var(--teal);color:var(--teal-2)}.map-filters .pill[aria-pressed=true] em{color:var(--teal-2)}
.map-filters .pill:nth-child(3){margin-left:auto}.mapbox{border-radius:3px}.map-search{border-radius:4px}
/* Source controls have labels and a single toolbar. */
.source-toolbar{display:flex;gap:16px;align-items:flex-end;margin:26px 0 20px}
.source-toolbar .search{flex:1;min-width:190px;border-radius:4px;height:42px}
.source-filter{display:grid;gap:6px;font-size:12px;color:var(--ink-3)}
.source-filter select{font:400 14px/1.3 var(--sans);color:var(--ink-2);height:42px;background:var(--paper-3);border:1px solid var(--rule);border-radius:4px;padding:0 30px 0 11px;max-width:280px}
.source-toolbar .source-reset{font:400 12px/1.2 var(--sans);padding-bottom:13px;color:var(--teal-2)}
.evidence-record{padding:18px 0;border-top:1px solid var(--rule-2)}.evidence-record:first-child{padding-top:0;border-top:0}.evidence-record h4{font:400 20px/1.3 var(--serif);margin-bottom:10px}.evidence-record .source-context{font-size:13px;color:var(--ink-3);margin:4px 0 12px}
.corpus-source-actions .src,.corpus-source-actions .link{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.corpus-learning-sources>h3{font:400 25px/1.2 var(--serif);margin-bottom:20px}
@media(max-width:1200px){.source-toolbar{flex-wrap:wrap}.source-toolbar .search{flex-basis:100%}.source-filter{flex:1;min-width:0}.source-filter select{width:100%;max-width:none;min-width:0}}
@media(max-width:1200px){.cover .display{font-size:78px}.kpi{width:425px}.bar-r{gap:14px}.reports-page .rhero-in{gap:38px}.map-filters .pill{padding:0 11px}.map-filters .pill:nth-child(3){margin-left:0}}
@media(max-width:1020px){.cover,.cover-in{min-height:530px}.cover .display{font-size:72px}.cover-in{padding-bottom:48px}.axis .ax-top b{font-size:14px}.ax-lab,.ax-m.hot .ax-lab{font-size:15px}.band-row .axis{gap:6px;padding-left:16px;padding-right:16px}.source-toolbar{flex-wrap:wrap}.source-toolbar .search{flex-basis:100%}.source-filter{flex:1}.source-filter select{max-width:none;width:100%}.sam-ws{gap:28px}}
@media(max-width:760px){
.rail{gap:8px;box-shadow:0 3px 12px -10px #0c161944}.brand{min-height:30px;padding:0 6px}.brand-logo{width:105px;height:auto}.bar-r{gap:12px}.bar-action,.chat-history summary{font-size:11px}#sam-controls{gap:12px}.bar:has(#sam-controls:not(:empty)) .crumb{display:none}.bar:has(#sam-controls:not(:empty)) .bar-r{width:100%;justify-content:space-between}
.history-list{right:-45px;max-width:calc(100vw - 36px);width:310px}
.cover,.cover-in{min-height:0}.cover-in{padding:24px var(--gap) 38px;gap:48px}.cover .display{font-size:54px}.cover .eyebrow.light{font-size:10px;letter-spacing:.1em}.kpi{position:static;order:-1;width:100%;max-width:none;padding:15px 16px}.kpi-line{gap:9px}.kpi-line>div{grid-template-rows:32px 28px}.kpi-line .kpi-total b{font-size:34px}.kpi-line b{font-size:26px}.kpi-line span{font-size:10px}.kpi .eyebrow{font-size:9px}
.band-row{min-height:0;display:block}.vlabel{writing-mode:horizontal-tb;transform:none;display:flex;justify-content:flex-start;white-space:nowrap;width:100%;padding:13px 18px;font-size:10px;letter-spacing:.15em;height:auto}.band-row .axis{display:none}.band-list{padding:0 18px;margin:0}.band-list .bl-row{border-color:var(--rule-2);padding:13px 0}.band-list .when{font-size:12px}.band-list .grow b{font-size:16px}
.reports-page .rhero-in{padding:36px var(--gap);min-height:0}.reports-page .rhero .rh-title{font-size:50px}.reports-page>.tools{margin-top:30px}
.drawer,.drawer.wide,.drawer.narrow{inset:0;width:100vw;max-height:100dvh;border-radius:0}.project-brief .dr-id{padding:26px 22px 23px}.project-brief .dr-id h2{font-size:29px}.project-brief .dr-body{padding:22px}.project-brief .secnav{padding-left:22px;padding-right:22px}.project-brief .dsec>h3{font-size:23px}.project-brief .dsec>.brief-label{font-size:12px}.brief-summary{font-size:15px;line-height:1.6}.brief-fact{grid-template-columns:1fr;gap:6px;padding:15px 0}.brief-fact dd{font-size:15px}.brief-next p{font-size:15px}.brief-progress summary span{display:block;margin:4px 0 0 15px}.map-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:18px}.map-filters .pill{height:42px;padding:0 6px!important;font-size:12px;white-space:normal}.map-filters .pill:last-child{grid-column:1/-1}.map-filters .pill:nth-child(3){margin:0}.source-toolbar{gap:12px}.source-filter{flex-basis:100%;grid-template-columns:85px minmax(0,1fr);align-items:center}.source-filter select{font-size:14px;min-width:0}.source-toolbar .search{min-width:0}.source-toolbar .source-reset{padding:0}
}
@media print{.brief-fact{padding:8px 0;grid-template-columns:140px minmax(0,1fr);font-size:10pt}.brief-fact dd,.brief-summary,.brief-next p{font-size:11pt}.project-brief .dr-id{padding:0 0 15px}.project-brief .dr-id h2{font-size:24pt}.project-brief .dr-body{padding:0}.brief-progress{break-inside:avoid}.brief-next{break-inside:avoid}.project-brief .dsec>h3{font-size:14pt}}
.kpi-line{align-items:start}.kpi-line>div{grid-template-rows:38px 28px;align-items:start}.kpi-line b{align-self:end}.kpi-line span{align-self:start}
@media(max-width:420px){.dr-bar>.eyebrow{display:none}.dr-bar .acts{margin-left:auto;gap:6px}.dr-bar .btn.sm{padding:0 12px}.dr-bar .close-b{padding:0 11px}.dr-bar .back{font-size:0;gap:0;padding:8px 0}.dr-bar .back svg{width:18px;height:18px}}
