/* Additions for the directory app (real-link anchors, responsive nav) */
:where(a[data-nl]){display:inline-block;text-align:center;cursor:pointer;color:inherit;text-decoration:none}
.aml-xl-only{display:none}
@media (min-width:1280px){.aml-xl-only{display:flex}}
#header-logo{display:inline-block}
a:focus-visible,button:focus-visible{outline:2px solid #0f4c81;outline-offset:2px}
.aml-ssr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#hero-search-section img{will-change:opacity}

/* ---- mobile fixes for business profile pages ---- */
.aml-app-page{overflow-x:clip}
.aml-rate-row{row-gap:.45rem}
.aml-hdr-card,.aml-hdr-card *{min-width:0}
.aml-hdr-card h1{overflow-wrap:anywhere}
@media (max-width:639px){
  .aml-hdr-wrap{padding:1rem}
  #business-profile-root .aml-hdr-card{gap:.9rem}
  #business-profile-root img,#business-profile-root svg{max-width:100%}
  #business-profile-root table{display:block;overflow-x:auto}
  #business-profile-root pre,#business-profile-root code{white-space:pre-wrap;overflow-wrap:anywhere}
}

/* ---- mobile fixes for business profile pages ---- */
.aml-app-page{overflow-x:clip}
.aml-rate-row{row-gap:.45rem}
.aml-hdr-card,.aml-hdr-card *{min-width:0}
.aml-hdr-card h1{overflow-wrap:anywhere}
@media (max-width:639px){
  #business-profile-root img,#business-profile-root svg{max-width:100%}
  #business-profile-root table{display:block;overflow-x:auto}
  #business-profile-root pre,#business-profile-root code{white-space:pre-wrap;overflow-wrap:anywhere}
}
#main-footer a,#main-footer li{overflow-wrap:anywhere}
#main-footer li>a,#main-footer li>button{text-align:left}
