/* AMIIN Core v14.8: navigation + public reading polish.
   Never override the internal design of an integrated provider engine. */
body.awc-heritage-active #awc-heritage-root .awc-h-header {
  box-sizing:border-box;
  width:min(100%,1200px);
  max-width:100%;
}
/* Retain access to the menu below the WP administrator toolbar. */
body.admin-bar.awc-heritage-active #awc-heritage-root .awc-h-header {
  top:var(--wp-admin--admin-bar--height,32px);
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open:not([hidden]) {
  max-height:min(var(--awc-h-nav-max-height,560px),700px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open .awc-h-sub {
  scroll-padding-block:8px;
}
body.awc-heritage-active #awc-heritage-root .awc-h-sub-toggle {
  flex:0 0 44px;
  min-width:44px;
  min-height:44px;
}
body.awc-heritage-active #awc-heritage-root .awc-h-sub-toggle[aria-expanded="true"] {
  background:#e0f0e8!important;
  color:#124e3b!important;
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav a[aria-current="page"] {
  background:#e4f2ea!important;
  color:#174f3b!important;
  font-weight:750;
  box-shadow:inset 0 0 0 1px #bfd8ca;
}
body.awc-heritage-active #awc-heritage-root .awc-h-top {
  max-width:100%;
}
body.awc-heritage-active #awc-heritage-root .awc-h-actions {
  flex-wrap:wrap;
  row-gap:6px;
}
body.awc-heritage-active #awc-heritage-root .awc-h-top :is(a,button,input) {
  min-height:40px;
}
@media(max-width:560px) {
  body.awc-heritage-active #awc-heritage-root .awc-h-top {align-items:center;}
  body.awc-heritage-active #awc-heritage-root .awc-h-brand {flex:1 1 130px;}
  body.awc-heritage-active #awc-heritage-root #awc-h-toggle {min-height:44px;}
  body.awc-heritage-active #awc-heritage-root .awc-h-actions {gap:7px;width:100%;}
  body.awc-heritage-active #awc-heritage-root .awc-h-actions form {flex:1 1 100%;order:1;}
  body.awc-heritage-active #awc-heritage-root .awc-h-actions form input {width:100%;}
  body.awc-heritage-active #awc-heritage-root #awc-h-nav.open:not([hidden]) {padding:10px!important;}
  body.awc-heritage-active #awc-heritage-root #awc-h-nav.open>ul {gap:7px!important;}
}
/* Visual continuity is limited to Core editorial pages, NOT app routes. */
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-home-section,.awc-native-section) {
  margin-block:clamp(24px,3.6vw,46px);
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-section-title,.awc-home-section-head) {
  min-width:0;
  max-width:100%;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-hero,.awc-native-section) :is(p,li) {
  line-height:1.72;
  overflow-wrap:break-word;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  .awc-native-guide .awc-native-section>p {
  max-width:70ch;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-tile-link,.awc-native-service,.awc-home-route) {
  min-width:0;
  transition:box-shadow .2s ease, border-color .2s ease,transform .2s ease;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-tile-link,.awc-native-service,.awc-home-route):hover {
  border-color:#a9cdbb;
  box-shadow:0 12px 30px rgba(17,71,49,.09);
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  .awc-native-breadcrumb {
  padding-block:clamp(8px,1vw,14px);
}
@media(max-width:620px) {
  body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
    :is(.awc-native-grid,.awc-native-service-grid,.awc-home-routes-grid) {
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
    :is(.awc-native-tile,.awc-native-service,.awc-home-route) {
    padding:clamp(14px,4vw,20px);
  }
}
@media(prefers-reduced-motion:reduce) {
  body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
    :is(.awc-native-tile-link,.awc-native-service,.awc-home-route) {
    transition:none!important;
    transform:none!important;
  }
}
