/* All visual components are confined to Aroks Community Stats output. */
.acs-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--acs-border,#e1e5e8);border-radius:var(--acs-table_radius,8px);background:var(--acs-surface,#fff);font-family:var(--acs-font,inherit)}
.acs-table{min-width:var(--acs-table_min_width,980px);width:100%;border-collapse:separate;border-spacing:0;font:inherit;font-size:var(--acs-table_font,13px);line-height:1.4;color:var(--acs-text,#283141)}
.acs-table th,.acs-table td{white-space:nowrap;padding:var(--acs-table_padding_y,11px) var(--acs-table_padding_x,12px);text-align:center;border-bottom:1px solid var(--acs-table_grid,#ecedef);border-right:1px solid var(--acs-table_grid,#ecedef)}
.acs-table thead th{position:sticky;top:0;background:var(--acs-table_header_bg,#f5f6f7);font-weight:700;z-index:2}
.acs-table th:first-child{position:sticky;left:0;min-width:var(--acs-first_width,220px);max-width:var(--acs-first_width,220px);text-align:left;white-space:normal;background:var(--acs-surface,#fff);box-shadow:3px 0 6px rgba(0,0,0,.04);z-index:3}
.acs-table thead th:first-child{z-index:4;background:var(--acs-table_header_bg,#f5f6f7)}
.acs-table a{color:inherit;text-decoration:none}
.acs-table a:hover{color:var(--acs-link_hover,#719500);text-decoration:underline}
.acs-table .acs-current{background:var(--acs-table_current_bg,#f0f6e5);font-weight:700}
.acs-table thead .acs-current{background:var(--acs-table_current_head_bg,#e9f1d7);color:var(--acs-table_current_text,#718e02)}
.acs-table .acs-total td,.acs-table .acs-total th{font-weight:700;background:var(--acs-table_total_bg,#f6f6f6)}
.acs-table .acs-total .acs-current{background:var(--acs-table_current_head_bg,#e9f1d7);color:var(--acs-table_current_text,#718e02)}
.acs-table tbody tr:hover td{background:var(--acs-table_hover_bg,#f6f8f3)}
.acs-note{font-family:var(--acs-font,inherit);font-size:var(--acs-note_font,12px);color:var(--acs-note_color,#667085);margin:10px 0 0}
.acs-chart{width:100%;padding:var(--acs-chart_padding,18px) var(--acs-chart_padding,18px) 10px;border:1px solid var(--acs-chart_border,#e1e5e8);border-radius:var(--acs-chart_radius,12px);background:var(--acs-chart_bg,#fff);font-family:var(--acs-font,inherit);box-sizing:border-box}
.acs-chart svg{width:100%;height:auto;display:block;overflow:visible}
.acs-chart .acs-axis{font-family:var(--acs-font,Arial,sans-serif);font-size:var(--acs-chart_axis_size,12px);fill:var(--acs-chart_axis,#68717e)}
.acs-chart .acs-gridline{stroke:var(--acs-chart_grid,#e8edf0);stroke-width:1}
.acs-chart .acs-plotline{stroke:var(--acs-chart_line,#91b400);stroke-width:var(--acs-chart_line_width,4px);stroke-linejoin:round;stroke-linecap:round}
.acs-chart .acs-point{r:var(--acs-chart_dot_radius,4px);fill:var(--acs-chart_dot,#91b400);stroke:var(--acs-chart_dot_outline,#fff);stroke-width:1.5}
.acs-chart .acs-point:hover{r:calc(var(--acs-chart_dot_radius,4px) + 2px);stroke:var(--acs-chart_line,#91b400);stroke-width:2}
.acs-chart-footer{color:var(--acs-chart_footer,#667085);font-size:var(--acs-chart_footer_size,12px);text-align:right;margin-top:6px}
.acs-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--acs-card_gap,20px);font-family:var(--acs-font,inherit)}
.acs-stat{border:1px solid var(--acs-card_border,#889bb5);border-radius:var(--acs-card_radius,20px);padding:var(--acs-card_pad_y,25px) var(--acs-card_pad_x,18px);text-align:center;display:flex;flex-direction:column;gap:5px;align-items:center;background:var(--acs-card_bg,#fff)}
.acs-stat strong{font-size:var(--acs-card_number_size,32px);font-weight:700;line-height:1.2;color:var(--acs-card_number,#222e40)}
.acs-stat span{font-size:var(--acs-card_title_size,14px);font-weight:var(--acs-card_weight,600);color:var(--acs-card_title,#202b38)}
.acs-stat small{font-size:var(--acs-card_note_size,13px);color:var(--acs-card_note,#596679)}
@media(max-width:767px){
  .acs-table{min-width:var(--acs-table_mobile_width,900px)}
  .acs-table th:first-child{min-width:var(--acs-first_mobile_width,155px);max-width:var(--acs-first_mobile_width,155px)}
  .acs-table th,.acs-table td{padding:var(--acs-table_mobile_padding_y,9px) var(--acs-table_mobile_padding_x,10px)}
  .acs-chart{padding:var(--acs-chart_mobile_padding,8px)}
  .acs-stats{grid-template-columns:1fr;gap:var(--acs-card_mobile_gap,12px)}
}

/* v0.4: ordinary-weight district names; internal links only when explicitly enabled. */
.acs-table tbody tr:not(.acs-total) > th:first-child,
.acs-table tbody tr:not(.acs-total) > th:first-child > a {font-weight:var(--acs-table_name_weight,400)!important}
.acs-table tbody th a:focus-visible{outline:2px solid var(--acs-link_hover,#719500);outline-offset:2px;border-radius:2px}
/* v0.5: scroll affordances, mobile visibility, keyboard/touch accessible charts. */
.acs-scroll-hint{font-size:12px;color:#596679;margin:4px 0 8px;display:none}
.acs-table-wrap{overscroll-behavior-x:contain;scrollbar-gutter:stable;}
.acs-table-wrap:focus-visible,.acs-chart-data summary:focus-visible,.acs-period-btn:focus-visible{outline:3px solid var(--acs-link_hover,#719500);outline-offset:2px}
.acs-table td,.acs-table th{font-variant-numeric:tabular-nums}
.acs-table tbody tr:focus-within th,.acs-table tbody tr:focus-within td{background:var(--acs-table_hover_bg,#f6f8f3)}
.acs-table tbody a{text-underline-offset:3px}
.acs-period-controls{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:8px;font-size:12px;color:#45515d}
.acs-period-controls[hidden]{display:none}
.acs-period-btn{font:inherit;font-size:12px;line-height:1.4;min-height:32px;padding:4px 9px;border:1px solid #c5cfd6;border-radius:6px;background:#fff;color:#243244;cursor:pointer}
.acs-period-btn[aria-pressed="true"]{background:var(--acs-chart_line,#91b400);border-color:var(--acs-chart_line,#91b400);color:#182403;font-weight:700}
.acs-chart .acs-point{cursor:pointer}
.acs-chart .acs-point:focus-visible{stroke:var(--acs-chart_line,#91b400);stroke-width:4px;outline:none}
.acs-chart-point-info,.acs-chart-summary{font-size:12px;color:#334155;margin:8px 0}
.acs-chart-point-info{min-height:1.4em}
.acs-chart-data{margin:10px 0 4px;font-size:12px}
.acs-chart-data summary{cursor:pointer;font-weight:600;padding:7px 0}
.acs-chart-data-scroll{max-height:200px;overflow:auto;border:1px solid #e1e5e8;border-radius:6px}
.acs-chart-data table{width:100%;border-collapse:collapse}
.acs-chart-data th,.acs-chart-data td{padding:7px 10px;border-bottom:1px solid #e6e9ec;text-align:left}
.acs-chart-data th{background:#f6f7f7}
@media(max-width:767px){
  .acs-scroll-hint{display:block}
  .acs-table-wrap{max-width:100%;overflow-x:auto;touch-action:pan-x pan-y}
  .acs-table th:first-child{min-width:var(--acs-first_mobile_width,155px);max-width:var(--acs-first_mobile_width,155px)}
  .acs-table a{display:inline-block;min-height:28px;align-content:center}
  .acs-period-btn{min-height:40px;padding:7px 10px}
  .acs-chart .acs-point{r:5px;stroke-width:2}
  .acs-chart svg{min-height:180px}
}
@media(max-width:360px){.acs-table th:first-child{min-width:130px;max-width:130px}.acs-stats{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.acs-chart *{transition:none!important;animation:none!important}}
