/* Facility pages only (body.fx). Approved inspection-report chrome and compact costs.
   Loaded by facilityd.py after facility-d.css. Not used on the homepage. */

/* Facility touchup: flush sticky chapter nav + restyled full inspection report */
:root{--fx-header-h:69px;--fx-dnav-h:67px;--fx-rpt-h:56px}
body.fx nav.d-nav{
  top:var(--fx-header-h)!important;
  margin-top:0!important;
  background:var(--cream)!important;
}
@media(max-width:999px){
  body.fx nav.d-nav{top:var(--fx-header-h)!important}
}
/* Full inspection report — approved page language */
body.fx details.full-report{
  width:100%!important;
  max-width:none!important;
  margin:28px 0 48px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  font-family:var(--sans)!important;
  color:var(--ink)!important;
  overflow:visible!important;
}
body.fx details.full-report > summary{
  position:sticky;
  top:var(--fx-rpt-top,calc(var(--fx-header-h) + var(--fx-dnav-h)));
  z-index:35;
  cursor:pointer;
  list-style:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  margin:0!important;
  padding:16px 0 16px 0!important;
  padding-right:56px!important;
  min-height:56px;
  background:var(--cream)!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.fx details.full-report > summary::-webkit-details-marker{display:none}
body.fx details.full-report > summary span{
  font:500 26px/1.2 var(--serif)!important;
  color:var(--g)!important;
  letter-spacing:-.01em;
}
body.fx details.full-report > summary small{
  font:400 15px/1.45 var(--sans)!important;
  color:var(--mut)!important;
}
body.fx details.full-report > summary::after{
  content:'+';
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:32px;height:32px;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  color:var(--g);
  font:500 20px/32px var(--sans);
  text-align:center;
}
body.fx details.full-report[open] > summary::after{content:'−'}
body.fx details.full-report[open] > summary{border-bottom:1px solid var(--line)!important}
body.fx details.full-report > :not(summary){
  margin-left:0!important;
  margin-right:0!important;
}
body.fx details.full-report .report-topbar{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  padding:10px 0 12px!important;
  margin:0 0 8px!important;
  overflow-x:auto;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.fx details.full-report .report-topbar a,
body.fx details.full-report .report-topbar button{
  flex:0 0 auto;
  text-align:center;
  white-space:nowrap;
  padding:8px 12px!important;
  min-height:40px;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ink)!important;
  font:500 14px/1.3 var(--sans)!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer;
}
body.fx details.full-report .report-topbar a:hover,
body.fx details.full-report .report-topbar a:focus{
  color:var(--rust)!important;
  background:transparent!important;
}
body.fx details.full-report .report-print{
  margin-left:auto;
  border:1px solid var(--line)!important;
  color:var(--g)!important;
  padding:8px 14px!important;
}
body.fx details.full-report .report-asof{
  font:400 15px/1.55 var(--sans);
  color:var(--mut);
  max-width:72ch;
  margin:16px 0 8px;
}
body.fx details.full-report .overview-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 48px;
}
body.fx details.full-report .card{
  background:transparent!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:36px 0 28px!important;
  margin:0!important;
  overflow:visible!important;
  scroll-margin-top:calc(var(--fx-header-h) + var(--fx-dnav-h) + var(--fx-rpt-h) + 12px)!important;
}
body.fx details.full-report .overview-pair .card{border-top:0!important;padding-top:24px!important}
body.fx details.full-report .card h2{
  font:500 28px/1.2 var(--serif)!important;
  color:var(--g)!important;
  letter-spacing:-.015em;
  border:0!important;
  padding:0!important;
  margin:0 0 10px!important;
}
body.fx details.full-report .card h3,
body.fx details.full-report .card h4,
body.fx details.full-report .history-title{
  font:500 20px/1.3 var(--serif)!important;
  color:var(--g)!important;
  margin:22px 0 12px!important;
}
body.fx details.full-report .card > p,
body.fx details.full-report .small,
body.fx details.full-report .card p.small{
  font:400 15px/1.6 var(--sans)!important;
  color:var(--mut)!important;
  max-width:72ch;
}
body.fx details.full-report [id]{
  scroll-margin-top:calc(var(--fx-header-h) + var(--fx-dnav-h) + var(--fx-rpt-h) + 12px)!important;
}
/* Charts and comparison blocks */
body.fx details.full-report .chart-dot-card,
body.fx details.full-report .chart-survey-line,
body.fx details.full-report .benchmark,
body.fx details.full-report .report-fact,
body.fx details.full-report #catCare,
body.fx details.full-report #catBuilding{
  background:var(--ivory)!important;
  border:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.fx details.full-report .chart-dot-card h4,
body.fx details.full-report .benchmark h4{font:500 17px/1.4 var(--serif)!important;color:var(--g)!important;min-height:0}
body.fx details.full-report svg text{font:12px var(--sans)!important;fill:var(--mut)}
body.fx details.full-report .dot-home{fill:var(--g);stroke:var(--cream);stroke-width:2}
body.fx details.full-report .dot-state{fill:var(--cream);stroke:var(--brass);stroke-width:3}
body.fx details.full-report .key-home{background:var(--g)}
body.fx details.full-report .lollipop-stem{background:var(--g)}
body.fx details.full-report .lollipop-track i{background:var(--g);border-color:var(--cream)}
body.fx details.full-report .lollipop-row{border-bottom:1px solid var(--line);padding:14px 0}
body.fx details.full-report .lollipop-row:nth-child(2n){background:transparent}
body.fx details.full-report .dot-values,
body.fx details.full-report .lollipop-row,
body.fx details.full-report .values-row{border-color:var(--line)!important}
body.fx details.full-report .column i.color-0{background:var(--g)}
body.fx details.full-report .column i.color-1{background:var(--brass)}
body.fx details.full-report .column i.color-2{background:var(--mut)}
body.fx details.full-report .measure-track i{background:var(--g)}
body.fx details.full-report .report-fact-grid{gap:16px}
body.fx details.full-report .report-fact{padding:18px 20px!important;background:var(--ivory)!important}
body.fx details.full-report .report-fact span{color:var(--mut)!important;font:400 14px/1.5 var(--sans)!important;min-height:0}
body.fx details.full-report .report-fact strong{font:500 24px/1.2 var(--serif)!important;color:var(--g)!important}
/* Severity summary table */
body.fx details.full-report .severity-table{
  display:flex;flex-direction:column;margin:18px 0 28px;
  border-top:1px solid var(--line);
}
body.fx details.full-report .severity-row{
  display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;
  padding:11px 0;border-bottom:1px solid var(--line);
  background:transparent!important;
}
body.fx details.full-report .severity-row.header{
  font:500 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--mut);
  padding-bottom:8px;
}
body.fx details.full-report .severity-row.header b{font-weight:500}
body.fx details.full-report .severity-row span{display:flex;align-items:center;gap:10px;font:400 15px/1.4 var(--sans);color:var(--ink)}
body.fx details.full-report .severity-row b{font:500 16px var(--sans);color:var(--g)}
body.fx details.full-report .severity-row i{
  width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--mut);
}
body.fx details.full-report .severity-2 i{background:var(--brass)}
body.fx details.full-report .severity-3 i{background:var(--rust)}
body.fx details.full-report .severity-4 i{background:var(--rust2)}
/* Letter / scope matrix */
body.fx details.full-report .sev-matrix{
  width:100%;border-collapse:collapse;border-spacing:0;margin:20px 0;
  table-layout:fixed;
}
body.fx details.full-report .sev-matrix th,
body.fx details.full-report .sev-matrix td{
  border:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  padding:12px 10px!important;
  font:400 14px/1.4 var(--sans)!important;
  text-align:center;
  color:var(--ink);
}
body.fx details.full-report .sev-matrix th{
  font:500 12px/1.3 var(--sans)!important;
  letter-spacing:.06em;text-transform:uppercase;color:var(--mut)!important;
  background:var(--ivory)!important;
}
body.fx details.full-report .sev-matrix .sev-row-label{text-align:left!important;color:var(--ink)!important;text-transform:none;letter-spacing:0;font-size:14px!important}
body.fx details.full-report .sev-matrix .empty{background:var(--ivory)!important;color:var(--mut)!important;border-style:solid!important}
body.fx details.full-report .sev-matrix .hit{font-weight:600;color:var(--g);font-size:16px}
body.fx details.full-report .report-letters,
body.fx details.full-report .report-respond,
body.fx details.full-report .scoring-explanation,
body.fx details.full-report #cutpointsInfo>p{border-radius:0!important}
body.fx details.full-report .report-letters{
  background:var(--g3);
  border:0;
  border-left:3px solid var(--brass);
  padding:16px 20px;
  margin:8px 0 28px;
  max-width:72ch;
}
body.fx details.full-report .report-letters strong{
  display:block;font:500 20px/1.3 var(--serif);color:var(--g);margin-bottom:8px;
}
body.fx details.full-report .report-letters p{
  margin:0;font:400 15px/1.6 var(--sans);color:var(--ink);
}
body.fx details.full-report .report-search{margin:8px 0 22px;max-width:420px}
body.fx details.full-report .report-search label{
  display:block;font:500 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--rust);margin-bottom:8px;
}
body.fx details.full-report .report-search input{
  width:100%;box-sizing:border-box;padding:10px 12px;
  border:1px solid var(--line);border-radius:0;background:var(--ivory);
  font:400 15px var(--sans);color:var(--ink);
}
body.fx details.full-report .report-search-count{font-size:14px;color:var(--mut);margin:6px 0 0}
body.fx details.full-report .report-respond{
  margin:24px 0 0;padding:16px 20px;background:var(--g3);border-left:3px solid var(--brass);
  font:400 15px/1.55 var(--sans);max-width:72ch;
}
body.fx details.full-report .report-respond strong{font-family:var(--serif);font-weight:500;color:var(--g);margin-right:.35em}
body.fx details.full-report .report-respond a{color:var(--rust);text-decoration:underline}
body.fx details.full-report .report-more{
  margin-top:16px;padding:10px 16px;border:1px solid var(--line);background:transparent;
  color:var(--g);font:500 15px var(--sans);cursor:pointer;
}
/* Citations grouped by survey date */
body.fx details.full-report .rpt-timeline{
  display:flex!important;flex-direction:column;gap:40px;
  padding:0!important;border:0!important;
}
body.fx details.full-report .rpt-survey{margin:0}
body.fx details.full-report .rpt-survey-head{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:10px 14px;
  padding:0 0 10px;margin:0 0 4px;border-bottom:1px solid var(--line);
}
body.fx details.full-report .rpt-survey-date{
  margin:0!important;font:500 22px/1.25 var(--serif)!important;color:var(--g)!important;
}
body.fx details.full-report .rpt-survey-ago{
  font:400 14px/1.3 var(--sans)!important;color:var(--mut)!important;font-style:normal!important;font-weight:400!important;
}
body.fx details.full-report .tag,
body.fx details.full-report .rpt-tl-item .tag{
  display:inline-block;font:500 12px/1.2 var(--sans)!important;letter-spacing:.04em;
  color:var(--mut)!important;background:transparent!important;
  border:1px solid var(--line)!important;border-radius:0!important;
  padding:4px 8px!important;box-shadow:none!important;
}
body.fx details.full-report .rpt-survey-head .tag{
  font:500 12px/1 var(--sans);letter-spacing:.04em;color:var(--mut);
  border:1px solid var(--line);padding:5px 8px;background:transparent;
}
body.fx details.full-report .rpt-tl-item{
  margin:0!important;padding:18px 0!important;
  background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;
  border-radius:0!important;box-shadow:none!important;
}
body.fx details.full-report .rpt-tl-top{
  display:grid;
  grid-template-columns:minmax(148px,1.05fr) minmax(200px,1.7fr) minmax(128px,.9fr);
  gap:8px 20px;align-items:start;
  padding:0!important;border:0!important;font-size:14px;line-height:1.45;
}
body.fx details.full-report .rpt-tag{
  font:600 15px/1.3 var(--sans);color:var(--g);letter-spacing:.03em;margin-right:8px;
}
body.fx details.full-report .rpt-kind{font:400 13px/1.3 var(--sans);color:var(--mut)}
body.fx details.full-report .rpt-tl-sev{display:flex;align-items:flex-start;gap:8px}
body.fx details.full-report .rpt-sev-letter{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:26px;height:26px;border:1px solid var(--line);
  font:600 13px/1 var(--sans);color:var(--g);background:var(--ivory);
}
body.fx details.full-report .rpt-sev-letter.sev-y{border-color:var(--brass);color:var(--ok)}
body.fx details.full-report .rpt-sev-letter.sev-o{border-color:var(--rust);color:var(--rust)}
body.fx details.full-report .rpt-sev-letter.sev-r{border-color:var(--rust);background:var(--rust);color:var(--cream)}
body.fx details.full-report .rpt-sev-label{font:400 13px/1.4 var(--sans);color:var(--ink)}
body.fx details.full-report .rpt-status{font:500 13px/1.4 var(--sans);color:var(--g)}
body.fx details.full-report .rpt-tl-item .desc{
  margin-top:10px!important;font:400 15px/1.6 var(--sans)!important;color:var(--ink)!important;max-width:72ch;
}
body.fx details.full-report .rpt-tl-fine{
  margin-top:8px;padding:6px 0 0 12px;border-left:3px solid var(--brass);
  font:500 14px/1.4 var(--sans);color:var(--ink);
}
body.fx details.full-report .scoring-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
body.fx details.full-report .scoring-explanation{background:var(--g3);border-left:3px solid var(--brass);padding:18px 20px}
body.fx details.full-report .scoring-explanation .eyebrow{font:500 11px/1 var(--sans);letter-spacing:.14em;color:var(--rust)}
body.fx details.full-report .scoring-table{width:100%;border-collapse:collapse}
body.fx details.full-report .scoring-table th,
body.fx details.full-report .scoring-table td{
  border-bottom:1px solid var(--line);padding:10px 8px;text-align:left;
  font:400 15px/1.45 var(--sans);color:var(--ink);
}
body.fx details.full-report .scoring-table th{
  font:500 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--mut);
}
body.fx details.full-report .cmp-table{width:100%;border-collapse:collapse}
body.fx details.full-report .cmp-table th,
body.fx details.full-report .cmp-table td{
  border-bottom:1px solid var(--line)!important;padding:12px 10px!important;
  font:400 15px/1.45 var(--sans)!important;text-align:left;
}
body.fx details.full-report .cmp-table th{font-size:12px!important;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);background:var(--ivory)!important}
body.fx details.full-report #cutpointsInfo>p{
  padding:16px 20px!important;background:var(--g3)!important;border:0!important;border-left:3px solid var(--brass)!important;border-radius:0!important;
}
@media(max-width:900px){
  body.fx details.full-report .overview-pair,
  body.fx details.full-report .scoring-layout,
  body.fx details.full-report .benchmark-grid{grid-template-columns:1fr!important}
  body.fx details.full-report .rpt-tl-top{grid-template-columns:1fr!important;gap:6px}
  body.fx details.full-report .card h2{font-size:24px!important}
  body.fx details.full-report > summary span{font-size:22px!important}
  body.fx details.full-report .report-fact-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  body.fx details.full-report .report-fact-grid{grid-template-columns:1fr}
  body.fx details.full-report .sev-matrix th,
  body.fx details.full-report .sev-matrix td{padding:8px 6px!important;font-size:12px!important}
}



/* ---- sticky report head (a real box, not <summary>) ---- */
body.fx details.full-report > summary{
  position:relative !important;
  top:auto !important;
}
body.fx details.full-report[open] > summary{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  clip-path:inset(50%) !important;
  border:0 !important;
  white-space:nowrap !important;
  pointer-events:none !important;
}
body.fx details.full-report[open] > summary::after{display:none !important}
body.fx .full-report-body{
  overflow:visible !important;
  display:block;
}
body.fx .full-report-head{
  position:sticky;
  top:var(--fx-rpt-top, calc(var(--fx-header-h) + var(--fx-dnav-h)));
  z-index:35;
  background:var(--cream);
  margin:0;
  padding:12px 0 8px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
body.fx .full-report-head-main{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  padding:4px 56px 10px 0;
  min-height:48px;
}
body.fx .full-report-head-main span{
  font:500 26px/1.2 var(--serif);
  color:var(--g);
  letter-spacing:-.01em;
}
body.fx .full-report-head-main small{
  font:400 15px/1.45 var(--sans);
  color:var(--mut);
}
body.fx .full-report-close{
  position:absolute;
  right:0;
  top:8px;
  width:32px;height:32px;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  color:var(--g);
  font:500 20px/30px var(--sans);
  text-align:center;
  cursor:pointer;
  padding:0;
}
body.fx .full-report-head .report-topbar{
  position:relative !important;
  top:auto !important;
  margin:0 !important;
  padding:4px 0 6px !important;
}
/* ---- inspections lead ---- */
body.fx .d6-lead{
  display:block;
  margin:8px 0 0;
  font:400 17px/1.5 var(--sans);
  color:var(--ink);
  max-width:70ch;
}
body.fx .fx-df6 .d6-sum .d-plus{grid-row:1 / span 4}
/* ---- shared type + grid for Cost + Inspections + report ---- */
body.fx #costs-planning,
body.fx #ratings-detail{
  --sp-1:8px;--sp-2:16px;--sp-3:24px;--sp-4:40px;--sp-5:64px;
}
body.fx #costs-planning p,
body.fx #costs-planning li,
body.fx #ratings-detail p,
body.fx #ratings-detail li,
body.fx details.full-report p,
body.fx details.full-report li,
body.fx details.full-report .desc,
body.fx details.full-report .small{
  font-size:17px !important;
  line-height:1.6 !important;
  max-width:70ch;
}
body.fx #costs-planning .d-pay p{font-size:17px !important;line-height:1.6 !important;max-width:none}
body.fx #costs-planning .d-pays{margin-top:var(--sp-3)}
body.fx #costs-planning .d-pay{padding:var(--sp-3) var(--sp-3) var(--sp-3) 0}
body.fx #costs-planning .d-who{margin-top:var(--sp-4)}
body.fx #costs-planning .d-who h3{margin:0 0 var(--sp-2)}
body.fx #costs-planning .d-strength.d-occ{
  margin:0;
  align-items:start;
}
body.fx #costs-planning .d-opcost{
  margin-top:var(--sp-4);
  padding-top:var(--sp-4);
  border-top:1px solid var(--line);
}
body.fx #costs-planning .d-opcost h3{margin:0 0 var(--sp-2)}
body.fx #costs-planning .d-opcost-caveat{
  max-width:70ch;
  margin:0 0 var(--sp-3);
  padding:var(--sp-2) var(--sp-3);
  background:var(--g3);
  border-left:3px solid var(--brass);
}
body.fx #costs-planning .d-opcost-fig .d-fig{
  font:400 64px/.95 var(--serif);
  color:var(--g);
  margin:var(--sp-1) 0;
}
body.fx #costs-planning .d-cost{margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--line)}
body.fx #costs-planning .d-cost h3{margin:0 0 var(--sp-2)}
body.fx #costs-planning .d-cost ul{padding-left:1.15em;margin:0 0 var(--sp-3);max-width:70ch}
body.fx #costs-planning .d-next-primary{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px 14px;
  margin:var(--sp-3) 0 var(--sp-2);
  max-width:none;
}
body.fx #costs-planning .d-next-primary a{
  font:500 20px/1.3 var(--serif);
  color:var(--g);
  text-decoration:underline;
  text-underline-offset:3px;
}
body.fx #costs-planning .d-next-primary small{font:400 16px/1.4 var(--sans);color:var(--mut)}
body.fx #costs-planning .d-next-links{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 4px;
  max-width:none;
  font-size:16px !important;
  line-height:1.6 !important;
  color:var(--ink);
}
body.fx #costs-planning .d-next-links a{color:var(--g);text-decoration:underline;text-underline-offset:3px}
body.fx #costs-planning .d-next-links small{color:var(--mut);font-size:15px !important}
body.fx #costs-planning .d-guides{margin-top:var(--sp-3)}
/* tables */
body.fx #ratings-detail table,
body.fx details.full-report table,
body.fx details.full-report .sev-matrix,
body.fx details.full-report .scoring-table,
body.fx details.full-report .cmp-table,
body.fx details.full-report .d-ledger{
  font-variant-numeric:tabular-nums;
}
body.fx #ratings-detail .d-ledger th,
body.fx #ratings-detail .d-ledger td,
body.fx details.full-report .cmp-table th,
body.fx details.full-report .cmp-table td,
body.fx details.full-report .scoring-table th,
body.fx details.full-report .scoring-table td{
  padding:12px 14px !important;
  line-height:1.45;
  vertical-align:middle;
}
body.fx #ratings-detail .d-ledger td.d-v,
body.fx details.full-report .severity-row b{
  text-align:right;
  font-variant-numeric:tabular-nums;
}
body.fx details.full-report .sev-matrix th,
body.fx details.full-report .sev-matrix td{
  text-align:center !important;
  vertical-align:middle;
  padding:14px 12px !important;
}
body.fx details.full-report .sev-matrix .sev-row-label{text-align:left !important}
/* citations */
body.fx details.full-report .rpt-tl-item{padding:24px 0 !important}
body.fx details.full-report .rpt-tl-top{
  display:grid;
  grid-template-columns:minmax(160px,.9fr) minmax(220px,1.6fr) minmax(140px,.7fr) minmax(140px,.7fr);
  gap:8px 16px;
  align-items:start;
}
body.fx details.full-report .rpt-desc-long.is-collapsed .rpt-desc-full{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
body.fx details.full-report .rpt-desc-toggle{
  margin-top:8px;
  padding:0;
  border:0;
  background:none;
  color:var(--rust);
  font:500 15px var(--sans);
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
/* matching chart panels */
body.fx details.full-report .overview-pair .card{
  display:flex;
  flex-direction:column;
}
body.fx details.full-report .overview-pair .chart-dot-card,
body.fx details.full-report .overview-pair .history-columns,
body.fx details.full-report #cycleHistory,
body.fx details.full-report #reportSummary .chart-dot-card,
body.fx details.full-report #reportSummary > div{
  background:var(--ivory) !important;
  border:1px solid var(--line) !important;
  border-radius:0 !important;
  padding:20px 22px !important;
}
body.fx details.full-report #cycleHistory{
  padding:20px 22px !important;
}
/* vertical rhythm for report cards */
body.fx details.full-report .card{padding:40px 0 32px !important}
body.fx details.full-report .card h2{margin:0 0 16px !important}
/* mobile */
@media(max-width:760px){
  body.fx #costs-planning .d-pays{grid-template-columns:1fr !important}
  body.fx #costs-planning .d-pay{padding:20px 0 !important}
  body.fx #costs-planning .d-pay+.d-pay{border-left:0 !important;padding-left:0 !important;border-top:1px solid var(--line)}
  body.fx #costs-planning .d-strength.d-occ{grid-template-columns:1fr !important;padding:24px 20px;gap:16px}
  body.fx #costs-planning .d-str-n span{font-size:64px}
  body.fx details.full-report .rpt-tl-top{grid-template-columns:1fr !important;gap:6px}
  body.fx details.full-report .overview-pair{grid-template-columns:1fr !important}
  body.fx .full-report-head-main span{font-size:22px}
  body.fx .full-report-head .report-topbar{flex-wrap:nowrap;overflow-x:auto}
  body.fx #ratings-detail table:not(.sev-matrix){display:block;overflow-x:auto;max-width:100%}
  body.fx #ratings-detail .monthly-scroll table{display:table;overflow:visible}
  body.fx details.full-report .sev-matrix{display:block;overflow-x:auto}
}
@media(max-width:560px){
  body.fx details.full-report .report-fact-grid{grid-template-columns:1fr}
}

/* mobile overflow + compact sticky head */
body.fx details.full-report .full-report-head .report-topbar{
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
}
@media(max-width:760px){
  body.fx #ratings-detail,
  body.fx #costs-planning,
  body.fx details.full-report,
  body.fx details.full-report .full-report-body{
    max-width:100%;
  }
  body.fx #ratings-detail .d-disc-b,
  body.fx #ratings-detail .d-hist,
  body.fx #ratings-detail .d-histx,
  body.fx details.full-report .card,
  body.fx details.full-report .sev-matrix{
    overflow-x:auto;
    max-width:100%;
    width:100%;
  }
  body.fx details.full-report .full-report-head .report-topbar a,
  body.fx details.full-report .full-report-head .report-topbar button{
    flex:0 0 auto !important;
  }
}

body.fx #costs-planning .d-opcost-fig .d-fig{
  font-family:var(--serif)!important;
  font-size:64px!important;
  font-weight:400!important;
  line-height:.95!important;
  color:var(--g)!important;
  margin:8px 0!important;
  max-width:none!important;
}
@media(max-width:760px){
  body.fx #ratings-detail{overflow-x:clip}
}

/* Cost tools list + occupancy notes */
body.fx #costs-planning .d-occ .d-occ-note{
  max-width:70ch;
  margin:16px 0 0;
  font-size:15px !important;
  line-height:1.55 !important;
  color:var(--mut);
}
body.fx #costs-planning .d-occ .d-occ-note + .d-occ-note{margin-top:8px}
body.fx #costs-planning .d-tools-ed{
  margin-top:40px;
  padding-top:8px;
  border-top:1px solid var(--line);
}
body.fx #costs-planning .d-tool{
  display:block;
  padding:20px 0;
  text-decoration:none !important;
  border:0;
  background:none;
  box-shadow:none;
  border-radius:0;
}
body.fx #costs-planning button.d-tool{font:inherit;cursor:pointer;text-align:left;width:100%;color:inherit}
body.fx #costs-planning .d-tool-primary{
  padding:24px 0 28px;
  border-bottom:1px solid var(--line);
}
body.fx #costs-planning .d-tool strong{
  display:block;
  font:500 20px/1.35 var(--serif);
  color:var(--g);
  margin:0 0 6px;
}
body.fx #costs-planning .d-tool-primary strong{
  font-size:24px;
}
body.fx #costs-planning .d-tool span{
  display:block;
  font:400 17px/1.5 var(--sans);
  color:var(--mut);
  max-width:70ch;
}
body.fx #costs-planning .d-tool:hover strong,
body.fx #costs-planning .d-tool:focus strong{color:var(--rust)}
body.fx #costs-planning .d-tool-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:40px;
  row-gap:0;
}
body.fx #costs-planning .d-tool-grid .d-tool{
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
body.fx #costs-planning .d-tools-ed > .src{margin-top:24px}
@media(max-width:760px){
  body.fx #costs-planning .d-tool-grid{grid-template-columns:1fr}
}

body.fx #costs-planning .d-strength.d-occ .d-occ-note{
  grid-column:1 / -1;
  margin:12px 0 0;
  max-width:70ch;
}
body.fx #costs-planning .d-strength.d-occ .d-occ-note + .d-occ-note{margin-top:6px}

/* Phone-only compact report sticky stack; desktop unchanged */
@media(max-width:999px){
  body.fx .full-report-head{
    padding:4px 0 2px;
  }
  body.fx .full-report-head-main{
    min-height:44px;
    gap:0;
    padding:2px 52px 2px 0;
  }
  body.fx .full-report-head-main span{
    font-size:18px !important;
    line-height:1.25 !important;
  }
  body.fx .full-report-head.is-stuck .full-report-head-main small{
    display:none !important;
  }
  body.fx .full-report-close{
    width:44px;height:44px;
    top:0;
    font:500 22px/42px var(--sans);
  }
  body.fx details.full-report .full-report-head .report-topbar{
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
    gap:0;
    padding:0 0 2px !important;
    margin:0 !important;
  }
  body.fx details.full-report .full-report-head .report-topbar a,
  body.fx details.full-report .full-report-head .report-topbar button{
    flex:0 0 auto !important;
    min-height:44px;
    padding:10px 12px !important;
    font-size:14px !important;
  }
}
/* Keyboard focus */
body.fx details.full-report > summary:focus,
body.fx details.full-report > summary:focus-visible,
body.fx .full-report-close:focus,
body.fx .full-report-close:focus-visible,
body.fx .full-report-head .report-topbar a:focus,
body.fx .full-report-head .report-topbar a:focus-visible,
body.fx .full-report-head .report-topbar button:focus,
body.fx .full-report-head .report-topbar button:focus-visible{
  outline:2px solid var(--rust);
  outline-offset:3px;
}
/* Anchors clear the stacked stickies */
body.fx details.full-report [id],
body.fx details.full-report .card{
  scroll-margin-top:calc(var(--fx-header-h) + var(--fx-dnav-h) + var(--fx-rpt-h) + 16px) !important;
}
body.fx .d-ch{
  scroll-margin-top:calc(var(--fx-header-h) + var(--fx-dnav-h) + 16px);
}
/* Print: no sticky overlays; hide controls; keep report readable */
@media print{
  body.fx .site-header,
  body.fx nav.d-nav,
  body.fx .full-report-close,
  body.fx .full-report-head .report-topbar,
  body.fx details.full-report .report-topbar,
  body.fx details.full-report .report-print,
  body.fx details.full-report .report-more,
  body.fx details.full-report > summary{
    display:none !important;
  }
  body.fx .full-report-head,
  body.fx details.full-report .full-report-head,
  body.fx nav.d-nav,
  body.fx .site-header{
    position:static !important;
    top:auto !important;
    box-shadow:none !important;
  }
  body.fx .full-report-head-main span{display:block}
  body.fx .full-report-head-main small{display:block !important}
  body.printing-report .full-report-close,
  body.printing-report .full-report-head .report-topbar{
    display:none !important;
  }
  body.printing-report .full-report-head{
    position:static !important;
    border:0;
    padding:0 0 12px;
  }
}

/* final-pass: compact costs + 2x2 tools */
body.fx #costs-planning{
  --sp-1:6px;--sp-2:10px;--sp-3:14px;--sp-4:22px;--sp-5:32px;
  padding-top:36px;
  margin-top:36px;
}
body.fx #costs-planning > .d-ch-h{margin-bottom:16px}
body.fx #costs-planning .d-pays{margin-top:8px}
body.fx #costs-planning .d-pay{padding:12px 20px 14px 0}
body.fx #costs-planning .d-pay + .d-pay{padding-left:20px}
body.fx #costs-planning .d-occ-op{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr);
  gap:0 32px;
  align-items:start;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
body.fx #costs-planning .d-who{margin-top:0}
body.fx #costs-planning .d-who h3{margin:0 0 10px}
body.fx #costs-planning .d-strength.d-occ{
  display:grid;
  margin:0;
  padding:14px 16px;
  gap:8px 20px;
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-rows:auto auto;
  grid-template-areas:none;
  align-items:start;
}
body.fx #costs-planning .d-strength.d-occ .d-str-n,
body.fx #costs-planning .d-strength.d-occ .eyebrow-s,
body.fx #costs-planning .d-strength.d-occ .d-str-p,
body.fx #costs-planning .d-strength.d-occ .d-mix,
body.fx #costs-planning .d-strength.d-occ .d-leg,
body.fx #costs-planning .d-strength.d-occ .vs{
  grid-area:auto;
}
body.fx #costs-planning .d-strength.d-occ .d-str-n{
  grid-column:1;
  grid-row:1;
}
body.fx #costs-planning .d-strength.d-occ .d-str-t{
  display:block;
  grid-column:2;
  grid-row:1;
  min-width:0;
}
body.fx #costs-planning .d-occ .d-str-n span{font-size:56px}
body.fx #costs-planning .d-strength.d-occ .d-occ-note{
  grid-column:1 / -1;
  grid-row:2;
  grid-area:auto / 1 / auto / -1;
  margin:8px 0 0;
  max-width:none;
}
body.fx #costs-planning .d-opcost{
  margin-top:0;
  padding-top:0;
  padding-left:28px;
  border-top:0;
  border-left:1px solid var(--line);
}
body.fx #costs-planning .d-opcost h3{margin:0 0 8px}
body.fx #costs-planning .d-opcost-caveat{
  max-width:none;
  margin:0 0 8px;
  padding:0;
  background:transparent;
  border-left:0;
  color:var(--mut);
}
body.fx #costs-planning .d-opcost-fig .d-fig{
  font-size:56px !important;
  margin:4px 0 !important;
}
body.fx #costs-planning .d-opcost-fig .note{margin:0}
body.fx #costs-planning .d-opcost > .src{margin-top:10px}
body.fx #costs-planning .d-tools-ed{
  margin-top:18px;
  padding-top:4px;
}
body.fx #costs-planning .d-tool-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:28px;
  row-gap:0;
}
body.fx #costs-planning .d-tool,
body.fx #costs-planning .d-tool-grid .d-tool,
body.fx #costs-planning .d-tool-primary{
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
body.fx #costs-planning .d-tool-primary{padding:12px 0}
body.fx #costs-planning .d-tool-primary strong{font-size:20px}
body.fx #costs-planning .d-tool span{max-width:none}
body.fx #costs-planning .d-tools-ed > .src{margin-top:12px}
body.fx #costs-planning .d-guides{margin-top:10px}
@media(max-width:900px){
  body.fx #costs-planning .d-occ-op{
    grid-template-columns:1fr;
    gap:16px;
  }
  body.fx #costs-planning .d-opcost{
    padding-left:0;
    border-left:0;
    padding-top:16px;
    border-top:1px solid var(--line);
  }
}
@media(max-width:760px){
  body.fx #costs-planning .d-pays{grid-template-columns:1fr !important}
  body.fx #costs-planning .d-pay{padding:14px 0 !important}
  body.fx #costs-planning .d-pay + .d-pay{padding-left:0 !important}
  body.fx #costs-planning .d-tool-grid{grid-template-columns:1fr}
  body.fx #costs-planning .d-strength.d-occ{
    grid-template-columns:1fr !important;
    padding:16px 16px;
    gap:12px;
  }
  body.fx #costs-planning .d-strength.d-occ .d-str-n,
  body.fx #costs-planning .d-strength.d-occ .d-str-t{
    grid-column:1;
    grid-row:auto;
  }
}
