/*
 * Copamex Site -- contact sections (1.19.0; drawn as cards in 1.20.0).
 *
 * A release's CONTACTO (`[copamex_contacto]`, `ReleaseContact`) and the
 * company's COPAMEX MUSIC (`[copamex_empresa]`, `CompanyInformation`). Two
 * separate sections with the same look: a card with a small uppercase
 * heading, then one row per way to reach them -- an icon in a tinted disc,
 * what it is, and the value. The whole row is the link.
 *
 * Drawn with the site's design tokens (`--ilm-color-*`, `--ilm-radius-*`,
 * from the Builder's Global Styles), with fallbacks for a site without
 * them; where the cards sit on the page is the Builder's (a Grid of one or
 * two columns). Each card fills its cell's height, so two side by side are
 * the same height, and one alone is one card -- never an empty box beside
 * it. Plain CSS, no build step.
 */

.copamex-contact {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	block-size: 100%;
	max-inline-size: 100%;
	margin: 0;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background-color: var(--ilm-color-surface, rgb(127 127 127 / 0.06));
	border: 1px solid var(--ilm-color-border, rgb(127 127 127 / 0.25));
	border-radius: var(--ilm-radius-lg, 16px);
	color: var(--ilm-color-fg, inherit);
}

.copamex-contact .copamex-contact__title {
	margin: 0;
	color: var(--ilm-color-link, currentColor);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.copamex-contact .copamex-contact__intro {
	margin: -0.5rem 0 0;
	color: var(--ilm-color-fg-muted, inherit);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.copamex-contact .copamex-contact__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.copamex-contact .copamex-contact__item {
	margin: 0;
	padding: 0;
}

.copamex-contact .copamex-contact__item::before {
	content: none;
}

/*
 * One row: the icon, then what it is above the value. A link fills the row,
 * so the target is the whole row (well over 44px tall), with the theme's
 * radius for its hover tint and focus ring.
 */
.copamex-contact .copamex-contact__action {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-block-size: 3.5rem;
	margin-inline: -0.625rem;
	padding: 0.5rem 0.625rem;
	border-radius: var(--ilm-radius-md, 10px);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.copamex-contact a.copamex-contact__action:hover {
	background-color: rgb(127 127 127 / 0.12);
}

.copamex-contact a.copamex-contact__action:hover .copamex-contact__value {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.copamex-contact a.copamex-contact__action:focus-visible {
	outline: 2px solid var(--ilm-color-focus, var(--ilm-color-link, currentColor));
	outline-offset: 2px;
}

.copamex-contact .copamex-contact__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: 50%;
	background-color: rgb(209 10 10 / 0.16);
	background-color: color-mix(in srgb, var(--ilm-color-primary, #d10a0a) 18%, transparent);
	color: var(--ilm-color-link, currentColor);
}

.copamex-contact .copamex-contact__glyph {
	display: block;
	inline-size: 1.25rem;
	block-size: 1.25rem;
}

.copamex-contact .copamex-contact__text {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
}

.copamex-contact .copamex-contact__label {
	color: var(--ilm-color-fg-muted, inherit);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.copamex-contact .copamex-contact__value {
	color: var(--ilm-color-fg, inherit);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
	.copamex-contact .copamex-contact__action {
		transition: none;
	}
}
