/*
 * Core-block club starters use the existing Takt palette, type and 80rem grid.
 * Every selector is confined to these optional starter compositions.
 */
.takt-starter-section {
	box-sizing: border-box;
	margin-block: 0;
	padding-block: clamp(3.5rem, 6vw, 6rem);
	padding-inline: 1.5rem;
}

.takt-starter-section--tint {
	background: var(--wp--preset--color--tint);
}

.takt-starter-section :where(h2, h3, h4, p, figure, .wp-block-buttons) {
	margin-block-start: 0;
}

.takt-starter-section :where(h2) {
	max-width: 24ch;
	margin-block-end: 1.5rem;
	font-size: clamp(1.875rem, 1.4rem + 1.75vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.takt-starter-section :where(h3) {
	margin-block-end: 0.875rem;
	font-size: clamp(1.375rem, 1.1rem + 0.65vw, 1.75rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.takt-starter-section :where(h4) {
	margin-block-end: 0.5rem;
	font-size: 1.0625rem;
	line-height: 1.4;
}

.takt-starter-section :where(p) {
	max-width: 68ch;
	margin-block-end: 1.25rem;
	line-height: 1.7;
	text-wrap: pretty;
}

/* Core centers constrained children with !important; retain the 80rem left edge. */
.takt-starter-section > :where(h2, h3, p, .wp-block-buttons) {
	margin-inline-start: max(0px, calc((100% - 80rem) / 2)) !important;
	margin-inline-end: auto !important;
}

.takt-starter-section :where(p:last-child, .wp-block-columns:last-child, .wp-block-buttons:last-child) {
	margin-block-end: 0;
}

.takt-starter-section :where([id]) {
	scroll-margin-block-start: calc(var(--takt-header-h, 6rem) + 1.5rem);
}

.takt-starter-section[id] {
	scroll-margin-block-start: calc(var(--takt-header-h, 6rem) + 1.5rem);
}

.takt-starter-section .wp-block-buttons {
	margin-block-start: 1.75rem;
	gap: 0.875rem;
}

.takt-starter-section .wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.375rem;
	font-weight: 650;
	line-height: 1.3;
	border-radius: 6px;
}

.takt-starter-section .takt-starter-text-link {
	margin-block: 0.875rem;
	font-weight: 600;
}

.takt-starter-section :where(a:focus-visible, summary:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
}

.takt-starter-feature,
.takt-starter-teasers,
.takt-starter-values,
.takt-starter-menu,
.takt-starter-album-grid {
	gap: clamp(2rem, 4.5vw, 4.5rem);
	margin-block-end: 0;
}

.takt-starter-feature {
	align-items: center;
}

.takt-starter-feature__copy {
	padding-block: 0.75rem;
}

.takt-starter-hero .takt-club-hero__copy > p {
	font-size: clamp(1.125rem, 1rem + 0.35vw, 1.25rem);
}

.takt-starter-feature__copy > :last-child {
	margin-block-end: 0;
}

.takt-starter-image {
	margin: 0;
}

.takt-starter-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
}

.takt-starter-image--team img {
	aspect-ratio: 3 / 2;
	object-position: 50% 35%;
}

.takt-starter-image figcaption {
	margin-block: 0.75rem 0;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	text-align: start;
}

.takt-starter-teasers .takt-starter-image {
	margin-block-end: 1.75rem;
}

.takt-starter-album-grid {
	margin-block-start: 2rem;
}

.takt-starter-album-grid .takt-starter-image img {
	aspect-ratio: 3 / 2;
}

.takt-starter-values,
.takt-starter-menu,
.takt-starter-teasers {
	margin-block-start: 2.5rem;
}

.takt-starter-menu h3 {
	padding-block-end: 1rem;
	border-block-end: 1px solid var(--wp--preset--color--line);
	margin-block-end: 1.5rem;
}

.takt-starter-menu p + h4 {
	margin-block-start: 1.75rem;
}

.takt-starter-section .takt-starter-note,
.takt-starter-section .takt-starter-meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--secondary);
	line-height: 1.55;
}

.takt-starter-section .takt-starter-note {
	margin-block-start: 1.75rem;
}

.takt-starter-match {
	padding-block: clamp(2.5rem, 4vw, 4rem);
	background: var(--wp--preset--color--tint);
}

.takt-starter-match__heading,
.takt-starter-match__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
}

.takt-starter-match__heading > :where(h2, p),
.takt-starter-match__footer > :where(p, .wp-block-buttons) {
	margin-block: 0;
}

.takt-starter-match__heading h2 {
	font-size: 1.375rem;
	letter-spacing: -0.02em;
}

.takt-starter-match__teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 4vw, 4rem);
	padding-block: 2.25rem;
	margin-block: 1.5rem;
	border-block: 1px solid var(--wp--preset--color--line);
}

.takt-starter-match__teams > * {
	margin-block: 0;
	min-width: 0;
}

.takt-starter-match__team:last-child {
	text-align: end;
}

.takt-starter-match__team h3 {
	font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
	margin-block: 0;
	overflow-wrap: anywhere;
}

.takt-starter-match__team .takt-starter-meta {
	margin-block-end: 0.625rem;
}

.takt-starter-match__kickoff {
	text-align: center;
}

.takt-starter-match__kickoff .takt-starter-match__time {
	margin-block: 0;
	font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
	font-weight: 650;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.takt-starter-match__kickoff .takt-starter-meta {
	margin-block: 0.625rem 0;
}

.takt-starter-table {
	margin-block: 2rem 0;
	overflow-x: auto;
	overflow-wrap: normal;
}

.takt-starter-table table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.takt-starter-table.wp-block-table :where(th, td) {
	padding: 1.125rem 1rem;
	border: 0;
	border-block-end: 1px solid var(--wp--preset--color--line);
	text-align: start;
	vertical-align: top;
	line-height: 1.5;
}

.takt-starter-table :where(th:first-child, td:first-child) {
	padding-inline-start: 0;
}

.takt-starter-table :where(th:last-child, td:last-child) {
	padding-inline-end: 0;
}

.takt-starter-table th {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.takt-starter-table:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
}

.takt-starter-table figcaption {
	margin-block-start: 1rem;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	text-align: start;
}

.takt-starter-section .wp-block-details {
	padding-block: 1.5rem;
	margin-block: 0;
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.takt-starter-section .wp-block-details summary {
	cursor: pointer;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5;
}

.takt-starter-section .wp-block-details[open] summary {
	margin-block-end: 1rem;
}

.takt-starter-section .wp-block-details > :last-child {
	margin-block-end: 0;
}

.takt-starter-contact-placeholder {
	padding-inline-start: 1rem;
	border-inline-start: 3px solid var(--wp--preset--color--primary);
}

/* The actual crest has no side padding; keep its image box equally precise. */
.takt-starter-crest {
	flex: 0 0 auto;
	margin: 0;
}

.takt-starter-crest img {
	display: block;
	object-fit: contain;
	border-radius: 0;
}

.takt-starter-header .takt-header__brand {
	gap: 0.875rem;
}

.takt-starter-header .takt-header__brand .wp-block-site-title {
	margin-block: 0;
	line-height: 1.2;
}

/* Original Takt line drawings are decorative; the native labels stay intact. */
.takt-starter-header [class*="takt-starter-nav--"] > .wp-block-navigation-item__content::before {
	content: "";
	display: inline-block;
	flex: 0 0 1.125rem;
	inline-size: 1.125rem;
	block-size: 1.125rem;
	margin-inline-end: 0.625rem;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: var(--takt-starter-nav-icon) center / contain no-repeat;
	mask: var(--takt-starter-nav-icon) center / contain no-repeat;
}

.takt-starter-header .takt-starter-nav--home { --takt-starter-nav-icon: url("../images/club/icon-home.svg"); }
.takt-starter-header .takt-starter-nav--teams { --takt-starter-nav-icon: url("../images/club/icon-teams.svg"); }
.takt-starter-header .takt-starter-nav--fixtures { --takt-starter-nav-icon: url("../images/club/icon-fixtures.svg"); }
.takt-starter-header .takt-starter-nav--club { --takt-starter-nav-icon: url("../images/club/icon-club.svg"); }
.takt-starter-header .takt-starter-nav--restaurant { --takt-starter-nav-icon: url("../images/club/icon-restaurant.svg"); }
.takt-starter-header .takt-starter-nav--albums { --takt-starter-nav-icon: url("../images/club/icon-albums.svg"); }
.takt-starter-header .takt-starter-nav--fanshop { --takt-starter-nav-icon: url("../images/club/icon-fanshop.svg"); }
.takt-starter-header .takt-starter-nav--contact { --takt-starter-nav-icon: url("../images/club/icon-contact.svg"); }

.takt-starter-footer .takt-footer__identity {
	gap: 0.875rem;
}

.takt-starter-footer .takt-footer__identity .wp-block-site-title {
	margin-block: 0;
}

@media (min-width: 782px) {
	.takt-starter-footer .takt-footer__identity,
	.takt-starter-footer.takt-footer--menu-columns .takt-footer__column > .wp-block-heading {
		min-height: 52px;
		display: flex;
		align-items: center;
		margin-block: 0;
	}
}

@media (max-width: 781px) {
	.takt-starter-section {
		padding-block: 3rem;
	}

	.takt-starter-feature,
	.takt-starter-teasers,
	.takt-starter-values,
	.takt-starter-menu,
	.takt-starter-album-grid {
		gap: 2.5rem;
	}

	.takt-starter-feature__copy {
		padding-block: 0;
	}

	.takt-starter-match__teams {
		gap: 0.75rem;
		padding-block: 1.5rem;
	}

	.takt-starter-match__team h3 {
		font-size: clamp(1.125rem, 3.8vw, 1.75rem);
	}

	.takt-starter-match__kickoff .takt-starter-match__time {
		font-size: 1.25rem;
	}

	.takt-starter-table :where(th, td) {
		padding: 0.875rem 0.625rem;
		font-size: 0.875rem;
	}

	.takt-starter-match__footer {
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.takt-starter-table table {
		min-width: 32rem;
	}
}

@media (max-width: 380px) {
	.takt-starter-section,
	.takt-starter-hero {
		overflow-wrap: anywhere;
	}

	.takt-starter-header .takt-header__brand {
		gap: 0.5rem;
	}

	.takt-starter-header .takt-header__brand .wp-block-site-title {
		font-size: 1.125rem;
	}
}
