/* Full-width sections, one shared content measure. */
@layer layout {
  :root { --content-width: 1220px; --page-gutter: 20px; }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
  body:has(main.phone) { display: block; padding: 0; background: #fff; }
  main.phone { width: 100%; max-width: 100%; min-width: 0; margin: 0; border-radius: 0; box-shadow: none; overflow: clip; }
  main.phone > :is(section, header, footer) { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
  .container { width: calc(100% - 2 * var(--page-gutter)); max-width: var(--content-width); min-width: 0; margin-inline: auto; }
  main.phone > .metrics { display: block; }
  main.phone > .metrics > .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  main.phone > .stats:has(> .container > .stat) { display: block; }
  main.phone > .stats > .container:has(> .stat) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.phone > .cta { display: block; }
  main.page { width: 100%; max-width: 100%; }
  main.page > section { padding-left: 0; padding-right: 0; }
  main.page > figure { max-width: var(--content-width); margin-inline: auto; }
  main.page :is(h1, h2, .rg-breadcrumb) { overflow-wrap: anywhere; min-width: 0; }
  .rg-drawer { overflow: hidden; }
  .container :is(.card, .choice, .biz-type, .service, .feature) { min-width: 0; overflow-wrap: anywhere; }
  @media (max-width: 359px) {
    main.phone :is(.grid-cards, .cards, .choice-grid, .biz-types, .service-grid) { grid-template-columns: minmax(0, 1fr); }
  }
  @media (min-width: 1100px) {
    main.phone .rg-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  img, svg, video, canvas { max-width: 100%; }
  .container :is(.lead-form, .project-grid, .service-grid, .cards, .grid-cards) { min-width: 0; }
  .lead-form :is(input:not([type="checkbox"]), select, textarea) { width: 100%; max-width: 100%; min-width: 0; }
  /* Explicit state rules replace former important declarations. */
  .rg-home-sheet[hidden], .rg-home-success[hidden] { display: none; }
  .rg-home-form .rg-consent .rg-consent-input { width: 20px; min-width: 20px; max-width: 20px; height: 20px; min-height: 20px; max-height: 20px; padding: 0; margin: 2px 0 0; flex: 0 0 20px; }
  .rg-home-form .rg-consent .rg-consent-text { display: block; width: auto; min-width: 0; flex: 1; white-space: normal; }
  [data-menu-toggle] { display: grid; place-items: center; flex: 0 0 auto; }
  [data-menu-toggle] svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  main.phone [data-menu-toggle] { color: #fff; }
  @media (max-width: 359px) {
    :root { --page-gutter: 16px; }
    main.phone .logo-plate { width: 152px; flex-shrink: 1; }
    main.phone .region { font-size: 9px; }
    main.phone .topbar { gap: 6px; }
    main.phone .hero h1 { font-size: 40px; }
  }
  @media (min-width: 700px) { :root { --page-gutter: 32px; } }
  @media (min-width: 900px) {
    :root { --page-gutter: 40px; }
    main.phone > .stats > .container:has(> .stat) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    main.phone .rg-footer { padding-bottom: 110px; }
    main.phone .lead-form { width: 100%; max-width: 1060px; }
  }
}
