/*
  Base styles for the page-content markup ported from WordPress (classes such as wp-block-button, wp-block-image,
  is-layout-flex, has-normal-font-size, wp-block-separator). Replaces the full WordPress core stylesheets (wp-compat.css,
  wp-blocks.css): only the rules that match markup on the ACN/GCTC pages are kept, with WordPress variables resolved.
  Loaded before Bootstrap and the theme stylesheet, so the theme's own rules (buttons, headings) still win.
*/

/* Page shell */
:where(body) { margin: 0; }
body { padding: 0; }
ol, ul { box-sizing: border-box; }
:where(figure) { margin: 0 0 1em; }

/* Text sizes and alignment set in the page editor */
.has-normal-font-size { font-size: 20px !important; }
.has-large-font-size { font-size: 24px !important; }
.aligncenter { clear: both; }

/* Images */
:where(img[class*="wp-image-"]) { height: auto; max-width: 100%; }
.wp-block-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright,
.wp-block-image.aligncenter, .wp-block-image.alignleft, .wp-block-image.alignright { display: table; }
.wp-block-image .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image figure { margin: 0; }

/* Buttons (the theme stylesheet restyles .wp-block-button__link with the site's .btn look) */
.wp-element-button, .wp-block-button__link { cursor: pointer; }
.wp-block-button__link {
  display: inline-block; box-sizing: border-box; height: 100%; align-content: center; text-align: center; word-break: break-word;
  color: #fff; background-color: #32373c; border: 0; border-radius: 9999px; box-shadow: none; text-decoration: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px); font-size: 1.125em; font-family: inherit; font-style: inherit; font-weight: inherit;
  letter-spacing: inherit; line-height: inherit; text-transform: inherit;
}
.wp-block-buttons { box-sizing: border-box; }
.wp-block-buttons > .wp-block-button { display: inline-block; margin: 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-buttons .wp-block-button__link { width: 100%; }

/* Flex rows (button groups, columns) */
body .is-layout-flex { display: flex; }
.is-layout-flex { flex-wrap: wrap; align-items: center; }
:where(.is-layout-flex) { gap: .5em; }
.is-layout-flex > :is(*, div) { margin: 0; }

/* Separators and spacers */
.wp-block-separator { border: none; border-top: 2px solid; }
.wp-block-spacer { clear: both; }

/* Accessibility (Phase 4): skip link, main landmark target, the mobile menu toggle as a real button */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100000; padding: .6rem 1rem; background: #fff; color: #0d2444;
  font-weight: 700; border: 2px solid #0d2444; border-radius: 4px; text-decoration: none; transition: none; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
:where(button.menu__btn) { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; }
button.menu__btn:focus-visible { outline: 3px solid #F5C863; outline-offset: 3px; }
