/* Motion trial removed; original static layout restored. */

/* Nautelier Journal IT/EN: use the site's shared responsive grid. */

/* Journal vertical rhythm: shared theme spacing in every language. */
body.single-post .wp-site-blocks > .wp-block-group:has(> footer.wp-block-template-part) { margin-top: var(--wp--preset--spacing--50) !important; }
body.single-post .entry-content {
  --wp--style--block-gap: var(--wp--preset--spacing--40);
}
body.single-post .entry-content :is(article,.wp-block-group,.nautelier-paper-body) > :is(p,ul,ol,blockquote),
body.single-post .entry-content > :is(p,ul,ol,blockquote) {
  margin-top: var(--wp--preset--spacing--40) !important;
  margin-bottom: 0 !important;
}
body.single-post .entry-content h1 {
  margin-top: var(--wp--preset--spacing--50) !important;
  margin-bottom: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content h2 {
  margin-top: var(--wp--preset--spacing--50) !important;
  margin-bottom: var(--wp--preset--spacing--40) !important;
}
body.single-post .entry-content p:empty { display:none; }
body.single-post .entry-content .nautelier-paper-top {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content .nautelier-paper-hero {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content .nautelier-paper-image {
  margin-top: var(--wp--preset--spacing--50) !important;
  margin-bottom: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content .nautelier-next-reading {
  margin-top: var(--wp--preset--spacing--50) !important;
  margin-bottom: 0 !important;
  padding-top: var(--wp--preset--spacing--40) !important;
}
body.single-post .entry-content .nautelier-paper-logo {
  margin-top: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content .nautelier-paper-wrap {
  padding-top: var(--wp--preset--spacing--50) !important;
  padding-bottom: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content > .wp-block-group {
  margin-bottom: 0 !important;
}
body.single-post .entry-content > .sharedaddy {
  margin-top: var(--wp--preset--spacing--50) !important;
}
body.single-post .entry-content > .sharedaddy + .sharedaddy {
  margin-top: var(--wp--preset--spacing--40) !important;
}
body.single-post main > .wp-block-group:has(.wp-block-post-navigation-link) {
  margin-top: var(--wp--preset--spacing--40) !important;
  margin-bottom: 0 !important;
}
body.single-post main > .wp-block-group:has(.wp-block-post-navigation-link) .wp-block-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
body.single-post main > .wp-block-template-part:not(:has(*)) { display:none; }
body.single-post main {
  margin-bottom: var(--wp--preset--spacing--50) !important;
}


html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content > .elementor > .e-con,
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content > .elementor > .e-con > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content {
  --wp--style--global--content-size: var(--wp--style--global--wide-size);
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content > :not(.alignfull) {
  max-width: var(--wp--style--global--wide-size) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content > :is(article,.wp-block-group) {
  width: 100%;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content .is-layout-constrained > :not(.alignfull) {
  max-width: 100% !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content .nautelier-paper-wrap {
  width: 100% !important;
  max-width: var(--wp--style--global--wide-size) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: var(--wp--preset--spacing--60) 0 !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content .nautelier-paper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content :is(.nautelier-paper-hero,.nautelier-paper-body,.nautelier-paper-image) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content :is(h1,h2,h3,p,ul,ol,blockquote) {
  box-sizing: border-box;
  overflow-wrap: break-word;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content h1 {
  font-size: var(--wp--preset--font-size--xx-large) !important;
  line-height: 1.15 !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content h2 {
  font-size: var(--wp--preset--font-size--x-large) !important;
  line-height: 1.25 !important;
}
html:is(:lang(it),:lang(en),:lang(de)) body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
}


/* Visual QA 2026-10-14: compensate for asymmetric theme gutter on full-bleed editorial blocks. */
.nw, .nv, .entry-content .nwc, #ongoing, html:lang(it) #nautelier-journal-it {
  left: calc(50% - 14px) !important;
}
@media (max-width: 781px) {
  .nw, .nv, .entry-content .nwc, #ongoing, html:lang(it) #nautelier-journal-it {
    left: calc(50% - 10px) !important;
  }
}

/* Restore the missing right gutter on the closing homepage blocks on phones. */
@media (max-width: 781px) {
  .home .entry-content > div.wp-block-group.has-global-padding {
    padding-right: 20px;
  }
}