/* victim-services.css
   Styles for the Hamilton Counted Victim Services dashboard (VictimServicesDashboard.razor).
   Reference this ONCE from the host page (wwwroot/index.html, App.razor or _Host.cshtml) as a
   GLOBAL stylesheet. Do not convert it to Blazor scoped CSS (VictimServicesDashboard.razor.css): the charts,
   tables, logos and notes are injected into the DOM by JavaScript at runtime, and scoped-CSS
   attributes would not reach them. */

  :root{
    --green:#386858; --green-d:#2b4f43; --orange:#c9772f; --dorange:#8a4f1e;
    --grey:#a9b7b1; --grey-d:#6f7f78; --tint:#fbeee1; --teal:#2f6f7a;
    --ink:#233029; --line:#d9e0dc; --bg:#f4f6f5; --card:#ffffff;
  }
  *{box-sizing:border-box}
  body{margin:0; background:var(--bg); color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    line-height:1.5;}
  /* Top ribbon, matching the Crime page: title + logo bar, then a darker full-width row of view tabs.
     Both stay fixed at the top while scrolling. */
  .topbar{position:sticky; top:0; z-index:100; box-shadow:0 2px 6px rgba(0,0,0,.12)}
  header{background:var(--green); color:#fff; padding:10px 28px; line-height:1.45;
    display:flex; align-items:center; justify-content:space-between; gap:16px}
  header .wordmark{display:block; height:20px; width:auto; margin:0}
  @media (max-width:420px){ header{padding:10px 16px} header .wordmark{height:15px} }
  header h1{margin:0; font-size:26px; font-weight:700; letter-spacing:-.01em}
  @media (max-width:560px){ header h1{font-size:22px} }
  .viewTabs{display:flex; flex-wrap:wrap; gap:4px; background:var(--green-d); padding:0 28px; line-height:1.45}
  .viewTabs button{appearance:none; background:transparent; border:0; color:#dfeae6; padding:13px 18px; font-size:16px; font-weight:600;
    font-family:inherit; cursor:pointer; border-bottom:3px solid transparent}
  .viewTabs button:hover{color:#fff}
  .viewTabs button.active{color:#fff; border-bottom-color:#fff; background:rgba(255,255,255,.08)}
  .viewTabs button:focus-visible{outline:3px solid var(--orange); outline-offset:-3px}
  /* narrow screens: one scrollable row of view tabs so the fixed bar stays short */
  @media (max-width:760px){ .viewTabs{flex-wrap:nowrap; overflow-x:auto; padding:0 8px; scrollbar-width:thin} .viewTabs button{white-space:nowrap; flex:0 0 auto} }
  .lead{margin:0 0 18px; font-size:14.5px; line-height:1.55; color:#4a564e; max-width:92ch}
  .wrap{max-width:1000px; margin:0 auto; padding:24px 20px 56px}
  .card{background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px 22px; margin-bottom:20px}
  .controls{display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:6px}
  .headline{display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap}
  .org{font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--green);
    font-weight:700; margin:0 0 5px}
  .brand{background:#fff; border:1px solid var(--line); border-radius:10px; padding:9px 13px; flex:0 0 auto}
  .brand img{display:block; height:auto}
  .brand img.fjc{width:210px}
  .brand img.cac{width:190px}
  .brand img.pfca{width:200px}
  @media (max-width:640px){ .brand img.fjc{width:150px} .brand img.cac{width:140px} .brand img.pfca{width:150px} }
  .seg{display:flex; flex-wrap:nowrap; width:100%; border:1px solid var(--green);
    border-radius:8px; overflow:hidden}
  .seg button{appearance:none; border:0; background:#fff; color:var(--green);
    font-size:14px; font-weight:600; padding:9px 14px; cursor:pointer;
    flex:1 1 0; min-width:0; white-space:normal; text-align:center; line-height:1.25;
    display:flex; align-items:center; justify-content:center}
  .seg button span{min-width:0; overflow-wrap:break-word; hyphens:auto}
  .seg button+button{border-left:1px solid var(--green)}
  .seg button.active{background:var(--green); color:#fff}
  .seg button:focus-visible{outline:3px solid var(--orange); outline-offset:2px}
  @media (max-width:820px){ .seg button{font-size:12.5px; padding:9px 8px} }
  @media (max-width:600px){ .seg button{font-size:11px; padding:9px 5px} }
  @media (max-width:440px){ .seg button{font-size:9.5px; padding:9px 2px; letter-spacing:-.02em} }
  .legend{display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin:14px 0 4px; font-size:13px}
  .legend .item{display:inline-flex; align-items:center; gap:7px; color:#3a4a42}
  .lswatch{width:22px; height:0; border-top-width:3px; border-top-style:solid; display:inline-block}
  .bswatch{width:14px; height:14px; border-radius:3px; display:inline-block}
  .chartbox{position:relative}
  svg{display:block; width:100%; height:auto}
  .axis-title{font-size:15px; fill:#5a675f; font-weight:700}
  .tick text{font-size:13px; fill:#6a766e; font-weight:700}
  .tick line{stroke:var(--line)}
  .axisline{stroke:var(--ink); stroke-width:2}
  .vlabel{font-size:13px; font-weight:700}
  .desc{font-size:14px; color:#3a4a42; margin:2px 0 14px; max-width:78ch}
  .chartnote{font-size:14.5px; color:#3a4a42; line-height:1.6; max-width:78ch;
    margin:18px 0 2px; padding-top:14px; border-top:1px solid var(--line)}
  table{border-collapse:collapse; width:100%; font-size:13px; font-variant-numeric:tabular-nums}
  caption{text-align:left; font-size:12px; color:#5a675f; padding:0 0 8px}
  th,td{padding:7px 10px; text-align:right; border-bottom:1px solid var(--line)}
  th:first-child,td:first-child{text-align:left}
  thead th{background:#eef3f0; color:var(--green-d); font-weight:700; border-bottom:2px solid var(--green)}
  tbody tr.latest{background:var(--tint)}
  h2.sec{font-size:16px; color:var(--green-d); margin:2px 0 10px}
  .notes{font-size:13px; color:#3a4a42}
  .notes ul{margin:6px 0 0; padding-left:20px}
  .notes li{margin:5px 0}
