/*
Theme Name:        Craftsmen Asset Management
Theme URI:         https://www.craftsmenassetmanagement.com
Author:            TechRidge Labs LLC
Author URI:        https://techridgelabs.com
Description:       Craftsmen Asset Management — the private operating system for the modern home. Dark, institutional/private-client child of trl-block-theme-starter. Evergreen accent, Newsreader display + Montserrat body.
Version:           1.0.1
Requires at least: 7.0
Requires PHP:      8.1
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Template:          trl-block-theme-starter
Text Domain:       trl-craftsmen
*/

/* ----------------------------------------------------------------------------
   Card alignment — equal-height cards with the CTA pinned to a common baseline.
   Applies to grids built from core/columns + the trl-card-bordered / trl-panel
   group styles (the Membership tiers and the service-pillar cards). Without this,
   each card's button floats to a different height because the bullet lists wrap
   to different line counts. Making the column a flex container, the card fill it,
   and the list grow pushes every trailing button/link to the bottom edge.
---------------------------------------------------------------------------- */
/* Scoped with :has() to ONLY columns that directly hold a card/panel. An earlier
   unscoped `.wp-block-columns .wp-block-column { display:flex }` turned EVERY column
   (incl. the hero + intro) into a horizontal flex row — laying headline, body, and
   buttons side-by-side and crushing them (1 word/line, shattered buttons, vertical
   link). This scope leaves ordinary content columns as normal blocks. */
.wp-block-column:has(> .is-style-trl-card-bordered),
.wp-block-column:has(> .is-style-trl-panel) {
	display: flex;
}
.wp-block-column > .is-style-trl-card-bordered,
.wp-block-column > .is-style-trl-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.is-style-trl-card-bordered > .wp-block-list,
.is-style-trl-panel > .wp-block-list {
	flex-grow: 1;
}
/* Uniform list-row height + hairline separators so rows line up across cards. */
.is-style-trl-card-bordered .wp-block-list > li,
.is-style-trl-panel .wp-block-list > li {
	min-height: 3.4em;
	display: flex;
	align-items: center;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ----------------------------------------------------------------------------
   Responsive refinements. WordPress only auto-stacks wp:columns below 782px; the
   display headline + uppercase CTAs need more room, so stack columns at the tablet
   breakpoint, and never let CTA text break mid-word.
---------------------------------------------------------------------------- */
.wp-block-button__link {
	word-break: normal;
}

@media (max-width: 1024px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}
}
