/* ==========================================================================
   Astra overrides: neutralise parent-theme defaults that fight the design.
   Keep this file small; anything larger means Astra output should be
   replaced instead (as the header is).
   ========================================================================== */

/* Astra's header wrappers are gone; remove the spacing they left behind. */
.sk-site #masthead {
  display: contents;
}

.sk-site .ast-plain-container,
.sk-site.ast-page-builder-template .site-content {
  background: var(--surface-page);
}

/* Astra's Customizer typography belongs to the site's earlier design: on
   skooles.com it sets headings in capitalised words, buttons in uppercase
   Roboto Slab with 1px tracking, and menus in uppercase. The design never
   transforms case, so case is reset everywhere; font and tracking are reset
   at the lowest specificity that beats Astra, so SKOOLES components still win. */
body.sk-site :is(h1, h2, h3, h4, h5, h6),
body.sk-site .entry-content :is(h1, h2, h3, h4, h5, h6),
body.sk-site :is(button, input[type="button"], input[type="submit"], input[type="reset"], .button, .ast-button, .ast-custom-button, .menu-toggle, .wp-block-button__link, .wp-block-search__button, .wp-block-file__button, .ast-outline-button, .ast-builder-menu-1, .ast-builder-menu-1 a) {
  text-transform: none;
}
/* Astra's search button selector (form[class*="wp-block-search__"]…) outranks the reset above. */
body.sk-site form.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button {
  text-transform: none;
  letter-spacing: normal;
}
html :where(button, input[type="button"], input[type="submit"], input[type="reset"], .menu-toggle) {
  font-family: var(--font-sans);
  letter-spacing: normal;
}
/* Astra styles the outline block button through a long selector; match the
   SKOOLES button (base.css + components.css) instead. */
body.sk-site .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button {
  text-transform: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding-block: 0.8125rem;
  border-radius: var(--radius-control);
}

/* Astra paints the scroll-to-top button with its own blue. */
.sk-site #ast-scroll-top {
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  border-radius: var(--radius-control);
}
