/* MG Lomb offline copy - phones and tablets (Oct 14, 2026, Nick's iPhone review). Linked on every page after headings.css.
   Live since Nov 20, 2026; each rule is listed in CHANGES.md. */

/* 1. Phone/tablet header: the theme only pins the menu bar after 54px of scrolling and then slides it in, while the
      "VIEW OTHER CATEGORIES" bar is always pinned 50px from the top - so a white strip showed between them and the logo
      was cut off. Keep the menu bar pinned from the start, without the slide-in. */
@media (max-width: 991px) {
  #rs-header .header-inner.menu-sticky, #rs-header .header-inner.menu-sticky.sticky {
    position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; z-index: 9990;
    animation: none !important; transition: none !important; transform: none !important; }
}

/* 2. (Oct 15, Nick and team: taken out - heading sizes on phones are the live site's own again; the concept sections use the
      live phone sizes in concept.css) */

/* 3. "Let's Talk" and its two buttons centred on phones, the same on every category page: one 230px button per row,
      14px text. (The Interactive and Configurator pages had the buttons shrunk to 60% and pulled sideways with
      negative margins, and their "Let's Talk" column was narrower than the screen, so nothing lined up.) */
@media (max-width: 767px) {
  .mgc-intro .elementor-inner-section > .elementor-container > .elementor-column { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .mgc-intro .elementor-inner-section .elementor-column:last-child > .elementor-widget-wrap { justify-content: center !important; }
  .mgc-intro .elementor-widget-rs-heading { margin-left: auto !important; margin-right: auto !important; }
  .mgc-intro .elementor-widget-rs-button { width: 230px !important; max-width: 100% !important; flex: 0 0 auto !important;
    margin: 0 calc((100% - 230px) / 2) 20px !important; }
  .mgc-intro .elementor-widget-rs-button > .elementor-widget-container { margin: 0 !important; padding: 0 !important; width: auto !important;
    --e-transform-scale: 1 !important; transform: none !important; }
  .mgc-intro .elementor-widget-rs-button .rs-btn { text-align: center !important; }
  .mgc-intro .elementor-widget-rs-button .rs-btn a { display: inline-block !important; width: 230px !important; max-width: 100%; box-sizing: border-box;
    font-size: 14px !important; line-height: 26px !important; padding: 10px 20px !important; white-space: nowrap; }
  .mgc-intro .elementor-widget-rs-button, .mgc-intro .elementor-widget-rs-button .elementor-widget-container { text-align: center !important; }
}

/* 4. One page margin on phones: text, cards and forms start 20px from the screen edge on every page
      (old pages used 15px, some sections 30-75px, and the concept sections inside the theme container 35-40px). */
@media (max-width: 767px) {
  .elementor-top-section { padding-left: 0 !important; padding-right: 0 !important; }
  .elementor-top-section > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-left: 20px !important; padding-right: 20px !important;
    margin-left: 0 !important; margin-right: 0 !important; }
  /* ...but edge-to-edge pictures stay edge to edge (home page video, About and Managing Partner banner images) */
  .elementor-top-section > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-image:only-child,
  .elementor-top-section > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-html:only-child:has(video) {
    margin-left: -20px !important; margin-right: -20px !important; width: calc(100% + 40px) !important; max-width: none !important; }
  .elementor-inner-section { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  .elementor-inner-section > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-left: 0 !important; padding-right: 0 !important;
    margin-left: 0 !important; margin-right: 0 !important; }
  .elementor-widget-text-editor, .elementor-widget-heading, .elementor-widget-rs-heading:not(.mgc-intro .elementor-widget-rs-heading) { margin-left: 0 !important; margin-right: 0 !important; }
  .mgc-ow-in { padding-left: 0 !important; padding-right: 0 !important; }
  .col-lg-12 .mgc-wrap, .col-lg-12 .qc-wrap, .page-error .page-content { padding-left: 5px !important; padding-right: 5px !important; }
  .qc .qc-wrap { padding-left: 20px; padding-right: 20px; }
  .qc--b .qc-step1, .qc--b .qc-form form { padding-left: 20px !important; padding-right: 20px !important; }
  .submenu-title-mob .title:is(.mgc-nh, .mgc-nh-w *) { padding-left: 0 !important; margin-left: 0 !important; }
  .rs-footer .footer-top > .container { padding-left: 20px !important; padding-right: 20px !important; }
  .testimonial-item, .home-testimonial .testimonial-item { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
}

/* 5. Oct 15 (Nick and team), every page and screen size: every line is gold and as thick as the gold line under the menu bar
      (2px, #a89020; on phones the menu bar's own line is the theme's 2px gold) - the theme's 4px section lines, the footer's top line, the phone menu's separators,
      the side panel's separators, the blog cards' lines. (The concept sections' own lines are in concept.css.) */
html body .elementor-section.elementor-element { border-bottom-width: 2px !important; border-bottom-color: #a89020 !important; }
html body #rs-footer.rs-footer { border-top-width: 2px !important; border-top-color: #a89020 !important; }
html body .elementor-image-box-content { border-top-color: #a89020 !important; }
html body .rs-innner-offcanvas-contents .widget { border-bottom: 2px solid #a89020 !important; }
html body .mobile-menu-container .menu-item > a, html body .mobile-menus .menu-item > a, html body .menu-item > a { border-bottom-color: #a89020 !important; }
@media (max-width: 991px) { html body .menu-item > a { border-bottom-width: 2px !important; } }

/* 6. Nov 12 (Nick): 768 - 991 px wide (tablets, and computer windows that are narrow or zoomed in) the pinned menu bar is
      84 px tall, but the category bar ("VIEW OTHER CATEGORIES") was pinned 50 px from the top, so all but its bottom
      15 px sat under the menu bar. It now sits under the menu bar's gold line, the same way it does on phones (80 = the
      84 px menu bar minus the same 4 px it tucks under on phones: 54 - 4 = 50). */
@media (min-width: 768px) and (max-width: 991px) { .mgl-sticky-submenu { top: 80px !important; } }
