/*
Theme Name: ABA Pathways
Theme URI: 
Author: Small Tweaks
Author URI: 
Description: A custom theme designed by Small Tweaks, for ABA Pathways.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aba-pathways
Tags: 
*/

/* ------ Additional CSS located within 'assets/css'. ------ */

/* Sets a size for the SVG logo to ensure it displays
.custom-logo {
  width: 220px;
  height: auto;
}

*/

/* Sticky navigation fix */
.wp-block-template-part:has(>.is-position-sticky) {
	--wp-admin--admin-bar--position-offset: var( --wp-admin--admin-bar--height, 0px );
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--position-offset, 0px ) );
	z-index: 10;
}

/* Set button pairs to equal width and stack full-width on mobile */
.equal-buttons { max-width: 480px; margin-left: auto; margin-right: auto; }
.equal-buttons .wp-block-button { flex: 1 1 0; }
.equal-buttons .wp-block-button .wp-block-button__link { width: 100%; }
@media (max-width: 600px) {
  .equal-buttons { flex-direction: column; align-items: stretch; max-width: 340px; }
  .equal-buttons .wp-block-button { flex: 0 0 auto; width: 100%; }
}

/* Add padding to social sharing icons on posts */
.simplesocialbuttons { padding-top: 30px }

/* Ensure footer remains at the bottom of the page, even on short pages */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main {
  flex-grow: 1;
}

/* Align resources and case studies posts */
.st-card-grid .wp-block-post-template > li,
.st-card-grid .wp-block-post-template > li > .wp-block-group {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span var(--st-card-rows, 5);
  row-gap: var(--wp--style--block-gap);
}
.st-card-grid .wp-block-post-template > li > .wp-block-group > * {
  margin-block: 0;
}
.st-card-grid.st-card-rows-4 { --st-card-rows: 4; }

/* Fix CSS clash between FAZ Cookie Manager and Simple Social Buttons */
.faz-btn-revisit-wrapper[data-tooltip] { position: fixed; }
