/* Tablet layer — loaded with media="(min-width:768px) and (max-width:1180px)" */

:root {
	--m-gutter: clamp(1.25rem, 3vw, 2rem);
	--m-section-y: clamp(3.5rem, 6vw, 5rem);
}

html, body { overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }

/* Header: drawer navigation, roomy touch targets */
.m-header__inner { gap: .75rem; }
.m-menu-btn, .m-header__search, .m-header__account { min-width: 48px; min-height: 48px; }
.m-header__account { min-width: 56px; }
.m-header__cta { padding-inline: 1.1rem; }

/* Hero: two columns kept on landscape tablets, stacked on portrait */
.m-hero__title { font-size: clamp(2.1rem, 1.2rem + 3vw, 3rem); }
.m-hero__lead { font-size: 1.05rem; max-width: 46ch; }
@media (orientation: portrait) {
	.m-hero__slide { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.m-hero__copy { text-align: start; }
	.m-hero__media { max-width: 640px; width: 100%; margin-inline: auto; }
	.m-hero__frame { aspect-ratio: 16 / 10; }
	.m-float--1, .m-float--2 { display: none; }
}

/* Grids */
.m-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (orientation: portrait) and (max-width: 900px) {
	.m-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.m-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-pillar { border-inline-start: 0 !important; padding-inline: 0 1rem !important; }
.m-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-founder__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.m-posts__grid, .m-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Carousels: 2–3 cards */
.m-carousel__track { --per: 2.2; }
.m-carousel[data-per="4"] .m-carousel__track { --per: 2.8; }
.m-carousel__btn { width: 48px; height: 48px; }

/* Panels */
.m-consult__panel, .m-final__panel { padding: clamp(1.75rem, 4vw, 2.75rem); }
.m-final__actions { flex-wrap: wrap; }

/* Footer: 2 columns */
.m-footer__top, .m-footer__top:has(.m-footer__news) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.m-footer__brand, .m-footer__news { grid-column: 1 / -1; }

/* WooCommerce / LMS on tablet */
.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
.learndash-wrapper .ld-course-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
