/* Editorial blocks for internal WordPress pages. The front page is untouched. */
.nd-inner main :is(h1, h2, h3, h4) {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}
/* Exhibition categories retain the hierarchy of the official regulations. */
.nd-page[data-page="show"] .entry-content .nd-exhibition-group {
	margin-block: 2rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--nd-content-rule);
}
.nd-page[data-page="show"] .nd-exhibition-group > .nd-section-label {
	margin: 0 0 .75rem;
}
.nd-page[data-page="show"] .nd-exhibition-group > h3 {
	margin: 2rem 0 .75rem;
}
.nd-page[data-page="show"] .nd-exhibition-group > h3:first-child,
.nd-page[data-page="show"] .nd-exhibition-group > .nd-section-label + h3 {
	margin-top: 0;
}
.nd-page[data-page="show"] .nd-exhibition-group > p:not(.nd-section-label) {
	margin: 0 0 1rem;
}
.nd-page[data-page="show"] .nd-exhibition-group > :last-child {
	margin-bottom: 0;
}
.nd-page[data-page="show"] .entry-content > h3 {
	margin: 2rem 0 .75rem;
}
.nd-page[data-page="show"] .nd-exhibition-group > h3 + h4 {
	margin-top: 1.25rem;
}
.nd-page[data-page="show"] .entry-content h4 {
	margin-block: 2.5rem .5rem;
	font-size: 1.125rem;
	line-height: 1.4;
}
.nd-page[data-page="show"] .entry-content .nd-exhibition-awards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
}
.nd-page[data-page="show"] .nd-exhibition-awards > li {
	min-width: 0;
	margin: 0;
	padding: 1.125rem 1.25rem;
	border-left: .1875rem solid var(--nd-red);
	background: var(--nd-content-paper);
	color: #575753;
	font-size: .9375rem;
	line-height: 1.65;
	text-wrap: pretty;
}
.nd-page[data-page="show"] .nd-exhibition-awards > li:only-child {
	grid-column: 1 / -1;
}
.nd-page[data-page="show"] .nd-exhibition-awards strong {
	color: var(--nd-black);
	font-size: 1.0625rem;
	font-weight: 750;
}
.nd-page[data-page="show"] .nd-page-aside {
	max-height: calc(100svh - 7rem);
	overflow-y: auto;
}
@media (max-width: 600px) {
	.nd-page[data-page="show"] .entry-content .nd-exhibition-awards {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}
	.nd-page[data-page="show"] .nd-exhibition-awards > li {
		padding: .875rem 1rem;
	}
}
.nd-inner .entry-content {
	--nd-content-rule: #deded9;
	--nd-content-paper: #f5f5f2;
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.nd-inner .entry-content > p:not(.nd-lead):not(.nd-section-label) {
	max-width: 74ch;
	color: #575753;
}

.nd-inner .entry-content a {
	color: var(--nd-red-dark);
}

.nd-inner .entry-content h2,
.nd-inner .entry-content h3 {
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.12;
	text-wrap: balance;
}

.nd-inner .entry-content h2 {
	max-width: 25ch;
	margin-block: 54px 20px;
	font-size: clamp(29px, 3.1vw, 43px);
}

.nd-inner .entry-content h3 {
	font-size: clamp(23px, 2.1vw, 29px);
}

.nd-inner .entry-content .nd-lead {
	max-width: 52ch;
	margin: 0 0 42px;
	color: var(--nd-black);
	font-size: clamp(23px, 2.45vw, 33px);
	font-weight: 550;
	letter-spacing: -.035em;
	line-height: 1.42;
	text-wrap: pretty;
}

.nd-inner .entry-content .nd-section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 76px 0 17px;
	color: #777771;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .17em;
	line-height: 1.5;
	text-transform: uppercase;
}

.nd-inner .entry-content .nd-section-label::before {
	width: 18px;
	height: 5px;
	flex: 0 0 auto;
	transform: skewX(-16deg);
	background: var(--nd-red);
	content: "";
}

.nd-inner .entry-content .nd-section-label + h2 {
	margin-top: 0;
}

/* Event essentials behave like a compact specification, not a stack of cards. */
.nd-inner .entry-content .nd-meta-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 38px 0 66px;
	padding: 25px 0;
	border: 0;
	border-top: 1px solid var(--nd-black);
	border-bottom: 1px solid var(--nd-content-rule);
	border-radius: 0;
	background: transparent;
}

.nd-inner .entry-content .nd-meta-item {
	min-width: 0;
	padding: 0 25px;
}

.nd-inner .entry-content .nd-meta-item:first-child {
	padding-left: 0;
}

.nd-inner .entry-content .nd-meta-item:last-child {
	padding-right: 0;
}

.nd-inner .entry-content .nd-meta-item + .nd-meta-item {
	border-top: 0;
	border-left: 1px solid var(--nd-content-rule);
}

.nd-inner .entry-content .nd-meta-item small {
	display: block;
	margin-bottom: 9px;
	color: #777771;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.5;
	text-transform: uppercase;
}

.nd-inner .entry-content .nd-meta-item strong {
	display: block;
	max-width: 25ch;
	font-size: clamp(14px, 1.3vw, 18px);
	font-weight: 750;
	letter-spacing: -.035em;
	line-height: 1.4;
}

/* Linked modules. Numbers and a consistent baseline give every grid a rhythm. */
.nd-inner .entry-content .nd-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 30px 0 64px;
}

.nd-inner .entry-content .nd-card-grid.nd-card-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nd-inner .entry-content .nd-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 244px;
	flex-direction: column;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--nd-content-rule);
	border-radius: 14px;
	background: #fff;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nd-inner .entry-content .nd-card p {
	margin: 0;
	color: #60605b;
	font-size: 14px;
	line-height: 1.65;
	text-wrap: pretty;
}

.nd-inner .entry-content .nd-card .nd-card__number {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 25px;
	color: var(--nd-red-dark);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .1em;
	line-height: 1.3;
}

.nd-inner .entry-content .nd-card__number::before {
	width: 4px;
	height: 11px;
	transform: skewX(-16deg);
	background: var(--nd-red);
	content: "";
}

.nd-inner .entry-content .nd-card h3 {
	margin: 0 0 13px;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1.13;
}

.nd-inner .entry-content .nd-card .nd-card__link {
	margin-top: auto;
	padding-top: 28px;
}

.nd-inner .entry-content .nd-card__link a {
	display: inline-block;
	padding-block: 3px;
	color: var(--nd-black);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .07em;
	text-decoration: none;
	text-transform: uppercase;
}

.nd-inner .entry-content .nd-card__link a::after {
	position: absolute;
	z-index: 2;
	inset: 0;
	border-radius: 14px;
	content: "";
}

.nd-inner .entry-content .nd-card:focus-within {
	outline: 2px solid var(--nd-red);
	outline-offset: 3px;
}

.nd-inner .entry-content .nd-card:has(.nd-card__image) {
	overflow: hidden;
	padding-top: 0;
}

.nd-inner .entry-content .nd-card > .wp-block-image {
	margin: 0 -28px 24px;
	overflow: hidden;
	line-height: 0;
}

.nd-inner .entry-content .nd-card__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 216px;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform 450ms cubic-bezier(.2, .65, .35, 1);
}

.nd-inner .nd-page--overview .entry-content .nd-card-grid:not(:has(.nd-card__image)) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Eight festival disciplines: two feature images, then a six-card index. */
.nd-inner .nd-page[data-page="activities"] .nd-card-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px;
}

.nd-inner .nd-page[data-page="activities"] .nd-card {
	grid-column: span 2;
	min-height: 0;
}

.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) {
	grid-column: span 3;
}

.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) .nd-card__image {
	height: clamp(220px, 23vw, 310px);
}

.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) h3 {
	font-size: clamp(29px, 2.5vw, 36px);
}

.nd-inner .nd-page[data-page="activities"] .nd-card__number {
	position: absolute;
	top: 18px;
	left: 18px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 5px;
	background: #fff;
	color: var(--nd-black);
}

.nd-inner .nd-page[data-page="activities"] .nd-card__number::before {
	color: var(--nd-red);
}

/* The extra passenger experience is a compact cross-link, not a ninth photo tile. */
.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link {
	display: grid;
	grid-template-columns: minmax(170px, .75fr) minmax(0, 1.5fr) auto;
	align-items: center;
	gap: 26px;
	margin: -20px 0 0;
	padding: 30px 32px;
	border: 0;
	border-radius: 14px;
	background: var(--nd-content-paper);
}

.nd-inner .nd-page[data-page="activities"] .nd-drift-taxi-link::before {
	position: absolute;
	top: 26px;
	bottom: 26px;
	left: 0;
	width: 3px;
	background: var(--nd-red);
	content: "";
}

.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link h3 {
	grid-column: 1;
	grid-row: auto;
	margin: 0;
	font-size: 26px;
}

.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link > p:not(.nd-card__link) {
	grid-column: 2;
	grid-row: auto;
	margin: 0;
	font-size: 14px;
}

.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link .nd-card__link {
	grid-column: 3;
	grid-row: auto;
	margin: 0;
	padding: 0;
}

/* Regulations are an index of documents with their real formats, not promo tiles. */
.nd-inner .nd-page[data-page="rules"] .entry-content .nd-card-grid {
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid var(--nd-black);
}

.nd-inner .nd-page[data-page="rules"] .entry-content .nd-card {
	display: grid;
	min-height: 0;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	column-gap: 24px;
	row-gap: 7px;
	align-items: center;
	padding: 27px 0;
	border: 0;
	border-bottom: 1px solid var(--nd-content-rule);
	border-radius: 0;
	background: none;
}

.nd-inner .nd-page[data-page="rules"] .nd-card .nd-card__number {
	display: grid;
	grid-column: 1;
	grid-row: 1 / 3;
	width: 48px;
	min-height: 58px;
	align-self: center;
	place-items: center;
	margin: 0;
	border: 1px solid var(--nd-content-rule);
	border-radius: 7px;
	background: var(--nd-content-paper);
	color: #777771;
	font-size: 12px;
	letter-spacing: .04em;
}

.nd-inner .nd-page[data-page="rules"] .nd-card .nd-card__number::before {
	display: none;
}

.nd-inner .nd-page[data-page="rules"] .nd-card:has(a[href$=".pdf"]) .nd-card__number {
	font-size: 0;
}

.nd-inner .nd-page[data-page="rules"] .nd-card:has(a[href$=".pdf"]) .nd-card__number::before {
	display: block;
	width: auto;
	height: auto;
	transform: none;
	background: none;
	color: var(--nd-red-dark);
	content: "PDF";
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .04em;
}

.nd-inner .nd-page[data-page="rules"] .nd-card h3 {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	margin: 0;
	font-size: 23px;
}

.nd-inner .nd-page[data-page="rules"] .nd-card > p:not(.nd-card__number):not(.nd-card__link) {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	font-size: 13px;
	line-height: 1.55;
}

.nd-inner .nd-page[data-page="rules"] .nd-card .nd-card__link {
	grid-column: 3;
	grid-row: 1 / 3;
	margin: 0;
	padding: 0 4px 0 8px;
	white-space: nowrap;
}

.nd-inner .nd-page[data-page="rules"] .nd-card .nd-card__link a::after {
	border-radius: 0;
}

/* A visual process with a mobile reading order identical to the markup. */
.nd-inner .entry-content .nd-steps {
	display: grid;
	gap: 0;
	margin: 30px 0 64px;
	padding: 0;
	counter-reset: nd-step;
}

.nd-inner .entry-content .nd-step {
	position: relative;
	min-height: 115px;
	margin: 0;
	padding: 25px 0 25px 98px;
	border-top: 1px solid var(--nd-content-rule);
	list-style: none;
	counter-increment: nd-step;
}

.nd-inner .entry-content .nd-step::before {
	position: absolute;
	top: 24px;
	left: 0;
	display: block;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	color: transparent;
	content: counter(nd-step, decimal-leading-zero);
	font-size: 52px;
	font-weight: 800;
	letter-spacing: -.07em;
	line-height: 1;
	-webkit-text-stroke: 1px #a5a5a0;
}

.nd-inner .entry-content .nd-step strong {
	display: block;
	margin-bottom: 8px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.3;
	text-wrap: balance;
}

.nd-inner .entry-content .nd-step span {
	display: block;
	max-width: 68ch;
	color: #60605b;
	font-size: 14px;
	line-height: 1.65;
	text-wrap: pretty;
}

.nd-inner .nd-page--overview .entry-content .nd-steps {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.nd-inner .nd-page--overview .entry-content .nd-step {
	padding: 105px 0 0;
	border-color: var(--nd-black);
}

.nd-inner .nd-page--overview .entry-content .nd-step::before {
	font-size: 64px;
}

.nd-inner .nd-page--overview .entry-content .nd-step:first-child::before {
	-webkit-text-stroke-color: var(--nd-red);
}

/* Structured lists stay light; long rules remain readable rather than boxed. */
.nd-inner .entry-content .nd-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 30px;
	margin: 30px 0 64px;
	padding: 0;
	list-style: none;
}

.nd-inner .entry-content .nd-facts li {
	position: relative;
	display: flex;
	min-height: 78px;
	align-items: center;
	margin: 0;
	padding: 21px 6px 21px 22px;
	border-top: 1px solid var(--nd-content-rule);
	border-radius: 0;
	background: none;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: -.01em;
	line-height: 1.5;
	text-wrap: pretty;
}

.nd-inner .entry-content .nd-facts li::before {
	position: absolute;
	top: calc(50% - 4px);
	left: 2px;
	width: 5px;
	height: 8px;
	transform: skewX(-16deg);
	background: var(--nd-red);
	content: "";
}

.nd-inner .entry-content .nd-details {
	margin: 30px 0 64px;
	border-top: 1px solid var(--nd-black);
}

.nd-inner .entry-content .nd-details details {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--nd-content-rule);
	transition: background-color 180ms ease;
}

.nd-inner .entry-content .nd-details summary {
	position: relative;
	padding: 25px 58px 25px 0;
	cursor: pointer;
	font-size: 17px;
	font-weight: 750;
	letter-spacing: -.02em;
	line-height: 1.4;
	list-style: none;
}

.nd-inner .entry-content .nd-details summary::-webkit-details-marker {
	display: none;
}

.nd-inner .entry-content .nd-details summary::after {
	position: absolute;
	top: 20px;
	right: 0;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--nd-content-rule);
	border-radius: 8px;
	background: none;
	color: var(--nd-black);
	content: "+";
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
}

.nd-inner .entry-content .nd-details details[open] summary {
	color: var(--nd-red-dark);
}

.nd-inner .entry-content .nd-details details[open] summary::after {
	border-color: var(--nd-red-dark);
	background: var(--nd-red-dark);
	color: #fff;
	content: "−";
}

.nd-inner .entry-content .nd-details details > div {
	max-width: 72ch;
	padding: 0 56px 27px 0;
	color: #60605b;
	font-size: 15px;
	line-height: 1.75;
}

/* Callouts hold supporting information; the black endcap is the primary CTA. */
.nd-inner .entry-content .nd-callout {
	position: relative;
	overflow: hidden;
	margin: 58px 0;
	padding: 34px 40px;
	border: 0;
	border-radius: 14px;
	background: var(--nd-content-paper);
	color: var(--nd-black);
}

.nd-inner .entry-content .nd-callout::before {
	position: absolute;
	top: 34px;
	bottom: 34px;
	left: 0;
	width: 3px;
	background: var(--nd-red);
	content: "";
}

.nd-inner .entry-content .nd-callout::after {
	top: 26px;
	right: -3px;
	width: 10px;
	height: 86px;
	transform: skewX(-16deg);
	border: 0;
	border-radius: 0;
	background: #e2e2db;
	box-shadow: -19px 0 0 #e2e2db, -38px 0 0 #e2e2db;
}

.nd-inner .entry-content .nd-callout > * {
	max-width: 68ch;
}

.nd-inner .entry-content .nd-callout h2,
.nd-inner .entry-content .nd-callout h3 {
	max-width: 29ch;
	margin: 0 60px 15px 0;
	color: var(--nd-black);
	font-size: clamp(25px, 2.6vw, 34px);
}

.nd-inner .entry-content .nd-callout p {
	color: #60605b;
	font-size: 15px;
	line-height: 1.7;
}

.nd-inner .entry-content .nd-callout > p:last-child {
	margin-bottom: 0;
}

.nd-inner .entry-content .nd-callout a {
	color: var(--nd-black);
	text-decoration-color: #b5b5ae;
	text-underline-offset: 5px;
}

.nd-inner .entry-content .nd-callout.nd-callout--red {
	background: var(--nd-red-dark);
	color: #fff;
}

.nd-inner .entry-content .nd-callout--red h2,
.nd-inner .entry-content .nd-callout--red h3,
.nd-inner .entry-content .nd-callout--red a {
	color: #fff;
}

.nd-inner .entry-content .nd-callout--red p {
	color: #fff;
}

.nd-inner .entry-content .nd-callout.nd-callout--red::after {
	border: 0;
	background: rgb(255 255 255 / 18%);
	box-shadow: -19px 0 0 rgb(255 255 255 / 18%), -38px 0 0 rgb(255 255 255 / 18%);
}

.nd-inner .entry-content .nd-callout--red a {
	text-decoration-color: rgb(255 255 255 / 55%);
}

.nd-inner .entry-content .nd-cta {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	overflow: hidden;
	margin: 64px 0 0;
	padding: 40px;
	border: 0;
	border-radius: 16px;
	background: #151515;
	color: #fff;
}

.nd-inner .entry-content .nd-cta::before {
	position: absolute;
	z-index: -1;
	top: -40px;
	right: 55px;
	width: 24px;
	height: 320px;
	transform: skewX(-16deg);
	background: rgb(239 36 45 / 12%);
	box-shadow: -44px 0 0 rgb(239 36 45 / 12%), -88px 0 0 rgb(239 36 45 / 12%);
	content: "";
}

.nd-inner .entry-content .nd-cta h2,
.nd-inner .entry-content .nd-cta h3 {
	max-width: 28ch;
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(26px, 2.75vw, 37px);
}

.nd-inner .entry-content .nd-cta p {
	max-width: 55ch;
	margin: 0;
	color: #c2c2bc;
	font-size: 14px;
	line-height: 1.65;
}

.nd-inner .entry-content .nd-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--nd-red-dark);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .065em;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nd-inner .entry-content .nd-button--dark {
	border-color: rgb(255 255 255 / 40%);
	background: transparent;
	color: #fff;
}

/* Partner wordmarks are editorial text, never substitute or invented logos. */
.nd-inner .entry-content .nd-partner-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 30px 0 64px;
	overflow: hidden;
	border: 1px solid var(--nd-content-rule);
	border-radius: 14px;
}

.nd-inner .entry-content .nd-partner {
	display: grid;
	min-height: 110px;
	place-items: center;
	padding: 24px 18px;
	border: 0;
	border-right: 1px solid var(--nd-content-rule);
	border-bottom: 1px solid var(--nd-content-rule);
	border-radius: 0;
	background: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1.3;
	text-align: center;
}

.nd-inner .entry-content .nd-partner:nth-child(3n) {
	border-right: 0;
}

.nd-inner .entry-content .nd-contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 30px 0 64px;
}

.nd-inner .entry-content .nd-contact {
	position: relative;
	min-width: 0;
	padding: 30px;
	border: 1px solid var(--nd-content-rule);
	border-radius: 14px;
	background: #fff;
}

.nd-inner .entry-content .nd-contact::before {
	display: block;
	width: 22px;
	height: 5px;
	margin-bottom: 25px;
	transform: skewX(-16deg);
	background: var(--nd-red);
	content: "";
}

.nd-inner .entry-content .nd-contact h3 {
	margin: 0 0 18px;
	font-size: 25px;
}

.nd-inner .entry-content .nd-contact p {
	margin: 8px 0;
	color: #60605b;
	font-size: 14px;
	line-height: 1.6;
}

.nd-inner .entry-content .nd-contact a {
	color: var(--nd-black);
	font-size: 14px;
	font-weight: 700;
	text-decoration-color: #c8c8c0;
	text-underline-offset: 5px;
	overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
	.nd-inner .entry-content .nd-card:has(.nd-card__link):hover {
		transform: translateY(-3px);
		border-color: #bababa;
		box-shadow: 0 12px 25px rgb(0 0 0 / 4%);
	}

	.nd-inner .entry-content .nd-card:has(.nd-card__link):hover .nd-card__image {
		transform: scale(1.035);
	}

	.nd-inner .entry-content .nd-card:hover .nd-card__link a {
		color: var(--nd-red-dark);
	}

	.nd-inner .nd-page[data-page="rules"] .entry-content .nd-card:has(.nd-card__link):hover {
		transform: none;
		border-color: var(--nd-content-rule);
		box-shadow: none;
	}

	.nd-inner .nd-page[data-page="rules"] .nd-card:hover h3 {
		color: var(--nd-red-dark);
	}

	.nd-inner .entry-content .nd-button:hover {
		transform: translateY(-2px);
		background: #fff;
		color: var(--nd-black);
	}

	.nd-inner .entry-content .nd-details summary:hover,
	.nd-inner .entry-content .nd-contact a:hover {
		color: var(--nd-red-dark);
	}
}

.nd-inner .entry-content :is(.nd-button, .nd-details summary, .nd-contact a, .nd-callout a):focus-visible {
	outline: 2px solid var(--nd-red);
	outline-offset: 5px;
}

.nd-inner .entry-content .nd-cta .nd-button:focus-visible,
.nd-inner .entry-content .nd-callout--red a:focus-visible {
	outline-color: #fff;
}

@media (max-width: 1120px) {
	.nd-inner .nd-page--overview .entry-content .nd-card-grid:not(:has(.nd-card__image)),
	.nd-inner .nd-page--overview .entry-content .nd-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card,
	.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) {
		grid-column: auto;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) .nd-card__image {
		height: 216px;
	}

	.nd-inner .entry-content .nd-cta {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.nd-inner .entry-content .nd-cta .nd-button {
		justify-self: start;
	}
}

@media (max-width: 800px) {
	.nd-inner .entry-content .nd-card-grid.nd-card-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nd-inner .entry-content .nd-meta-item {
		padding-inline: 16px;
	}

	.nd-inner .entry-content .nd-card {
		padding: 23px;
	}

	.nd-inner .entry-content .nd-card > .wp-block-image {
		margin-inline: -23px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px 25px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link > p:not(.nd-card__link) {
		grid-column: 1;
		grid-row: 2;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link .nd-card__link {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.nd-inner .nd-page[data-page="rules"] .entry-content .nd-card {
		column-gap: 18px;
	}
}

@media (max-width: 600px) {
	.nd-inner .entry-content {
		font-size: 14px;
		line-height: 1.7;
	}

	.nd-inner .entry-content h2 {
		margin-block: 38px 17px;
		font-size: clamp(27px, 7.2vw, 33px);
		line-height: 1.16;
	}

	.nd-inner .entry-content .nd-lead {
		margin-bottom: 30px;
		font-size: 22px;
		letter-spacing: -.035em;
		line-height: 1.43;
	}

	.nd-inner .entry-content .nd-section-label {
		margin: 48px 0 13px;
		font-size: 9px;
		letter-spacing: .14em;
	}

	.nd-inner .entry-content .nd-meta-strip {
		grid-template-columns: 1fr;
		margin: 27px 0 42px;
		padding: 0;
	}

	.nd-inner .entry-content .nd-meta-item,
	.nd-inner .entry-content .nd-meta-item:first-child,
	.nd-inner .entry-content .nd-meta-item:last-child {
		display: grid;
		grid-template-columns: minmax(90px, .8fr) minmax(0, 1.45fr);
		align-items: baseline;
		gap: 15px;
		padding: 16px 0;
	}

	.nd-inner .entry-content .nd-meta-item + .nd-meta-item {
		border-top: 1px solid var(--nd-content-rule);
		border-left: 0;
	}

	.nd-inner .entry-content .nd-meta-item small {
		margin: 0;
		font-size: 8px;
		letter-spacing: .06em;
	}

	.nd-inner .entry-content .nd-meta-item strong {
		font-size: 13px;
		letter-spacing: -.02em;
	}

	.nd-inner .entry-content .nd-card-grid,
	.nd-inner .entry-content .nd-card-grid.nd-card-grid--three,
	.nd-inner .nd-page--overview .entry-content .nd-card-grid:not(:has(.nd-card__image)) {
		grid-template-columns: 1fr;
		gap: 12px;
		margin: 25px 0 44px;
	}

	.nd-inner .entry-content .nd-card {
		display: grid;
		min-height: 0;
		grid-template-columns: 26px minmax(0, 1fr);
		column-gap: 12px;
		padding: 21px 18px;
		border-radius: 12px;
	}

	.nd-inner .entry-content .nd-card .nd-card__number {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		gap: 0;
		margin: 4px 0 0;
		font-size: 10px;
		line-height: 1.5;
	}

	.nd-inner .entry-content .nd-card__number::before {
		display: none;
	}

	.nd-inner .entry-content .nd-card h3 {
		grid-column: 2;
		margin: 0 0 10px;
		font-size: 22px;
		line-height: 1.15;
	}

	.nd-inner .entry-content .nd-card > p:not(.nd-card__number) {
		grid-column: 2;
		font-size: 13px;
		line-height: 1.6;
	}

	.nd-inner .entry-content .nd-card .nd-card__link {
		padding-top: 16px;
	}

	.nd-inner .entry-content .nd-card__link a {
		font-size: 9px;
		letter-spacing: .06em;
	}

	/* Labels such as "КЛАСС 1" and "10 ОКТ" need a full row, not a narrow index. */
	.nd-inner .nd-page--discipline .nd-card,
	.nd-inner .nd-page[data-page="program"] .nd-card {
		display: flex;
		padding: 22px;
	}

	.nd-inner .nd-page--discipline .nd-card .nd-card__number,
	.nd-inner .nd-page[data-page="program"] .nd-card .nd-card__number {
		margin: 0 0 14px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card-grid {
		grid-template-columns: 1fr;
		gap: 0;
		border-top: 1px solid var(--nd-content-rule);
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card,
	.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) {
		display: grid;
		grid-template-columns: 104px minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		column-gap: 17px;
		padding: 20px 0;
		border: 0;
		border-bottom: 1px solid var(--nd-content-rule);
		border-radius: 0;
		background: none;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card > .wp-block-image {
		grid-column: 1;
		grid-row: 1 / 4;
		align-self: stretch;
		margin: 0;
		border-radius: 9px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card__image,
	.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) .nd-card__image {
		width: 100%;
		height: 100%;
		min-height: 150px;
		max-height: 220px;
		margin: 0;
		object-fit: cover;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card .nd-card__number {
		top: 27px;
		left: 7px;
		padding: 3px 5px;
		border-radius: 3px;
		font-size: 8px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card h3,
	.nd-inner .nd-page[data-page="activities"] .nd-card:nth-child(-n+2) h3 {
		grid-column: 2;
		grid-row: 1;
		margin: 0 0 9px;
		font-size: 22px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card > p:not(.nd-card__number):not(.nd-card__link) {
		grid-column: 2;
		grid-row: 2;
		font-size: 12px;
		line-height: 1.6;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card .nd-card__link {
		grid-column: 2;
		grid-row: 3;
		align-self: end;
		padding-top: 14px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 10px;
		margin-top: -17px;
		padding: 24px;
		border-radius: 12px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link h3 {
		grid-column: 1;
		grid-row: auto;
		font-size: 23px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link > p:not(.nd-card__link) {
		grid-column: 1;
		grid-row: auto;
		font-size: 13px;
	}

	.nd-inner .nd-page[data-page="activities"] .nd-card.nd-drift-taxi-link .nd-card__link {
		grid-column: 1;
		grid-row: auto;
		padding-top: 6px;
	}

	.nd-inner .nd-page[data-page="rules"] .entry-content .nd-card {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 8px 17px;
		padding: 23px 0;
	}

	.nd-inner .nd-page[data-page="rules"] .nd-card .nd-card__number {
		grid-column: 1;
		grid-row: 1 / 3;
		width: 40px;
		min-height: 52px;
		align-self: start;
		margin: 0;
	}

	.nd-inner .nd-page[data-page="rules"] .nd-card h3 {
		margin: 0;
		font-size: 22px;
	}

	.nd-inner .nd-page[data-page="rules"] .nd-card > p:not(.nd-card__number):not(.nd-card__link) {
		font-size: 12px;
	}

	.nd-inner .nd-page[data-page="rules"] .nd-card .nd-card__link {
		grid-column: 2;
		grid-row: 3;
		padding: 4px 0 0;
	}

	.nd-inner .entry-content .nd-steps,
	.nd-inner .nd-page--overview .entry-content .nd-steps {
		grid-template-columns: 1fr;
		gap: 0;
		margin: 26px 0 44px;
	}

	.nd-inner .entry-content .nd-step,
	.nd-inner .nd-page--overview .entry-content .nd-step {
		min-height: 0;
		padding: 22px 0 22px 68px;
		border-color: var(--nd-content-rule);
	}

	.nd-inner .entry-content .nd-step::before,
	.nd-inner .nd-page--overview .entry-content .nd-step::before {
		top: 23px;
		font-size: 43px;
	}

	.nd-inner .entry-content .nd-step strong {
		margin-bottom: 8px;
		font-size: 17px;
		line-height: 1.3;
	}

	.nd-inner .entry-content .nd-step span {
		font-size: 13px;
		line-height: 1.65;
	}

	.nd-inner .entry-content .nd-facts {
		grid-template-columns: 1fr;
		margin: 26px 0 44px;
	}

	.nd-inner .entry-content .nd-facts li {
		min-height: 62px;
		padding-block: 17px;
		font-size: 13px;
	}

	.nd-inner .entry-content .nd-details {
		margin: 25px 0 44px;
	}

	.nd-inner .entry-content .nd-details summary {
		padding: 21px 45px 21px 0;
		font-size: 15px;
		line-height: 1.45;
	}

	.nd-inner .entry-content .nd-details summary::after {
		top: 17px;
		width: 30px;
		height: 30px;
		border-radius: 7px;
	}

	.nd-inner .entry-content .nd-details details > div {
		padding: 0 0 23px;
		font-size: 13px;
		line-height: 1.7;
	}

	.nd-inner .entry-content .nd-callout {
		margin: 40px 0;
		padding: 26px 24px;
		border-radius: 12px;
	}

	.nd-inner .entry-content .nd-callout::before {
		top: 26px;
		bottom: 26px;
	}

	.nd-inner .entry-content .nd-callout::after {
		right: -16px;
		height: 60px;
		opacity: .65;
	}

	.nd-inner .entry-content .nd-callout h2,
	.nd-inner .entry-content .nd-callout h3 {
		margin-right: 20px;
		font-size: clamp(1.375rem, 6.9vw, 1.625rem);
	}

	.nd-inner .entry-content .nd-callout p {
		font-size: 13px;
	}

	.nd-inner .entry-content .nd-cta {
		grid-template-columns: 1fr;
		gap: 25px;
		margin-top: 45px;
		padding: 28px 25px;
		border-radius: 12px;
	}

	.nd-inner .entry-content .nd-cta h2,
	.nd-inner .entry-content .nd-cta h3 {
		max-width: 20ch;
		font-size: 28px;
	}

	.nd-inner .entry-content .nd-cta p {
		font-size: 13px;
	}

	.nd-inner .entry-content .nd-button {
		width: 100%;
		min-height: 50px;
		padding-inline: 14px;
		font-size: 9px;
	}

	.nd-inner .entry-content .nd-partner-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 26px 0 44px;
		border-radius: 12px;
	}

	.nd-inner .entry-content .nd-partner {
		min-height: 92px;
		padding: 20px 12px;
		font-size: 14px;
	}

	.nd-inner .entry-content .nd-partner:nth-child(3n) {
		border-right: 1px solid var(--nd-content-rule);
	}

	.nd-inner .entry-content .nd-partner:nth-child(2n) {
		border-right: 0;
	}

	.nd-inner .entry-content .nd-contact-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		margin: 26px 0 44px;
	}

	.nd-inner .entry-content .nd-contact {
		padding: 25px;
		border-radius: 12px;
	}

	.nd-inner .entry-content .nd-contact::before {
		margin-bottom: 20px;
	}

	.nd-inner .entry-content .nd-contact h3 {
		margin-bottom: 17px;
		font-size: 24px;
	}

	.nd-inner .entry-content .nd-contact p,
	.nd-inner .entry-content .nd-contact a {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nd-inner .entry-content .nd-card,
	.nd-inner .entry-content .nd-card__image,
	.nd-inner .entry-content .nd-button,
	.nd-inner .entry-content .nd-details details {
		transition: none;
	}
}
