/* Official IAL standings: conferences + GB, logos, high-contrast on dark panel */

/* Premier League / standings URL: less dead air under global header (theme wrap + first Elementor spacers). */
.ial-official-standings-page .page_content_wrap,
.ial-official-standings-page .content_wrap {
	padding-top: 0 !important;
}

.ial-official-standings-page .post_header_wrap {
	margin-bottom: 0.35rem !important;
	padding-bottom: 0 !important;
}

.ial-official-standings-page .entry-content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-spacer-inner,
.ial-official-standings-page .post_content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-spacer-inner {
	height: 8px !important;
	min-height: 0 !important;
}

.ial-official-standings-page .entry-content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(2) .elementor-spacer-inner,
.ial-official-standings-page .post_content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(2) .elementor-spacer-inner {
	height: 12px !important;
	min-height: 0 !important;
}

.ial-official-standings-page .entry-content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(3),
.ial-official-standings-page .post_content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(3) {
	margin-top: 0 !important;
	padding-bottom: 0 !important;
	padding-top: 0 !important;
}

.ial-official-standings-page .entry-content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(4) .elementor-spacer-inner,
.ial-official-standings-page .post_content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(4) .elementor-spacer-inner {
	height: 8px !important;
	min-height: 0 !important;
}

@media (max-width: 767px) {
	.ial-official-standings-page .entry-content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-spacer-inner,
	.ial-official-standings-page .post_content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(1) .elementor-spacer-inner {
		height: 4px !important;
	}

	.ial-official-standings-page .entry-content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(2) .elementor-spacer-inner,
	.ial-official-standings-page .post_content .elementor > .elementor-section-wrap > .elementor-top-section:nth-child(2) .elementor-spacer-inner {
		height: 8px !important;
	}

	.ial-official-standings-page .post_header_wrap {
		margin-bottom: 0.2rem !important;
	}
}

/* Elementor / theme columns often use overflow:hidden — outer glows get clipped; we use inset auras + title pills. */
.elementor-element .ial-official-standings,
.elementor-widget-shortcode .ial-official-standings,
.elementor-widget-html .ial-official-standings {
	overflow: visible !important;
}

/* Flex columns default to min-width:auto — stops nested tables from shrinking; allows horizontal scroll inside table-wrap. */
.elementor-widget-shortcode:has(.ial-official-standings),
.elementor-widget-wrap:has(.ial-official-standings),
.elementor-column:has(.ial-official-standings) {
	max-width: 100%;
	min-width: 0;
}

.ial-official-standings {
	--ial-os-red: #e53935;
	--ial-os-red-dim: #b71c1c;
	--ial-os-glow: rgba(229, 57, 53, 0.45);
	--ial-os-panel: #0d0d0f;
	--ial-os-panel-2: #141018;
	--ial-os-text: #f5f5f7;
	--ial-os-text-soft: #e6e6ea;
	--ial-os-muted: rgba(245, 245, 247, 0.72);
	--ial-os-link: #ff8a80;
	--ial-os-link-hover: #ffcdd2;
	--ial-os-row: rgba(255, 255, 255, 0.06);
	--ial-os-row-alt: rgba(255, 255, 255, 0.1);
	--ial-os-row-hover: rgba(229, 57, 53, 0.18);
	box-sizing: border-box;
	color: var(--ial-os-text) !important;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	margin: 0 auto 2rem;
	max-width: min(960px, 100%);
	overflow: visible;
	position: relative;
	width: 100%;
	z-index: 1;
}

.ial-official-standings *,
.ial-official-standings *::before,
.ial-official-standings *::after {
	box-sizing: border-box;
}

/* Kill inherited theme colors inside the widget (headings included — themes often force dark h2). */
.ial-official-standings,
.ial-official-standings p,
.ial-official-standings span,
.ial-official-standings td,
.ial-official-standings th,
.ial-official-standings caption,
.ial-official-standings a,
.ial-official-standings h1,
.ial-official-standings h2,
.ial-official-standings h3,
.ial-official-standings .ial-os-team__name {
	color: var(--ial-os-text) !important;
	-webkit-text-fill-color: var(--ial-os-text) !important;
}

.ial-official-standings__brand {
	align-items: center;
	display: flex;
	justify-content: center;
	margin: 0 auto 0.35rem;
	max-width: min(273px, 47vw);
	text-align: center;
	width: 100%;
}

.ial-official-standings__ial-logo {
	display: block;
	filter:
		drop-shadow(0 0 18px rgba(255, 255, 255, 0.2))
		drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
	height: auto;
	margin: 0;
	max-width: 100%;
	width: 100%;
}

.ial-official-standings__hint {
	color: var(--ial-os-muted) !important;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.45;
	margin: 0 0 1rem;
	padding-top: 0.15rem;
	text-align: center;
	text-transform: uppercase;
}

.ial-official-standings__frame {
	background: linear-gradient(165deg, #1a0a10 0%, var(--ial-os-panel) 42%, #100812 100%);
	border: 3px solid var(--ial-os-red-dim);
	border-radius: 10px;
	box-shadow:
		0 14px 44px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	overflow: visible;
	padding: 1.25rem 1rem 1.5rem;
	position: relative;
	transition:
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.ial-official-standings__frame:hover {
	border-color: var(--ial-os-red);
	box-shadow:
		0 18px 50px rgba(0, 0, 0, 0.58),
		0 0 0 1px var(--ial-os-glow),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
	.ial-official-standings__frame {
		padding: 1.5rem 1.35rem 1.75rem 1.5rem;
	}
}

.ial-official-standings__layout {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0.85rem;
}

.ial-official-standings__main {
	flex: 1 1 auto;
	min-width: 0;
}

.ial-official-standings__ribbon {
	align-self: center;
	color: var(--ial-os-muted) !important;
	flex: 0 0 auto;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.2;
	padding: 0.35rem 0;
	text-orientation: mixed;
	text-transform: uppercase;
	transform: rotate(180deg);
	user-select: none;
	writing-mode: vertical-rl;
}

@media (max-width: 520px) {
	.ial-official-standings__ribbon {
		display: none;
	}
}

.ial-official-standings__region {
	margin-bottom: 1.45rem;
}

.ial-official-standings__region:last-child {
	margin-bottom: 0;
}

/* North America: red / white / blue — inset glow (visible when Elementor clips outer shadows) */
.ial-official-standings__region--na {
	animation: ial-os-pulse-na 5.5s ease-in-out infinite;
	background:
		linear-gradient(
			145deg,
			rgba(13, 71, 161, 0.35) 0%,
			rgba(25, 25, 35, 0.72) 40%,
			rgba(183, 28, 28, 0.32) 100%
		);
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 14px;
	box-shadow:
		inset 0 0 55px rgba(229, 57, 53, 0.35),
		inset 0 0 75px rgba(13, 71, 161, 0.28),
		inset 0 0 40px rgba(255, 255, 255, 0.12),
		inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	margin-bottom: 1.65rem;
	overflow: visible;
	padding: 1rem 0.65rem 1.15rem;
}

.ial-official-standings__region--na .ial-official-standings__region-title-inner {
	border: 1px solid rgba(66, 133, 244, 0.55);
	box-shadow:
		0 0 24px rgba(229, 57, 53, 0.45),
		0 0 20px rgba(255, 255, 255, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ial-official-standings__region--na .ial-official-standings__table-wrap {
	box-shadow:
		inset 0 0 24px rgba(13, 71, 161, 0.22),
		inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Europe: red / purple / gold — inset glow */
.ial-official-standings__region--eu {
	animation: ial-os-pulse-eu 5.5s ease-in-out infinite;
	background: linear-gradient(
		145deg,
		rgba(106, 27, 154, 0.38) 0%,
		rgba(25, 25, 35, 0.72) 45%,
		rgba(183, 28, 28, 0.28) 100%
	);
	border: 2px solid rgba(255, 215, 0, 0.4);
	border-radius: 14px;
	box-shadow:
		inset 0 0 55px rgba(156, 39, 176, 0.32),
		inset 0 0 70px rgba(211, 47, 47, 0.22),
		inset 0 0 45px rgba(255, 215, 0, 0.14),
		inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	margin-bottom: 0;
	overflow: visible;
	padding: 1rem 0.65rem 1.15rem;
}

.ial-official-standings__region--eu .ial-official-standings__region-title-inner {
	border: 1px solid rgba(255, 215, 0, 0.45);
	box-shadow:
		0 0 22px rgba(156, 39, 176, 0.5),
		0 0 18px rgba(211, 47, 47, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ial-official-standings__region--eu .ial-official-standings__table-wrap {
	box-shadow:
		inset 0 0 24px rgba(156, 39, 176, 0.2),
		inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@keyframes ial-os-pulse-na {
	0%,
	100% {
		box-shadow:
			inset 0 0 48px rgba(229, 57, 53, 0.28),
			inset 0 0 68px rgba(13, 71, 161, 0.22),
			inset 0 0 36px rgba(255, 255, 255, 0.1),
			inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	}
	50% {
		box-shadow:
			inset 0 0 62px rgba(229, 57, 53, 0.42),
			inset 0 0 88px rgba(13, 71, 161, 0.34),
			inset 0 0 48px rgba(255, 255, 255, 0.16),
			inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	}
}

@keyframes ial-os-pulse-eu {
	0%,
	100% {
		box-shadow:
			inset 0 0 48px rgba(156, 39, 176, 0.26),
			inset 0 0 62px rgba(211, 47, 47, 0.18),
			inset 0 0 40px rgba(255, 215, 0, 0.12),
			inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	}
	50% {
		box-shadow:
			inset 0 0 64px rgba(156, 39, 176, 0.4),
			inset 0 0 78px rgba(211, 47, 47, 0.28),
			inset 0 0 52px rgba(255, 215, 0, 0.2),
			inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	}
}

.ial-official-standings__region-title {
	font-weight: 900;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 0.75rem;
	text-align: center;
	text-transform: uppercase;
}

.ial-official-standings .ial-official-standings__region-title-inner {
	background: rgba(0, 0, 0, 0.82) !important;
	border-radius: 10px;
	color: #ffffff !important;
	display: inline-block;
	font-size: 1.3rem !important;
	-webkit-text-fill-color: #ffffff !important;
	font-weight: 900;
	letter-spacing: 0.14em;
	line-height: 1.25;
	max-width: 100%;
	padding: 0.45em 1em 0.5em;
	text-shadow: none;
}

@media (min-width: 640px) {
	.ial-official-standings .ial-official-standings__region-title-inner {
		font-size: 1.404rem !important;
	}
}

.ial-official-standings__table-wrap {
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-color: var(--ial-os-red-dim) rgba(255, 255, 255, 0.08);
	scrollbar-width: thin;
}

.ial-official-standings table {
	border-collapse: separate;
	border-spacing: 0;
	color: var(--ial-os-text) !important;
	font-size: 0.78rem;
	text-transform: uppercase;
	width: 100%;
}

@media (min-width: 640px) {
	.ial-official-standings table {
		font-size: 0.85rem;
	}
}

.ial-official-standings thead th {
	background: linear-gradient(180deg, #c62828 0%, #8e1b1b 100%) !important;
	border: 1px solid rgba(0, 0, 0, 0.35) !important;
	color: #fff !important;
	font-weight: 800;
	letter-spacing: 0.07em;
	padding: 0.65rem 0.45rem;
	text-align: center;
}

.ial-official-standings thead th:first-child {
	border-radius: 8px 0 0 0;
	width: 3rem;
}

.ial-official-standings thead th:last-child {
	border-radius: 0 8px 0 0;
}

.ial-official-standings thead th:nth-child(2) {
	text-align: left;
	padding-left: 0.75rem;
}

.ial-official-standings tbody td {
	background: var(--ial-os-row) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: var(--ial-os-text) !important;
	font-weight: 700;
	padding: 0.45rem 0.4rem;
	text-align: center;
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.15s ease;
	vertical-align: middle;
}

.ial-official-standings tbody td:nth-child(2) {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	text-align: left;
}

.ial-official-standings tbody tr:nth-child(even) td {
	background: var(--ial-os-row-alt) !important;
}

.ial-official-standings tbody tr.ial-os-team-row {
	cursor: pointer;
}

.ial-official-standings tbody tr.ial-os-team-row:not([data-team-url]) {
	cursor: default;
}

.ial-official-standings tbody tr.ial-os-team-row:hover td {
	background: var(--ial-os-row-hover) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ial-official-standings tbody tr.ial-os-team-row:focus-within td {
	background: var(--ial-os-row-hover) !important;
}

.ial-official-standings .ial-os-team {
	align-items: center;
	border-radius: 6px;
	color: var(--ial-os-link) !important;
	display: inline-flex;
	gap: 0.55rem;
	max-width: 100%;
	padding: 0.2rem 0.35rem 0.2rem 0.15rem;
	text-decoration: none !important;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.15s ease;
}

.ial-official-standings .ial-os-team:hover,
.ial-official-standings .ial-os-team:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: var(--ial-os-link-hover) !important;
	outline: none;
	transform: translateX(2px);
}

.ial-official-standings .ial-os-team:focus-visible {
	box-shadow: 0 0 0 2px var(--ial-os-panel), 0 0 0 4px var(--ial-os-red);
}

.ial-official-standings .ial-os-team__logo {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	display: inline-flex;
	flex: 0 0 auto;
	height: 40px;
	justify-content: center;
	line-height: 0;
	overflow: hidden;
	padding: 4px;
	transition: transform 0.2s ease;
	vertical-align: middle;
	width: 40px;
}

@media (min-width: 640px) {
	.ial-official-standings .ial-os-team__logo {
		height: 44px;
		padding: 5px;
		width: 44px;
	}
}

.ial-official-standings tbody tr.ial-os-team-row:hover .ial-os-team__logo {
	transform: scale(1.05);
}

.ial-official-standings .ial-os-team__logo img {
	display: block;
	flex-shrink: 0;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
	width: auto;
}

.ial-official-standings .ial-os-team__name {
	color: inherit !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
	word-break: break-word;
}

.ial-official-standings .ial-os-team--static {
	cursor: default;
	pointer-events: none;
}

.ial-official-standings .ial-os-team--static .ial-os-team__name {
	color: var(--ial-os-text) !important;
}

.ial-official-standings .ial-os-gb {
	color: var(--ial-os-text-soft) !important;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
	.ial-official-standings__frame,
	.ial-official-standings tbody td,
	.ial-official-standings .ial-os-team,
	.ial-official-standings .ial-os-team__logo {
		transition: none;
	}

	.ial-official-standings__region--na,
	.ial-official-standings__region--eu {
		animation: none !important;
	}
}

/* Classic WP widget (e.g. Footer Widgets below “Follow Us”) */
aside.ial-official-standings-widget .ial-official-standings,
.widget.ial-official-standings-widget .ial-official-standings {
	margin-bottom: 1.25rem;
	margin-top: 0.35rem;
	max-width: 100%;
}

.footer_wrap aside.ial-official-standings-widget .widget_title,
.scheme_self.footer_wrap aside.ial-official-standings-widget .widget_title {
	margin-bottom: 0.65rem;
}

.sc_layouts_widgets_inner aside.ial-official-standings-widget--injected {
	margin-top: 1.25rem;
	max-width: 100%;
}

.sc_layouts_widgets_inner aside.ial-official-standings-widget--injected .ial-official-standings {
	max-width: 100%;
}

/* About block moved below standings (see wp_footer script) */
.ial-official-standings-about--below-standings {
	margin-bottom: 0;
	margin-top: 1.25rem;
}

@media (max-width: 767px) {
	.ial-official-standings {
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.ial-official-standings__frame {
		padding: 0.9rem 0.65rem 1.15rem;
	}

	.ial-official-standings__hint {
		font-size: 0.72rem;
		hyphens: auto;
		line-height: 1.5;
		padding-left: 0.25rem;
		padding-right: 0.25rem;
	}

	.ial-official-standings__region--na,
	.ial-official-standings__region--eu {
		padding: 0.85rem 0.45rem 1rem;
	}

	.ial-official-standings table {
		font-size: 0.7rem;
	}

	.ial-official-standings thead th {
		padding: 0.5rem 0.3rem;
	}

	.ial-official-standings tbody td {
		padding: 0.4rem 0.28rem;
	}

	.ial-official-standings .ial-os-team__logo {
		height: 34px;
		padding: 3px;
		width: 34px;
	}

	.ial-official-standings .ial-os-team {
		gap: 0.4rem;
		padding: 0.15rem 0.2rem 0.15rem 0.1rem;
	}

	.ial-official-standings-about--below-standings .elementor-container {
		padding-left: max(1rem, env(safe-area-inset-left, 0));
		padding-right: max(1rem, env(safe-area-inset-right, 0));
	}

	.ial-official-standings-about--below-standings .sc_item_title {
		line-height: 1.2;
	}

	.ial-official-standings-about--below-standings .sc_item_descr,
	.ial-official-standings-about--below-standings .elementor-widget-text-editor {
		font-size: 0.95rem;
		line-height: 1.55;
	}
}
