/* ==========================================================================
   AIAI_MOBILE_STRUCTURE_EDITORIAL_CLOSURE_V1
   Scope: public internal pages, mobile only.
   Purpose:
   - one visual handoff into the unified footer;
   - remove legacy dead-space before the footer;
   - preserve desktop exactly;
   - support the editorial dedup changes in the mobile templates.
   ========================================================================== */

@media (max-width:767px){

  /* One footer handoff. No unexplained ivory band between content and footer. */
  body.aiai-luminous-internal-v1 .aiai-global-mobile-footer-v1{
    margin-top:0!important;
    clear:both!important;
  }

  /* Each mobile product owns a small, explicit final breathing space. */
  body.page-decision-wizard .amd1{
    padding-bottom:26px!important;
  }

  body.page-explorer .aiai-mx{
    padding-bottom:26px!important;
  }

  body.page-compare .aiai-cmp-mobile{
    padding-bottom:26px!important;
  }

  body.page-switch .switch-content{
    padding-bottom:26px!important;
  }

  body.page-tool .aiai-tool-mobile-v17{
    padding-bottom:26px!important;
  }

  body.page-verdict .aiai-v15-mobile{
    padding-bottom:24px!important;
  }

  /* Editorial/document pages previously inherited large desktop tail spacing. */
  body.page-changes .changes-method{
    margin-bottom:0!important;
    padding-bottom:24px!important;
  }

  body.page-changes .changes-method>details{
    margin-bottom:0!important;
  }

  body.trust-integrity-page .trust-integrity-shell{
    min-height:0!important;
    height:auto!important;
    margin-bottom:0!important;
    padding-bottom:24px!important;
  }

  body.trust-integrity-page .trust-integrity-shell>:last-child,
  body.trust-integrity-page .trust-integrity-footer-card,
  body.trust-integrity-page .commercial-footer-card{
    margin-bottom:0!important;
  }

  /* Decision: the tool-input state now has one title and one subordinate prompt. */
  body.page-decision-wizard .amd1-inlineprompt{
    margin:0 0 8px!important;
    color:var(--amd1-soft)!important;
    font:500 14px/1.7 var(--amd1-serif)!important;
  }

  body.page-decision-wizard .amd1-inlineprompt bdi{
    color:var(--amd1-ink)!important;
    font-weight:700!important;
  }

  /* Gap state: one message, then the task and actions. */
  body.page-decision-wizard .amd1-gapstate .amd1-resolvehead{
    padding-bottom:16px!important;
    border-bottom:0!important;
  }

  body.page-decision-wizard .amd1-gapstate .amd1-querycontext{
    border-top:1px solid var(--amd1-line)!important;
  }

  body.page-decision-wizard .amd1-gapstate .amd1-gapactions{
    margin-top:16px!important;
  }

  /* Explorer headings: no false empty space where removed eyebrows used to live. */
  body.page-explorer .aiai-mx-tool-query header>h2{
    margin-top:0!important;
  }

  body.page-explorer .aiai-mx-runway-head>div>h2{
    margin-top:0!important;
  }

  /* Verdict: scope remains in the compact fact + trust section, not repeated below reason. */
  body.page-verdict .aiai-v15-reason + .aiai-v15-microfacts{
    margin-top:10px!important;
  }

  /* Tool: after duplicate disclosures are removed, keep the single useful disclosure composed. */
  body.page-tool .atv17-details{
    margin-top:14px!important;
  }

  body.page-tool .atv17-details .atv17-detail:only-child{
    border-bottom:0!important;
  }
}

/* Desktop lock: this file intentionally has no desktop rules. */
