/* RaytonCorp static site - phone and tablet fixes (27 Nov 2026). Linked from every page. */
@media (max-width: 767px) {
  /* Blank spacers set for the desktop layout left tall empty bands on a phone. */
  .elementor-widget-spacer .elementor-spacer-inner { height: min(var(--spacer-size, 24px), 24px) !important; }
  /* A picture is never wider than the screen: negative side margins are a desktop technique. */
  .elementor-widget-image > .elementor-widget-container { margin-left: 0 !important; margin-right: 0 !important; }
  .elementor-widget-image img { max-width: 100% !important; height: auto; }
  /* Plain WordPress pages (the job listings): their title sat under the logo bar that floats over the page. */
  body:not(.elementor-page) main#content.site-main { padding-top: 140px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body:not(.elementor-page) main#content.site-main { padding-top: 44px; }
}
@media (max-width: 1024px) {
  /* The job listing grid kept its desktop gutters and ran off the side of the screen. */
  .awsm-job-listings.awsm-row { margin-left: 0; margin-right: 0; }
  /* Decorations placed partly outside a section (quote marks) made the page scroll sideways: trim them at the edge. */
  [data-elementor-type="wp-page"] > .e-parent, [data-elementor-type="wp-page"] > .elementor-section { overflow-x: clip; }
  /* And at the page edge itself (clip, not hidden: it makes no scroll box, so the floating header still works). */
  html, body { overflow-x: clip; }
  /* The job list's filter bar kept its desktop width. */
  .awsm-filter-wrap { max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  /* A wide table (the Technology Brief's task table) scrolls inside itself instead of widening the page. */
  table.task-table, .elementor-widget-text-editor table { display: block; max-width: 100%; overflow-x: auto; }
}
