/* Loaded last on each page so feature styles cannot reintroduce intrinsic column widths. */
@media screen and (max-width: 850px) {
  html, body { min-inline-size: 0; max-inline-size: 100%; }
  body { margin-inline: 0; overflow-wrap: anywhere; }
  /* Decorative paint may project beyond an otherwise correctly sized layout. */
  @supports (overflow-x: clip) { html { overflow-x: clip; } }
  :where(main, section, article, aside, form, fieldset, figure, dialog,
         .header-inner, .wrap, .layout, .shell, .auth-content, .ab-context-links) {
    box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%;
  }
  :is(.dashboard-grid, .two-fields, .grid, .event-grid, .filter-grid, .story-grid,
      .header-actions, .stories-tools, .auth-layout, .shell, .frame, .filters, .role-grid,
      .section-title-row, .row-fields, .small-row, .progress, .hero-buttons) > * {
    min-inline-size: 0;
  }
  main :is(img,video,canvas,iframe), dialog :is(img,video) { max-inline-size: 100%; }
  form :is(input,select,textarea), .filters :is(input,select) {
    min-inline-size: 0; max-inline-size: 100%; box-sizing: border-box;
  }
  .table-wrap { inline-size: 100%; max-inline-size: 100%; overflow-x: auto; }
  :is(.site-foot, .small-row, .mini-trust, .mini-tags, .filter-actions,
      .view-switch, .section-title-row, .form-actions, .hero-buttons) { flex-wrap: wrap; }
  .dashboard-grid dd, .account-settings dd { min-width: 0; margin-inline-start: 0; }
  .dashboard-grid dl > div { grid-template-columns: minmax(0, 5.75rem) minmax(0, 1fr); }
}
@media screen and (max-width: 730px) {
  .shell, .dashboard-grid, .event-grid, .row-fields, .account-settings .two-fields,
  .auth-layout .two-fields, .role-grid, .gov-stats { grid-template-columns: minmax(0, 1fr); }
  .shell aside nav { display:flex; flex-wrap:wrap; gap:4px; overflow:visible; }
  .shell aside nav a { white-space:normal; max-width:100%; }
  .filter-toolbar { flex-wrap:wrap; overflow-x:visible; }
  .event-cta, .hero-buttons .button, .dashboard-heading .secondary { white-space:normal; }
  .dashboard-heading, .event-head, .header-actions { flex-wrap:wrap; }
  .frame .auth-content, .stories-tools .header-actions { max-width:100%; }
  .stories-tools .header-location { max-width:100%; min-width:0; }
  .section-title-row select { max-width:100%; }
  .ab-context-links > * { min-width:0; max-width:100%; }
  .section-title-row, .form-actions { row-gap:8px; }
}
@media screen and (max-width: 420px) {
  .stories-tools .header-actions { width:100%; margin-left:0; }
  .stories-tools .header-location { flex:1 1 7rem; }
  .filter-grid, .story-grid, .event-cards, .role-select, .two-fields { grid-template-columns:minmax(0, 1fr); }
  .filters > :is(input, select) { flex:1 1 100%; width:100%; }
  .site-foot > *, .modal-head > *, .modal-heading > * { min-width:0; }
  .control input { flex:1 1 0%; min-width:0; }
}
