/* Content links inherit prose typography; standalone document/CTA styles stay.
 * Both original Figma glyphs use one optical box and currentColor in all states. */
.hradistko-site {
	/* Two unchanged asset masks give the thin source glyph a subtle optical
	 * weight correction without filters, new markup or redrawing its path. */
	--hr-external-icon-mask: url("../icons/icon-external.svg"), url("../icons/icon-external.svg");
	--hr-external-icon-size: 150%, 150%;
	--hr-external-icon-position: center, calc(50% + 0.008em) calc(50% + 0.008em);
}

.hradistko-site :is(.hr-entry-content, .hr-single__lead) a.hr-inline-link:not(.hr-button):not(.wp-block-button__link),
.hradistko-site .hr-required-data__value a {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: var(--hr-green);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.hradistko-site :is(.hr-entry-content, .hr-single__lead) a.hr-inline-link:is(:hover, :focus-visible),
.hradistko-site .hr-required-data__value a:is(:hover, :focus-visible) {
	color: var(--hr-green-deep);
}

.hradistko-site .hr-link-icon-tail {
	white-space: nowrap;
}

/* Underline the label, not its preserved imported trailing NBSP. Decorations
 * on the anchor itself also paint through the following whitespace box. */
.hradistko-site a.hr-download-link:has(> .hr-link-trailing-space) {
	text-decoration: none !important;
}

.hradistko-site .hr-download-label {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.hradistko-site .hr-link-trailing-space {
	display: inline-block;
	text-decoration: none;
}

.hradistko-site .hr-phone-nowrap,
.hradistko-site .hr-contact-token {
	white-space: nowrap;
}

.hradistko-site a.hr-empty-external-link {
	display: none;
}

/* Move a normal address to the next line before splitting it. Exceptionally
 * long addresses can still wrap inside their available container. */
.hradistko-site :is(.hr-entry-content, .hr-single__lead) a[href^="mailto:"] {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: normal;
}

.hradistko-site :is(.hr-download-icon, .hr-external-icon) {
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	margin-inline: 0.22em 0;
	background: currentColor;
	/* SVG's download rule is 0.1em above its box bottom. Align it with
	 * the link underline, not the text baseline. */
	vertical-align: -0.31em;
}

.hradistko-site .hr-external-icon,
.hradistko-site a.hr-external-link::after,
.hradistko-site .site-footer a.hr-external-link::after,
.hradistko-site .hr-quick-links__tail::after,
.hradistko-site.hradistko-front-page .hr-quick-links__tail::after {
	width: 1.2em;
	height: 1.2em;
	margin-inline-start: 0.22em;
	background-color: currentColor;
	/* The external glyph has larger intrinsic padding than the download. */
	vertical-align: -0.43em;
	-webkit-mask-image: var(--hr-external-icon-mask);
	mask-image: var(--hr-external-icon-mask);
	-webkit-mask-size: var(--hr-external-icon-size);
	mask-size: var(--hr-external-icon-size);
	-webkit-mask-position: var(--hr-external-icon-position);
	mask-position: var(--hr-external-icon-position);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	mask-composite: add;
}

.hradistko-site .hr-page-directory a.hr-external-link::after,
.hradistko-site .primary-navigation .sub-menu .menu-link.hr-external-link::after {
	width: 1.2em;
	height: 1.2em;
	flex: 0 0 1.2em;
	background-color: currentColor;
	vertical-align: -0.43em;
	-webkit-mask-size: var(--hr-external-icon-size);
	mask-size: var(--hr-external-icon-size);
}

.hradistko-site a:has(.hr-download-icon, .hr-external-icon)::after {
	content: none !important;
}

.hradistko-site :is(.hr-entry-content, .hr-single__lead) a {
	overflow-wrap: anywhere;
}

/* Mandatory-data links are references within values, including legacy
 * paragraphs whose editor wrapped the entire link in <strong>. */
.hradistko-site .hr-required-data__content :is(p, li, td, dd) a:not(.hr-required-data__label a),
.hradistko-site .hr-required-data__content :is(p, li, td, dd) a:not(.hr-required-data__label a) :is(strong, b, span) {
	font-family: var(--hr-body) !important;
	font-size: var(--hr-step-0) !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}

.hradistko-site .hr-required-data__content :is(p, li, td, dd) a:not(.hr-required-data__label a) {
	color: var(--hr-green);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.hradistko-site .hr-required-data__content :is(p, li, td, dd) a:not(.hr-required-data__label a):is(:hover, :focus-visible) {
	color: var(--hr-green-deep);
}

/* Quick links have no underline: align their arrows with the text baseline. */
.hradistko-site .hr-card .hr-card__title a:is(:hover, :focus) {
	color: var(--hr-green);
	text-decoration: none;
	box-shadow: none;
}
.hradistko-site.hradistko-front-page .hr-quick-links__tail::after,
.hradistko-site.hradistko-front-page .hr-quick-links__nav a.hr-external-link::after {
	vertical-align: -0.22em;
}
