/* LearnAML page layouts: let each section use its own responsive width. */
.wp-block-post-content.is-layout-constrained {
  --learnaml-reading-width: var(--wp--style--global--content-size);
}

.wp-block-post-content.is-layout-constrained > :is(#learnaml-journey-home, .lh-home-v2, #laml-case-files, #lamlr-main, .lamlr-hub, .la-tl-page, #lwct, #lwct-landing, .uaed-registration, .uael) {
  --wp--style--global--content-size: 100%;
}

.wp-block-post-content.is-layout-constrained > :is(#learnaml-journey-home, .lh-home-v2, #laml-case-files, #lamlr-main, .lamlr-hub, .la-tl-page, #lwct, #lwct-landing, .uaed-registration, .uael) > * {
  --wp--style--global--content-size: var(--learnaml-reading-width);
}

@media (min-width: 1440px) {
  #learnaml-journey-home .la-header .la-header-inner {
    max-width: 1400px !important;
  }
}

@media (min-width: 1440px) and (max-width: 1500px) {
  #learnaml-journey-home .la-header .la-header-inner {
    gap: 12px !important;
  }
  #learnaml-journey-home .la-header .la-nav {
    gap: 10px !important;
  }
}

@media (max-width: 420px) {
  #learnaml-journey-home .la-header .la-header-inner {
    gap: 6px !important;
  }
  #learnaml-journey-home .la-header .la-header-inner > .la-brand {
    flex: 0 1 auto !important;
    min-width: 0;
  }
  #learnaml-journey-home .la-header .la-header-inner > .la-brand img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Remove the theme title band when the LearnAML layout supplies its own heading. */
body.page main.wp-block-group > .wp-block-group.alignfull:has(> h1.hostinger-ai-page-title.wp-block-post-title:only-child):has(+ .wp-block-post-content > :is(#learnaml-journey-home, #laml-case-files, #lamlr-main, .lamlr-hub, .la-tl-page, #lwct, #lwct-landing, .uaed-registration, .uael) h1:not([hidden], [aria-hidden="true"], .screen-reader-text, dialog *, [hidden] *, [aria-hidden="true"] *, .screen-reader-text *)) {
  display: none;
}

body.page main.wp-block-group > .wp-block-group.alignfull:has(> h1.hostinger-ai-page-title.wp-block-post-title:only-child) + .wp-block-post-content:has(> :is(#learnaml-journey-home, #laml-case-files, #lamlr-main, .lamlr-hub, .la-tl-page, #lwct, #lwct-landing, .uaed-registration, .uael) h1:not([hidden], [aria-hidden="true"], .screen-reader-text, dialog *, [hidden] *, [aria-hidden="true"] *, .screen-reader-text *)) {
  margin-block-start: 0;
}

/* Remove the theme's leading block gap when navigation is the first visible section. */
body.page main.wp-block-group > .wp-block-group.alignfull:has(> h1.hostinger-ai-page-title.wp-block-post-title:only-child) + .wp-block-post-content > #learnaml-journey-home:has(> .la-header):has(h1:not([hidden], [aria-hidden="true"], .screen-reader-text, dialog *, [hidden] *, [aria-hidden="true"] *, .screen-reader-text *)):nth-child(1 of :not(style, script, template, link, p:empty, aside#laml-account-ready)) {
  margin-block-start: 0;
}

/* Suppress the old registration-return banner on every destination. */
aside#laml-account-ready {
  display: none !important;
}
