/* BAOI 5.3.34.2.2 — exact historical DNS/domain layout repair.
 * The tool DOM and DNS engine remain unchanged; this layer only resets legacy
 * page/theme geometry that can displace the shortcode application blocks.
 */

/* BAOI53422_DNS_DUPLICATE_TITLE_GUARD
 * The historical shortcode already owns the application H1. On this exact
 * route, suppress only common theme-level duplicate page-title wrappers.
 */
body.baoi-tool-p1-dns-layout-v53422 :where(
  h1.entry-title,
  h1.page-title,
  .entry-header > h1,
  .page-header > h1,
  .wp-block-post-title
){display:none!important}

/* Let the shortcode application own the content width instead of inheriting a
 * narrow article measure from the historical WordPress page template. */
body.baoi-tool-p1-dns-layout-v53422 :where(.entry-content,.page-content,.post-content){
  width:100%!important;
  max-width:none!important;
}

/* BAOI53422_DNS_BLOCK_GEOMETRY */
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-app{
  display:block!important;
  position:relative!important;
  float:none!important;
  clear:both!important;
  overflow:visible!important;
  margin-top:18px!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-app > :where(
  .boai-dns-hero,
  .boai-dns-loading,
  .boai-dns-error,
  #boai-dns-results
){
  position:relative!important;
  inset:auto!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-hero{
  display:block!important;
  margin:0 0 18px!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:stretch!important;
  gap:10px!important;
  width:min(100%,900px)!important;
  max-width:900px!important;
  margin:18px 0 0!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-form > *{
  min-width:0!important;
  margin:0!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-examples{
  width:100%!important;
  margin:12px 0 0!important;
}
body.baoi-tool-p1-dns-layout-v53422 #boai-dns-results{
  display:block!important;
  margin:0!important;
  padding:0!important;
}
body.baoi-tool-p1-dns-layout-v53422 #boai-dns-results[hidden]{display:none!important}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  margin:0 0 20px!important;
}
body.baoi-tool-p1-dns-layout-v53422 #boai-dns-results > h2{
  width:100%!important;
  margin:22px 0 12px!important;
  clear:both!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-checks,
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-record-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  align-items:stretch!important;
}
body.baoi-tool-p1-dns-layout-v53422 :where(.boai-check,.boai-record-card){
  position:relative!important;
  inset:auto!important;
  float:none!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-record-wide{
  grid-column:1 / -1!important;
}
body.baoi-tool-p1-dns-layout-v53422 .boai-dns-help{
  clear:both!important;
  width:100%!important;
  margin:20px 0 0!important;
}

/* BAOI53422_DNS_MOBILE_STACK */
@media(max-width:760px){
  body.baoi-tool-p1-dns-layout-v53422 .boai-dns-form,
  body.baoi-tool-p1-dns-layout-v53422 .boai-dns-summary,
  body.baoi-tool-p1-dns-layout-v53422 .boai-dns-checks,
  body.baoi-tool-p1-dns-layout-v53422 .boai-dns-record-grid{
    grid-template-columns:1fr!important;
  }
  body.baoi-tool-p1-dns-layout-v53422 .boai-record-wide{grid-column:auto!important}
  body.baoi-tool-p1-dns-layout-v53422 .boai-dns-summary button{width:100%!important}
}
