/* Page compositions reviewed against current Figma, October 2026.
 * Content remains editorial; layout follows the reference component system. */
.hradistko-site .hr-page-directory a.hr-external-link .hr-page-directory__arrow { display: block; }
.hradistko-site .hr-page-directory a.hr-external-link::after { content: none; }
.hradistko-site .hr-card--event .hr-card__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.hradistko-site .hr-card--event .hr-card__place { font-weight: 400; }
.hradistko-site .hr-card__media .hr-event-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	aspect-ratio: 8 / 5;
	background: var(--hr-green);
}
.hradistko-site .hr-card__media .hr-event-placeholder img {
	width: 30%;
	height: 70%;
	object-fit: contain;
}
.hradistko-site .hr-required-data__content { min-width: 0; overflow-wrap: anywhere; }
.hradistko-site .hr-required-data__content :is(table, figure, .hr-required-data__people-box) { max-width: 100%; min-width: 0; }
.hradistko-site .hr-required-data__content table { table-layout: fixed; width: 100%; }
@media (max-width: 63.99rem) {
	.hradistko-site .hr-required-data__content { column-count: 1; }
}
@media (min-width: 74.01rem) {
	.hr-contacts-page .hr-contacts__overview {
		grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1.55fr) 2rem minmax(0, 0.85fr);
	}
}
@media (max-width: 47.99rem) {
	.hradistko-site .hr-card--newsletter .hr-button {
		padding-inline: 0.5rem;
		font-size: clamp(0.75rem, 3.3vw, 1rem);
		white-space: nowrap;
	}
}
/* October 23: three desktop columns, four on wide screens. */
.hr-contacts-page .hr-people-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
}

@media (min-width: 64rem) {
	.hr-contacts-page .hr-people-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 2rem;
	}
}

@media (min-width: 90rem) {
	.hr-contacts-page .hr-people-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.hr-contacts-page .hr-person__contact > p {
	display: flex;
	align-items: baseline;
	gap: 0.3em;
}

/* Keep the same card anatomy between the old mobile/desktop media queries. */
.hr-contacts-page .hr-person {
	min-width: 0;
	padding: 0;
	border: 0;
}

.hr-contacts-page .hr-person__details {
	display: grid;
	gap: 0;
}

.hr-contacts-page .hr-person__identity {
	display: grid;
	gap: 0.25rem;
	margin-bottom: 0.75rem;
}

.hr-contacts-page .hr-person__details > :is(.hr-person__agenda, .hr-person__contact, .hr-person__hours) {
	margin: 0;
	padding-block: 0.75rem;
	border: 0;
	border-top: 1px solid var(--hr-line);
	font-size: var(--hr-step-0);
	line-height: 1.375;
}

.hr-contacts-page .hr-person__details > :is(.hr-person__agenda, .hr-person__contact, .hr-person__hours):last-child {
	border-bottom: 1px solid var(--hr-line);
}

.hr-contacts-page :is(.hr-person__contact, .hr-person__hours) {
	display: grid;
	gap: 0.25rem;
}

.hr-contacts-page .hr-person__contact p {
	margin: 0;
}

.hr-contacts-page :is(.hr-person__contact, .hr-person__hours) strong,
.hr-contacts__fact-list dt {
	font-family: var(--hr-display);
	font-weight: 600;
}

.hr-contacts-page .hr-person__contact > p > strong {
	flex: 0 0 auto;
}

.hr-contacts-page .hr-person__phone .hr-phone-links {
	display: flex;
	flex-flow: row wrap;
	align-items: baseline;
	gap: 0.15em 0.3em;
	min-width: 0;
}

.hr-contacts-page .hr-person__phone .hr-phone-links a {
	white-space: nowrap;
	overflow-wrap: normal;
}

.hr-contacts-page .hr-person__phone .hr-phone-links a + a::before {
	content: none;
}

.hr-contacts-page .hr-person__contact > p > a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.hr-contacts__facts-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 3rem;
}

@media (min-width: 64rem) {
	.hr-contacts__facts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.hr-contacts__facts-grid .hr-contacts__fact-list > div {
	display: block;
	padding: 0;
	border: 0;
	line-height: 1.5;
}

.hr-contacts__fact-list :is(dt, dd) {
	display: inline;
	margin: 0;
}

.hr-contacts__fact-list dt {
	margin-inline-end: 0.35em;
}

.hr-contacts__fact-list dd {
	white-space: nowrap;
}

.hr-contacts__facts-grid > .hr-contacts__about {
	grid-column: 1 / -1;
	max-width: 65ch;
	margin: 1rem 0 0;
}

.hr-service-content > p.hr-service-subheading,
.hr-service-content .wpb-content-wrapper > p.hr-service-subheading {
	font-family: var(--hr-display);
	font-size: var(--hr-step-1);
	line-height: 1.3;
}

.hr-service-content .hr-service-contact-title + ul {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 2rem;
	padding: 0;
	list-style: none;
}

.hr-service-content .hr-service-contact-title + ul > li {
	margin: 0;
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--hr-line);
	list-style: none;
	overflow-wrap: anywhere;
}

.hr-service-content .hr-service-contact-title + ul > li:nth-child(-n + 2) {
	font-family: var(--hr-display);
	font-size: var(--hr-step-1);
	font-weight: 600;
}

@media (min-width: 64rem) {
	.hr-page:has(> .hr-service-content) > .hr-page__illustration {
		width: 28%;
	}
}

@media (max-width: 63.99rem) {
	.hr-page:has(> .hr-service-content) > .hr-page__illustration {
		position: static;
		width: min(100%, 24rem);
		margin: 0 auto 2rem;
	}
	.hr-page > .hr-service-content {
		max-width: none;
	}
}

@media (max-width: 47.99rem) {
	.hr-service-content .hr-service-contact-title + ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hr-contacts-page :is(.hr-contact-list, .hr-person__hours) .hr-hours--compact .hr-hours__row {
	display: grid;
	grid-template-columns: calc(var(--hr-step-0) * 4) minmax(0, 1fr);
	gap: 0.25rem 0.75rem;
	padding-block: 0.125rem;
	border: 0;
}

.hr-contacts-page :is(.hr-contact-list, .hr-person__hours) .hr-hours--compact :is(dt, dd) {
	margin: 0;
	font-family: var(--hr-body);
	font-size: var(--hr-step-0);
	font-weight: 400;
	line-height: 1.375;
}

.hr-contacts-page .hr-hours--compact {
	margin: 0;
}

.hr-contacts-page .hr-hours__interval {
	white-space: nowrap;
}

.hr-contacts-page .hr-hours__row--note > dd {
	grid-column: 1 / -1;
}

.hr-contacts__facts-grid > .hr-contacts__about {
	display: block;
	padding-top: 0;
	border: 0;
}

.hr-page--mistni-poplatky tbody td:first-child {
	font-family: var(--hr-display);
	font-weight: 600;
}

.hr-page--mistni-poplatky .wp-block-table + p {
	font-family: var(--hr-display);
	font-size: var(--hr-step-1);
	font-weight: 600;
	line-height: 1.3;
}

.hr-page--mistni-poplatky .hr-entry-content > p:has(> .hr-download-link) {
	max-width: 36rem;
}

.hr-page--mistni-poplatky .hr-entry-content > p > .hr-download-link {
	display: block;
	position: relative;
	padding-right: 2.5rem;
}

.hr-page--mistni-poplatky .hr-entry-content > p > .hr-download-link .hr-download-tail {
	white-space: normal;
}

.hr-page--mistni-poplatky .hr-entry-content > p > .hr-download-link .hr-download-icon {
	position: absolute;
	right: 0;
	top: 0.15em;
}

.hr-water-contact {
	min-width: 0;
	align-self: start;
	overflow-wrap: anywhere;
}

/* Real contact descriptions need the same two-column ceiling as staff cards. */
.hradistko-site {
	--hr-heading-after: clamp(2rem, 3vw, 3rem);
}
.hradistko-site .site-main h2:not(.hr-card__title):not(.hr-person__name):not(.hr-alert__title):not(.hr-block--active-alert h2) {
	margin-bottom: var(--hr-heading-after);
}
.hradistko-site :is(.hr-entry-content, .hr-service-content, .hr-water-content) > :is(h3, h4) {
	margin-bottom: 1.5rem;
}
.hradistko-site .hr-contacts__people {
	margin-top: clamp(3rem, 5vw, 5rem);
}
.hradistko-site .hr-required-data__content .hr-required-data__value {
	padding-inline-start: 2rem;
	margin-inline-start: 0;
}
.hradistko-site .hr-required-data__label { position: relative; padding-inline-start: 2rem; }
.hradistko-site .hr-required-data__number { position: absolute; inset-inline-start: 0; }
.hradistko-site .hr-newsletter-archive__copy p {
	font-size: var(--hr-step-0);
	line-height: 1.5;
}
.hradistko-site .hr-card--newsletter > img {
	border: 1px solid var(--hr-line);
	box-sizing: border-box;
}

.hradistko-site .hr-anchor-pointer-focus:focus {
	outline: none !important;
}
.hradistko-site :is(.hr-entry-content, .hr-service-content, .wpb-content-wrapper) > :is(h2, h3, h4):not(:first-child) {
	margin-top: clamp(2.5rem, 4vw, 4rem);
}
.hradistko-site .hr-card--newsletter .hr-button {
	width: 100%;
	justify-content: center;
	box-sizing: border-box;
}
@media (max-width: 47.99rem) {
	.hradistko-site .hr-card--event + .hr-card--event {
		border-top: 1px solid var(--hr-line);
		padding-top: 2rem;
	}
	.hradistko-site .hr-card-grid .hr-card--event::before { content: none; }
	.hradistko-site .hr-card-grid--archive .hr-card--event + .hr-card--event {
		border-top: 0;
		padding-top: 0;
	}
	.hradistko-site .hr-card-grid--archive .hr-card--event + .hr-card--event::before {
		position: absolute;
		top: -1.25rem;
		left: 0;
		display: block;
		width: 100%;
		height: 1px;
		background: var(--hr-line);
		content: "";
	}
}
.hr-water-content .hr-water-contacts__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hradistko-site .hr-water-content .hr-water-contacts > h2 {
	margin-bottom: clamp(2rem, 3vw, 3rem);
}

.hr-water-content > :where(p, ul, ol) {
	max-width: 70ch;
}

.hr-water-content > h2,
.hr-water-content .hr-water-contacts > h2 {
	font-size: clamp(1.5rem, 1.25rem + 0.3125vw, 1.75rem);
	line-height: 1.25;
}

@media (max-width: 47.99rem) {
	.hr-water-content .hr-water-contacts__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hr-water-content > h2,
	.hr-water-content .hr-water-contacts > h2 {
		font-size: 1.5rem;
		line-height: 1.25;
	}
}

.hr-water-content .hr-water-contact > h3 {
	margin: 0;
	padding-bottom: 0.75rem;
	font-family: var(--hr-display);
	font-size: var(--hr-step-1);
	font-weight: 600;
	line-height: 1.3;
}

.hr-water-content .hr-water-contact > p {
	margin: 0;
	padding-block: 0.75rem;
	border-top: 1px solid var(--hr-line);
	font-size: var(--hr-step-0);
	line-height: 1.375;
}

.hr-water-contact {
	border-bottom: 1px solid var(--hr-line);
}

.hr-water-contacts__grid > .hr-water-contact-note {
	grid-column: 1 / -1;
	border: 0;
	padding: 0;
}

.hradistko-site .hr-water-content .hr-water-contact > .hr-water-contact__role {
	padding-top: 0;
	border-top: 0;
	font-family: var(--hr-body);
	font-weight: 400;
}
.hradistko-site :is(.hr-water-content, .hr-service-content, .hr-entry-content) > h2:not(:first-child) {
	margin-top: clamp(3rem, 6vw, 5rem);
}
.hradistko-site .hr-page--poloha-a-historie .hr-entry-content h2 {
	font-size: var(--hr-step-1);
}
.hradistko-site .hr-civic-contact { max-width: 38rem; margin-block: 2rem; }
.hradistko-site .hr-civic-contact > h3 { margin: 0 0 0.3rem; font-size: var(--hr-step-1); }
.hradistko-site .hr-civic-contact > p { margin: 0; padding-block: 0.75rem; border-bottom: 1px solid var(--hr-line); }
.hradistko-site .hr-civic-contact > .hr-civic-contact__role { padding-top: 0; font-family: var(--hr-body); font-weight: 400; }
.hradistko-site .hr-matrika-contact__person > h3 { margin: 0 0 .3rem; font-size: var(--hr-step-1); }
.hradistko-site .hr-matrika-contact__person > .hr-matrika-contact__role { margin: 0; font-family: var(--hr-body); font-weight: 400; }

@media (min-width: 64rem) {
	.hradistko-site .hr-water-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
	.hradistko-site .hr-water-shortcuts .hr-button { width: 100%; min-height: 3.25rem; white-space: normal; text-align: center; justify-content: center; }
}

.hr-matrika-content .wpb-content-wrapper > h2,
.hr-matrika-content .c-documents :is(h2, h3) {
	font-size: var(--hr-step-3);
	line-height: 1.25;
}

.hr-matrika-content .wpb-content-wrapper > p:not(:has(img)) {
	font-size: var(--hr-step-1);
	line-height: 1.5;
}

.hr-matrika-content .c-documents {
	max-width: 36rem;
}

@media (max-width: 47.99rem) {
	.hr-matrika-content .c-documents :is(h2, h3) {
		font-size: 1.5rem;
		line-height: 1.25;
	}
}

@media (min-width: 48rem) {
	.hr-page--matrika-a-svatby {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
	}

	.hr-page--matrika-a-svatby > .hr-page__header {
		grid-column: 1;
		grid-row: 1;
	}

	.hr-page--matrika-a-svatby > .hr-page__illustration {
		position: static;
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
		width: 100%;
		height: auto;
		margin: 0;
	}

	.hr-page--matrika-a-svatby > .hr-matrika-contact {
		grid-column: 1;
		grid-row: 2;
		width: 100%;
	}

	.hr-page--matrika-a-svatby > .hr-matrika-content {
		grid-column: 1 / -1;
	}

	.hr-page--mistni-poplatky {
		min-height: 0;
	}
}

@media (max-width: 47.99rem) {
	.hr-page--matrika-a-svatby > .hr-page__illustration {
		position: static;
		width: min(100%, 24rem);
		height: auto;
		margin: 0 auto 2rem;
	}
}

.hr-matrika-postcode {
	white-space: nowrap;
}

.hr-matrika-hours,
.hr-matrika-hours :is(dt, dd) {
	margin: 0;
	font: inherit;
}

.hr-matrika-hours__row {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 0.75rem;
}

.hr-matrika-hours__row dd {
	white-space: nowrap;
}

.hr-matrika-hours__note {
	margin-top: 0.25rem;
}

/* Stack the long wedding prose before tablet columns become too narrow. */
@media (max-width: 63.99rem) {
	.hr-page--matrika-a-svatby {
		display: block;
	}

	.hr-page--matrika-a-svatby > .hr-page__illustration {
		position: static;
		width: min(100%, 24rem);
		height: auto;
		margin: 0 auto 2rem;
	}

	.hr-page--matrika-a-svatby > .hr-matrika-contact {
		width: 100%;
	}

	.hr-matrika-content .wpb-content-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.hr-matrika-content .wpb-content-wrapper > p:nth-of-type(n) {
		grid-column: 1;
		grid-row: auto;
	}

	.hr-matrika-content .wpb-content-wrapper > h2:first-child {
		grid-row: 1;
	}

	.hr-matrika-content .wpb-content-wrapper > p:nth-of-type(2) {
		grid-row: 2;
	}

	.hr-matrika-content .wpb-content-wrapper > p:nth-of-type(1) {
		grid-row: 3;
	}
}
