/* AMIIN Core v14.6: final Core-only public visual layer. Does not restyle independent app internals. */
body.awc-heritage-active #awc-heritage-root,
body.awc-heritage-active #awc-heritage-root *{box-sizing:border-box}
body.awc-heritage-active #awc-heritage-root #awc-h-nav[hidden]{display:none!important}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open:not([hidden]){
  display:block!important;visibility:visible!important;
  width:100%;max-width:100%;
  max-height:min(72dvh,700px);overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin;
  padding:clamp(10px,1.4vw,19px);
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open>ul{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px!important;align-items:start;min-width:0;
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open>ul>li{
  min-width:0;max-width:100%;align-content:start;
  border-radius:14px;overflow:visible;
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open>ul>li>.awc-h-area-link{
  min-width:0;overflow-wrap:anywhere;
}
/* Closed accordion panels must remain closed even when an embedded engine forces focus. */
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open .awc-h-has-sub:not(.awc-h-sub-open)>.awc-h-sub{
  display:none!important;
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav.open .awc-h-has-sub.awc-h-sub-open>.awc-h-sub{
  display:block!important;position:static!important;
  width:100%;max-width:100%;min-width:0;
  max-height:min(38dvh,330px);overflow-x:hidden;overflow-y:auto;
  box-shadow:none!important;
}
body.awc-heritage-active #awc-heritage-root #awc-h-nav .awc-h-sub a{
  overflow-wrap:anywhere;line-height:1.4;
}
body.awc-heritage-active #awc-heritage-root :is(#awc-h-toggle,.awc-h-sub-toggle,.awc-h-nav a){touch-action:manipulation}
body.awc-heritage-active #awc-heritage-root .awc-h-sub-toggle{
  cursor:pointer;min-width:44px;min-height:44px;
}
body.awc-heritage-active #awc-heritage-root .awc-h-top{min-width:0}
body.awc-heritage-active #awc-heritage-root .awc-h-actions{min-width:0}
body.awc-heritage-active #awc-heritage-root .awc-h-actions form{min-width:0}
body.awc-heritage-active #awc-heritage-root :is(a,button,input):focus-visible{
  outline:3px solid #c99e52;outline-offset:2px;
}
@media(max-width:920px){
  body.awc-heritage-active #awc-heritage-root #awc-h-nav.open>ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  body.awc-heritage-active #awc-heritage-root #awc-h-nav.open>ul{grid-template-columns:minmax(0,1fr)}
  body.awc-heritage-active #awc-heritage-root #awc-h-nav.open:not([hidden]){max-height:65dvh}
  body.awc-heritage-active #awc-heritage-root .awc-h-top{gap:8px}
  body.awc-heritage-active #awc-heritage-root .awc-h-brand small{white-space:normal}
  body.awc-heritage-active #awc-heritage-root .awc-h-actions input{min-width:0}
}
/* Shared rhythm and sizing for Core editorial pages only, never engines such as Dars/Halama. */
body.awc-standalone-document .awc-standalone-body{min-width:0;max-width:100%;overflow-x:clip}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route){
  width:100%;max-width:1200px;min-width:0;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-home,.awc-native-area,.awc-area-page,.awc-service-landing){
  width:100%;max-width:100%;min-width:0;overflow-wrap:break-word;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-grid,.awc-native-service-grid,.awc-home-posts,.awc-home-routes-grid){
  min-width:0;max-width:100%;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-tile,.awc-native-service,.awc-home-route,.awc-area-card,.awc-home-post){
  min-width:0;overflow-wrap:anywhere;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-hero,.awc-area-lead,.awc-home-section-head) :is(h1,h2){
  line-height:1.14;text-wrap:balance;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :is(.awc-native-tile,.awc-native-service,.awc-home-route,.awc-area-card) a:focus-visible{
  outline:3px solid #c49b58;outline-offset:3px;
}
body.awc-standalone-document #amiin-core-preview:not(.awc-native-tool-route)
  :where(img,video,canvas){max-width:100%;height:auto}
@media(prefers-reduced-motion:reduce){
  body.awc-heritage-active #awc-heritage-root *{scroll-behavior:auto!important}
}
