/* Atlantic Image Defense v1.15.4.19.35.282
   Mobile and tablet public-content centering integrity.
   Scope: public pages only. Desktop layouts >= 1200px remain unchanged. */

@media (max-width: 1199.98px) {
  /* Stable, symmetric gutters on phones and tablets. */
  .aid-home-page .avm-home-teaser > .container,
  .aid-visual-monitoring-page main > section > .container,
  .aid-context-public .aid-institutional-depth > .container {
    width: calc(100% - 40px);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  /* Main public service introductions are centered once their layout stacks. */
  .aid-home-page .avm-home-teaser-copy,
  .aid-visual-monitoring-page .avm-hero-copy,
  .aid-visual-monitoring-page .avm-section-heading,
  .aid-visual-monitoring-page .avm-request-intro > .avm-section-heading,
  .aid-context-public .aid-institutional-depth__hero {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
  }

  .aid-home-page .avm-home-teaser-copy > span,
  .aid-visual-monitoring-page .avm-eyebrow,
  .aid-visual-monitoring-page .avm-section-heading > span,
  .aid-context-public .aid-institutional-depth__eyebrow {
    justify-content: center;
  }

  .aid-home-page .avm-home-teaser-copy > p,
  .aid-visual-monitoring-page .avm-hero-lead,
  .aid-visual-monitoring-page .avm-section-heading > p,
  .aid-context-public .aid-institutional-depth__hero > p,
  .aid-context-public .aid-institutional-depth__hero h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .aid-home-page .avm-home-teaser-actions,
  .aid-visual-monitoring-page .avm-hero-actions,
  .aid-visual-monitoring-page .avm-hero-assurance,
  .aid-visual-monitoring-page .avm-request-assurances {
    justify-content: center;
  }

  .aid-visual-monitoring-page .avm-hero-assurance,
  .aid-visual-monitoring-page .avm-request-assurances {
    width: min(100%, 900px);
    margin-left: auto;
    margin-right: auto;
  }

  .aid-visual-monitoring-page .avm-request-assurances span {
    justify-content: center;
    text-align: center;
  }

  /* Avoid a left-column title beside a stacked mobile/tablet content block. */
  .aid-visual-monitoring-page .avm-faq-grid,
  .aid-visual-monitoring-page .avm-request-intro {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .aid-visual-monitoring-page .avm-faq-grid {
    gap: 34px;
  }

  .aid-visual-monitoring-page .avm-request-intro {
    gap: 24px;
    align-items: center;
  }

  /* Institutional pages: preserve readable body copy while centering the page introduction. */
  .aid-context-public .aid-institutional-depth__layout,
  .aid-context-public .aid-institutional-depth__sidebar,
  .aid-context-public .aid-institutional-depth__chapters {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .aid-context-public .aid-institutional-depth__flow {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  .aid-context-public .aid-institutional-depth__cta {
    text-align: center;
  }

  .aid-context-public .aid-institutional-depth__cta p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .aid-home-page .avm-home-teaser > .container,
  .aid-visual-monitoring-page main > section > .container,
  .aid-context-public .aid-institutional-depth > .container {
    width: calc(100% - 28px);
    max-width: 100%;
  }

  .aid-home-page .avm-home-teaser-copy,
  .aid-visual-monitoring-page .avm-hero-copy,
  .aid-visual-monitoring-page .avm-section-heading,
  .aid-visual-monitoring-page .avm-request-intro > .avm-section-heading,
  .aid-context-public .aid-institutional-depth__hero {
    max-width: 680px;
    text-align: center !important;
  }

  .aid-home-page .avm-home-teaser-copy > span,
  .aid-visual-monitoring-page .avm-eyebrow,
  .aid-visual-monitoring-page .avm-section-heading > span,
  .aid-context-public .aid-institutional-depth__eyebrow {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .aid-home-page .avm-home-teaser h2,
  .aid-visual-monitoring-page .avm-hero-copy h1,
  .aid-visual-monitoring-page .avm-section-heading h2,
  .aid-context-public .aid-institutional-depth__hero h2 {
    width: 100%;
    max-width: 100%;
    text-align: center;
    text-wrap: balance;
  }

  .aid-home-page .avm-home-teaser-copy > p,
  .aid-visual-monitoring-page .avm-hero-lead,
  .aid-visual-monitoring-page .avm-section-heading > p,
  .aid-context-public .aid-institutional-depth__hero > p {
    width: 100%;
    max-width: 620px;
    text-align: center;
  }

  .aid-home-page .avm-home-teaser-actions,
  .aid-visual-monitoring-page .avm-hero-actions {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .aid-home-page .avm-home-teaser-actions > a,
  .aid-visual-monitoring-page .avm-hero-actions > a {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .aid-visual-monitoring-page .avm-hero-assurance,
  .aid-visual-monitoring-page .avm-request-assurances {
    align-items: stretch;
  }

  .aid-context-public .aid-institutional-depth__flow li {
    text-align: center;
  }

  .aid-context-public .aid-institutional-depth__flow li:not(:last-child)::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .aid-context-public .aid-institutional-depth__cta {
    align-items: center;
  }

  .aid-context-public .aid-institutional-depth__cta .btn_one {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .aid-home-page .avm-home-teaser > .container,
  .aid-visual-monitoring-page main > section > .container,
  .aid-context-public .aid-institutional-depth > .container {
    width: calc(100% - 24px);
  }
}
