/*
 * Landing tabs: Standards tab panel + tab bar polish for seven tabs.
 * Load after theme.min.css. Every selector is scoped to the landing tab classes, so it does
 * nothing on pages without the tab bar. The theme already gives the bar one scrolling row,
 * edge fades (.has-more-left / .has-more-right), scroll-snap and the active tab scrolled into view;
 * this file only adds what was missing.
 */

/* Tap targets: every tab is at least 44px high. */
.home-hero-tab {
	min-height: 44px;
}

/* Keyboard focus is visible on both the dark bar and the white active tab. */
.home-hero-tab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.home-hero-tab.active:focus-visible {
	outline-color: var(--content-primary, #1A2331);
}

/* The selected tab stays crisp when it sits under the bar's edge fade. */
.home-hero-tab.active {
	z-index: 4;
}

/* A sideways swipe on the tab row never drags the page. */
.home-hero__tabs-inner {
	overscroll-behavior-x: contain;
}

/* Standards panel: a grade or course hub per row, with its worksheet count on the right. */
.home-standards-pill {
	display: flex;
	width: 100%;
	min-height: 36px;
	align-items: center;
}

.home-standards-pill__label {
	flex: 1 1 auto;
	min-width: 0;
}

.home-standards-pill__count {
	margin-left: auto;
	padding-left: 8px;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--content-tertiary, #667085);
}

.home-standards-pill:hover .home-standards-pill__count {
	color: inherit;
}

@media (pointer: coarse) {
	.home-standards-pill {
		min-height: 44px;
	}
}

/* Four subject columns do not fit two across on a phone: stack them. */
@media (max-width: 480px) {
	.home-calcs-by-domain--standards {
		grid-template-columns: 1fr;
	}
}
