/* ============================================================
   Interior-page edge-to-edge layout system
   Applies the SAME wide / 7rem-gutter treatment the homepage got
   (see ac-homepage-system.css) to every non-homepage WP template:
   capabilities (+ sub-pages), the-firm, industries (+ industry
   sub-pages), insights, security, profile and case-study pages.

   Class list is taken from the LIVE rendered markup (the interior
   pages share components — .ac-cta, .ac-insights-posts, .ac-roi-embed,
   .ac-approach, .ac-founders — and use short page-specific band names
   like .ac-values / .ac-roles / .ac-root-causes that differ from the
   older *.unmin.css selectors).

   Two moves, mirroring the homepage:
     1. Widen the CAPPED content containers (1100–1340px) → 1680px.
        (Uncapped containers are left alone — a max-width would only
        shrink them; their width follows the section gutter.)
     2. Give the full-width section BANDS 7rem side gutters
        (→ 3rem ≤960px, → 1.25rem ≤600px) via padding-inline only,
        so vertical rhythm is untouched.

   Scoped to body:not(.ac-homepage) so it never touches the homepage.
   Heroes, carousels (trust/garage logo strips), cards, decorations
   and narrow reading-measure blocks are intentionally left alone —
   heroes keep their bespoke framing, exactly like the homepage hero.

   Fully reversible: delete this file + its wp_enqueue_style()
   ('ac-interior-system') in functions.php.
   Applied 2026-07-02.
   ============================================================ */

/* ── 1. Widen the CAPPED content containers to 1680px ─────── */
body:not(.ac-homepage) :is(
  /* shared */
  .ac-insights-posts__inner,
  .ac-roi-embed__inner,
  .ac-approach__inner,
  /* capabilities */
  .ac-cap-core__inner,
  .ac-cap-other__grid,
  .ac-cap-process__steps,
  .ac-cap-products__grid,
  .ac-cap-tools__grid,
  /* the firm */
  .ac-firm-services__grid,
  .ac-firm-timeline,
  /* industries (+ industry sub-pages) */
  .ac-ind-featured__grid,
  .ac-ind-dir-grid,
  .ac-indp-stats__grid,
  .ac-indp-challenges__grid,
  .ac-indp-capabilities__grid,
  /* insights */
  .ac-insights-expect__inner,
  .ac-insights-tools__inner,
  .ac-insights-tools__grid,
  .ac-insights-topics__inner,
  .ac-insights-subscribe__inner,
  /* security */
  .ac-sec-card-grid,
  /* profile */
  .ac-approach--profile .ac-approach__inner,
  .ac-profile-cases__carousel,
  .ac-profile-section__inner,
  .ac-profile-cta--split .ac-profile-cta__split-inner,
  /* case studies */
  .ac-proj-hero__inner
) {
  max-width: 1680px !important;
}

/* ── 2. 7rem side gutters on the full-width section bands ─── */
body:not(.ac-homepage) :is(
  /* shared components (also on other interior pages) */
  .ac-cta, .ac-insights-posts, .ac-roi-embed, .ac-approach, .ac-founders,
  /* capabilities (live names) */
  .ac-cap-core, .ac-cap-other, .ac-cap-stats, .ac-orbit,
  /* capability sub-pages (stale-name fallback, harmless if unused) */
  .ac-capp-trust, .ac-capp-vision, .ac-capp-detail, .ac-capp-solution,
  .ac-capp-usecase, .ac-capp-usecases, .ac-capp-scenarios, .ac-capp-method,
  .ac-capp-stats, .ac-capp-challenge, .ac-capp-bigquote, .ac-capp-cases,
  .ac-capp-related, .ac-capp-faq, .ac-capp-cta,
  /* the firm (live names) */
  .ac-values, .ac-roles, .ac-structure, .ac-root-causes,
  .ac-culture-section, .ac-culture-gallery,
  .ac-firm-approach, .ac-firm-diff, .ac-firm-services, .ac-firm-timeline,
  .ac-firm-leadership, .ac-firm-team, .ac-firm-stats, .ac-firm-compare,
  .ac-firm-callout, .ac-firm-offices, .ac-firm-roles, .ac-firm-careers,
  .ac-firm-cta, .ac-careers-role, .ac-careers-notify,
  /* industries (+ industry sub-pages) */
  .ac-ind-featured, .ac-ind-directory, .ac-ind-search, .ac-ind-cta,
  .ac-indp-stats, .ac-indp-challenges, .ac-indp-capabilities,
  .ac-indp-case, .ac-indp-cta,
  /* insights */
  .ac-insights-expect, .ac-insights-tools, .ac-insights-topics,
  .ac-insights-subscribe,
  /* security */
  .ac-sec-nav, .ac-sec-stats, .ac-sec-accordion, .ac-sec-cta,
  .ac-sec-data, .ac-sec-compliance, .ac-sec-incident, .ac-sec-capabilities,
  /* profile */
  .ac-profile-section, .ac-profile-garage, .ac-profile-cta, .ac-pf-form,
  .ac-profile-trusted, .ac-profile-problem, .ac-profile-services,
  .ac-profile-whyus, .ac-profile-bigquote, .ac-profile-bottom,
  /* case studies */
  .ac-proj-cards, .ac-proj-stats, .ac-proj-pullquote, .ac-proj-divider
) {
  padding-left: 7rem !important;
  padding-right: 7rem !important;
}

/* ── Tablet ≤960px → 3rem gutters ─────────────────────────── */
@media (max-width: 960px) {
  body:not(.ac-homepage) :is(
    .ac-cta, .ac-insights-posts, .ac-roi-embed, .ac-approach, .ac-founders,
    .ac-cap-core, .ac-cap-other, .ac-cap-stats, .ac-orbit,
    .ac-capp-trust, .ac-capp-vision, .ac-capp-detail, .ac-capp-solution,
    .ac-capp-usecase, .ac-capp-usecases, .ac-capp-scenarios, .ac-capp-method,
    .ac-capp-stats, .ac-capp-challenge, .ac-capp-bigquote, .ac-capp-cases,
    .ac-capp-related, .ac-capp-faq, .ac-capp-cta,
    .ac-values, .ac-roles, .ac-structure, .ac-root-causes,
    .ac-culture-section, .ac-culture-gallery,
    .ac-firm-approach, .ac-firm-diff, .ac-firm-services, .ac-firm-timeline,
    .ac-firm-leadership, .ac-firm-team, .ac-firm-stats, .ac-firm-compare,
    .ac-firm-callout, .ac-firm-offices, .ac-firm-roles, .ac-firm-careers,
    .ac-firm-cta, .ac-careers-role, .ac-careers-notify,
    .ac-ind-featured, .ac-ind-directory, .ac-ind-search, .ac-ind-cta,
    .ac-indp-stats, .ac-indp-challenges, .ac-indp-capabilities,
    .ac-indp-case, .ac-indp-cta,
    .ac-insights-expect, .ac-insights-tools, .ac-insights-topics,
    .ac-insights-subscribe,
    .ac-sec-nav, .ac-sec-stats, .ac-sec-accordion, .ac-sec-cta,
  .ac-sec-data, .ac-sec-compliance, .ac-sec-incident, .ac-sec-capabilities,
    .ac-profile-section, .ac-profile-garage, .ac-profile-cta, .ac-pf-form,
    .ac-profile-trusted, .ac-profile-problem, .ac-profile-services,
    .ac-profile-whyus, .ac-profile-bigquote, .ac-profile-bottom,
    .ac-proj-cards, .ac-proj-stats, .ac-proj-pullquote, .ac-proj-divider
  ) {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

/* ── Mobile ≤600px → 1.25rem gutters ──────────────────────── */
@media (max-width: 600px) {
  body:not(.ac-homepage) :is(
    .ac-cta, .ac-insights-posts, .ac-roi-embed, .ac-approach, .ac-founders,
    .ac-cap-core, .ac-cap-other, .ac-cap-stats, .ac-orbit,
    .ac-capp-trust, .ac-capp-vision, .ac-capp-detail, .ac-capp-solution,
    .ac-capp-usecase, .ac-capp-usecases, .ac-capp-scenarios, .ac-capp-method,
    .ac-capp-stats, .ac-capp-challenge, .ac-capp-bigquote, .ac-capp-cases,
    .ac-capp-related, .ac-capp-faq, .ac-capp-cta,
    .ac-values, .ac-roles, .ac-structure, .ac-root-causes,
    .ac-culture-section, .ac-culture-gallery,
    .ac-firm-approach, .ac-firm-diff, .ac-firm-services, .ac-firm-timeline,
    .ac-firm-leadership, .ac-firm-team, .ac-firm-stats, .ac-firm-compare,
    .ac-firm-callout, .ac-firm-offices, .ac-firm-roles, .ac-firm-careers,
    .ac-firm-cta, .ac-careers-role, .ac-careers-notify,
    .ac-ind-featured, .ac-ind-directory, .ac-ind-search, .ac-ind-cta,
    .ac-indp-stats, .ac-indp-challenges, .ac-indp-capabilities,
    .ac-indp-case, .ac-indp-cta,
    .ac-insights-expect, .ac-insights-tools, .ac-insights-topics,
    .ac-insights-subscribe,
    .ac-sec-nav, .ac-sec-stats, .ac-sec-accordion, .ac-sec-cta,
  .ac-sec-data, .ac-sec-compliance, .ac-sec-incident, .ac-sec-capabilities,
    .ac-profile-section, .ac-profile-garage, .ac-profile-cta, .ac-pf-form,
    .ac-profile-trusted, .ac-profile-problem, .ac-profile-services,
    .ac-profile-whyus, .ac-profile-bigquote, .ac-profile-bottom,
    .ac-proj-cards, .ac-proj-stats, .ac-proj-pullquote, .ac-proj-divider
  ) {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
