/* AMIIN CORE 14.19 — responsive layout guard.
 * Applied exclusively to Core's own standalone pages and common header/footer.
 * Provider engines keep their CSS, dimensions, and internal scrolling.
 */
body.awc-standalone-document,
body.awc-standalone-document .awc-standalone-body,
body.awc-standalone-document #amiin-core-preview{
  box-sizing:border-box;
  min-inline-size:0;
  max-inline-size:100%;
}
body.awc-standalone-document .awc-standalone-body,
body.awc-standalone-document #amiin-core-preview{
  inline-size:100%;
}
/* Only public/Core editorial content: an application's internal markup is excluded. */
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(.awc-home,.awc-areas,.awc-native-area,.awc-area-page,.awc-service-landing,
  .awc-native-guide,.awc-native-section,.awc-home-section,.awc-home-hero,
  .awc-native-hero,.awc-area-lead,.awc-home-routes,.awc-ecosystem-grid,
  .awc-showcase,.awc-reference-grid,.awc-editorial-reading-grid,
  .awc-native-grid,.awc-native-service-grid,.awc-areas-grid,
  .awc-home-routes-grid,.awc-home-posts,.awc-native-related-areas){
  box-sizing:border-box;min-inline-size:0;max-inline-size:100%;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(.awc-native-grid,.awc-native-service-grid,.awc-areas-grid,
  .awc-home-routes-grid,.awc-home-posts,.awc-editorial-reading-grid,
  .awc-reference-grid,.awc-showcase-grid,.awc-ecosystem-grid) > *{
  box-sizing:border-box;min-inline-size:0;max-inline-size:100%;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(.awc-native-tile,.awc-native-service,.awc-native-section,.awc-reference-card,
  .awc-editorial-reading-card,.awc-area-card,.awc-home-route,.awc-home-post,
  .awc-showcase-card,.awc-ecosystem-item,.awc-home-section-head) :where(h1,h2,h3,h4,p,li,a,strong,small){
  min-inline-size:0;overflow-wrap:anywhere;
}
/* Flex children otherwise honour their content's intrinsic width and escape a card. */
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(.awc-native-breadcrumb,.awc-native-related-areas,.awc-showcase-heading,
  .awc-home-section-head,.awc-native-section-title,.awc-native-service,
  .awc-home-route,.awc-area-card-content) > *{min-inline-size:0;max-inline-size:100%;}
/* The large translucent motif is deliberately decorative; don't let it widen the page. */
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  .awc-native-hero{overflow:clip;}
/* Embeds/media fit their panel. A service's video/iframe sizing is never changed. */
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(img,video,iframe,canvas,embed,object,picture,svg){
  box-sizing:border-box;max-inline-size:100%;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(.awc-native-editorial-photo,.awc-native-guide-photo,.awc-native-tile-photo,
  .awc-editorial-reading-image) img{object-fit:cover;}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(pre,.wp-block-preformatted){max-inline-size:100%;overflow-x:auto;overscroll-behavior-inline:contain;}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(.wp-block-table,.awc-responsive-table){
  box-sizing:border-box;max-inline-size:100%;overflow-x:auto;
  overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(input,select,textarea,button){box-sizing:border-box;max-inline-size:100%;min-inline-size:0;}
/* The shared footer is part of Core even when the area itself contains no cards. */
body.awc-standalone-document .awc-editorial-footer,
body.awc-standalone-document .awc-ef-wrap,
body.awc-standalone-document .awc-ef-columns,
body.awc-standalone-document .awc-ef-bottom{
  box-sizing:border-box;min-inline-size:0;max-inline-size:100%;
}
body.awc-standalone-document .awc-ef-wrap > *,
body.awc-standalone-document .awc-ef-columns > *{min-inline-size:0;max-inline-size:100%;}
body.awc-standalone-document .awc-editorial-footer :where(a,h2,p,li){overflow-wrap:anywhere;}
/* Navigation overlay must remain scrollable and above the content, never clipped by content cards. */
body.awc-heritage-active #awc-heritage-root,
body.awc-heritage-active #awc-heritage-root .awc-h-header,
body.awc-heritage-active #awc-heritage-root .awc-h-top,
body.awc-heritage-active #awc-heritage-root .awc-h-actions{
  box-sizing:border-box;max-inline-size:100%;min-inline-size:0;
}
body.awc-heritage-active #awc-heritage-root :where(.awc-h-brand,.awc-h-brand span,
 .awc-h-nav,.awc-h-nav>ul,.awc-h-nav>ul>li){min-inline-size:0;max-inline-size:100%;}
body.awc-heritage-active #awc-heritage-root .awc-h-brand small{
  overflow-wrap:anywhere;white-space:normal;
}
/* Service surfaces: protect only Core's enclosing column. Tables/menus remain managed by engines. */
body.awc-standalone-document #amiin-core-preview.awc-native-tool-route,
body.awc-standalone-document #amiin-core-preview.awc-native-tool-route > .awc-native-area,
body.awc-standalone-document #amiin-core-preview.awc-native-tool-route .awc-native-tool-surface{
  box-sizing:border-box;min-inline-size:0;max-inline-size:100%;
}
body.awc-standalone-document #amiin-core-preview.awc-native-tool-route .awc-native-tool-surface{
  overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
}
@media(max-width:600px){
  body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
    :where(.awc-native-guide,.awc-native-area,.awc-home,.awc-area-page,.awc-service-landing){
    min-inline-size:0;max-inline-size:100%;
  }
  body.awc-standalone-document .awc-ef-columns{gap-inline:clamp(10px,3vw,22px);}
}
