/* Fixes for the standalone-migrated TNT Motion pages.
   Added 2026-05-02 during /applications/ pilot migration.
   These rules patch issues that exist in the underlying WP theme
   (theme.json missing layout.contentSize, generic content-link rule
   overrides hero button color). */

/* === FIX 1: layout constraint for Gutenberg block-group inner containers ===
   WP normally generates max-width via theme.json -> settings.layout.contentSize.
   The 'my-blank-page' theme has no theme.json so the rule never gets emitted.
   Without it, .is-layout-constrained does nothing and content bleeds full-width. */
.wp-block-group__inner-container.is-layout-constrained,
.wp-block-group.is-layout-constrained > .wp-block-group__inner-container,
.is-layout-constrained {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* alignwide blocks should be wider than the constrained max */
.is-layout-constrained > .alignwide,
.is-layout-constrained .wp-block-columns.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* alignfull breaks out of the constraint entirely */
.is-layout-constrained > .alignfull {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* === FIX 2: hero button text colour ===
   .site-main__content a { color: var(--color-accent) } overrides
   .hero__button--primary { color: #fff } via specificity, making the
   white button text render in the same orange as the background = invisible. */
.site-main__content a.hero__button,
.site-main__content a.hero__button--primary,
.site-main__content a.hero__button--secondary {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* === FIX 3: keep all internal nav header/footer links unchanged from theme ===
   (The .site-main__content a rule shouldn't reach header/footer, just being safe) */
.site-header a,
.site-footer a {
    color: inherit;
}
