/* Grandliga Legal Insights Hub — stage version 2026-08-18a */
.gl-insights-hub,
.gl-insights-hub * { box-sizing: border-box; }

.gl-insights-hub {
	--gl-navy: #19374e;
	--gl-dark: #12273a;
	--gl-teal: #238174;
	--gl-teal-dark: #196960;
	--gl-muted: #677584;
	--gl-line: #d8e0e8;
	--gl-soft: #f6f9fb;
	--gl-card: #ffffff;
	--gl-mint: #eef8f6;
	width: min(1420px, calc(100% - 40px));
	margin: 0 auto 70px;
	padding-top: 155px;
	color: var(--gl-dark);
	font-family: inherit;
}

.gl-insights-hub h1,
.gl-insights-hub h2,
.gl-insights-hub h3 {
	margin: 0;
	padding: 0;
}

.gl-insights-hub h2,
.gl-insights-hub h3 {
	text-transform: none;
}

.gl-insights-hero,
.gl-insights-regions,
.gl-insights-cta {
	background: var(--gl-card);
	border: 1px solid var(--gl-line);
	box-shadow: 0 14px 34px rgba(20, 43, 63, .10);
}

.gl-insights-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 430px;
	gap: 46px;
	align-items: center;
	padding: 46px 50px 40px;
	border-radius: 28px;
	position: relative;
	overflow: hidden;
}

.gl-insights-hero::before,
.gl-insights-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px dotted rgba(25, 55, 78, .14);
	pointer-events: none;
}

.gl-insights-hero::before {
	width: 220px;
	height: 140px;
	left: -70px;
	top: -30px;
}

.gl-insights-hero::after {
	width: 250px;
	height: 170px;
	right: -90px;
	bottom: -55px;
}

.gl-insights-hero-content,
.gl-insights-search-box {
	position: relative;
	z-index: 2;
}

.gl-insights-hero h1 {
	color: var(--gl-navy);
	font-size: clamp(36px, 3.1vw, 46px);
	line-height: 1.10;
	font-weight: 800;
	letter-spacing: .005em;
	text-transform: uppercase;
}

.gl-insights-hero h1::after {
	content: "";
	display: block;
	width: 66px;
	height: 3px;
	margin-top: 14px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--gl-navy) 0, var(--gl-navy) 62%, var(--gl-teal) 62%, var(--gl-teal) 100%);
}

.gl-insights-hero p {
	max-width: 720px;
	margin: 18px 0 0;
	color: var(--gl-muted);
	font-size: 20px;
	line-height: 1.55;
}

.gl-insights-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
}

.gl-insights-search-field {
	display: flex;
	align-items: center;
	height: 62px;
	padding: 0 22px;
	background: var(--gl-soft);
	border: 2px solid #c6d2dc;
	border-radius: 32px;
}

.gl-insights-search-icon {
	width: 21px;
	height: 21px;
	border: 2px solid var(--gl-muted);
	border-radius: 50%;
	margin-right: 18px;
	position: relative;
	flex: 0 0 auto;
}

.gl-insights-search-icon::after {
	content: "";
	position: absolute;
	width: 12px;
	height: 2px;
	background: var(--gl-muted);
	transform: rotate(45deg);
	right: -8px;
	bottom: -5px;
	border-radius: 2px;
}

.gl-insights-search-input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--gl-navy);
	font-size: 18px;
	min-width: 0;
}

.gl-insights-search-input::placeholder { color: #8796a5; }

.gl-insights-search-submit,
.gl-insights-cta-button,
.gl-insights-popular-more {
	border: 0;
	background: var(--gl-teal);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gl-insights-search-submit {
	display: block;
	width: 260px;
	height: 60px;
	margin: 18px auto 0;
	border-radius: 30px;
	font-size: 16px;
}

.gl-insights-search-submit:hover,
.gl-insights-cta-button:hover {
	background: var(--gl-teal-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(35,129,116,.22);
}

.gl-insights-regions {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	margin-top: 32px;
	border-radius: 20px;
	overflow: hidden;
}

.gl-insights-region {
	min-height: 62px;
	padding: 10px 12px;
	border: 0;
	border-right: 1px solid var(--gl-line);
	background: #fff;
	color: var(--gl-navy);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.gl-insights-region:last-child { border-right: 0; }

.gl-insights-region:hover,
.gl-insights-region.is-active {
	background: var(--gl-mint);
	color: var(--gl-teal);
}

.gl-insights-popular,
.gl-insights-latest,
.gl-insights-search-results {
	margin-top: 42px;
}

.gl-insights-popular > h2,
.gl-insights-section-head h2,
.gl-insights-search-results-title {
	color: var(--gl-navy);
	font-size: 34px;
	line-height: 1.2;
	font-weight: 800;
}

.gl-insights-popular-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 22px;
}

.gl-insight-card {
	min-width: 0;
	background: #fff;
	border: 1px solid var(--gl-line);
	border-radius: 18px;
	box-shadow: 0 8px 22px rgba(20,43,63,.08);
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gl-insight-card:hover {
	transform: translateY(-2px);
	border-color: rgba(35,129,116,.45);
	box-shadow: 0 13px 28px rgba(20,43,63,.12);
}

.gl-insight-card-link {
	display: flex;
	flex-direction: column;
	min-height: 210px;
	height: 100%;
	padding: 20px;
	color: inherit;
	text-decoration: none;
}

.gl-insight-card-link:hover { color: inherit; }

.gl-insight-card-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
}

.gl-insight-geo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--gl-teal);
	font-size: 13px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.gl-insight-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 21px;
	line-height: 1;
}

.gl-insight-geo-name {
	display: inline-flex;
	align-items: center;
	min-height: 21px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gl-insight-bookmark {
	position: relative;
	width: 13px;
	height: 17px;
	border: 1.6px solid #47647b;
	border-bottom: 0;
	flex: 0 0 auto;
}

.gl-insight-bookmark::after {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: -4px;
	height: 8px;
	border-left: 1.6px solid #47647b;
	border-bottom: 1.6px solid #47647b;
	transform: rotate(-45deg);
	background: #fff;
}

.gl-insight-card h3 {
	margin-top: 16px;
	color: var(--gl-navy);
	font-size: 18px;
	line-height: 1.34;
	font-weight: 800;
}

.gl-insight-card-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 18px;
	color: var(--gl-muted);
	font-size: 13px;
	line-height: 1.2;
}

.gl-insight-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	color: var(--gl-navy);
	font-weight: 700;
}

.gl-insight-views svg {
	width: 18px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.gl-insights-popular-more {
	display: none;
}

.gl-insights-section-head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	margin-bottom: 22px;
}

.gl-insights-latest-arrows {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gl-insights-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--gl-line);
	border-radius: 50%;
	background: #fff;
	color: var(--gl-navy);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.gl-insights-arrow:hover {
	color: var(--gl-teal);
	border-color: rgba(35,129,116,.5);
	transform: translateY(-1px);
}

.gl-insights-arrow:disabled {
	opacity: .35;
	cursor: default;
	transform: none;
}

.gl-insights-latest-viewport {
	overflow: hidden;
	width: 100%;
}

.gl-insights-latest-track {
	display: flex;
	gap: 20px;
	transition: transform .35s ease;
	will-change: transform;
}

.gl-insight-card--latest {
	flex: 0 0 calc((100% - 60px) / 4);
}

.gl-insight-card--latest.gl-card-filtered {
	display: none;
}

.gl-insights-latest-dots,
.gl-insights-search-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 14px;
	margin-top: 18px;
}

.gl-insights-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d5e0e6;
	cursor: pointer;
}

.gl-insights-dot.is-active {
	background: var(--gl-teal);
	transform: scale(1.15);
}

.gl-insights-search-results-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 22px;
}

.gl-insights-no-results,
.gl-insights-latest-empty {
	padding: 24px;
	background: var(--gl-soft);
	border: 1px dashed var(--gl-line);
	border-radius: 16px;
	color: var(--gl-muted);
	font-size: 18px;
}

.gl-insights-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 520px) 230px;
	gap: 34px;
	align-items: center;
	margin-top: 58px;
	padding: 32px 36px;
	border-radius: 22px;
	background: #f7fcfb;
	border-color: #cbe1dd;
}

.gl-insights-cta h2 {
	color: var(--gl-navy);
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
}

.gl-insights-cta p {
	margin: 10px 0 0;
	color: var(--gl-muted);
	font-size: 16px;
	line-height: 1.5;
}

.gl-insights-cta-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

.gl-insights-cta-benefits span {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 18px;
	border-left: 1px solid var(--gl-line);
	color: var(--gl-navy);
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
}

.gl-insights-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 16px 24px;
	border-radius: 29px;
	font-size: 15px;
	text-align: center;
}

.gl-is-hidden { display: none !important; }

@media (max-width: 1180px) {
	.gl-insights-hub { width: min(100% - 28px, 1040px); }
	.gl-insights-hero { grid-template-columns: 1fr; gap: 28px; }
	.gl-insights-search-box { max-width: 620px; }
	.gl-insights-regions { grid-template-columns: repeat(4, 1fr); }
	.gl-insights-region { border-bottom: 1px solid var(--gl-line); }
	.gl-insights-popular-grid { grid-template-columns: repeat(2, 1fr); }
	.gl-insights-search-results-grid { grid-template-columns: repeat(2, 1fr); }
	.gl-insight-card--latest { flex-basis: calc((100% - 20px) / 2); }
	.gl-insights-cta { grid-template-columns: 1fr; }
	.gl-insights-cta-benefits { max-width: 650px; }
	.gl-insights-cta-button { width: min(300px, 100%); }
}

@media (max-width: 767px) {
	.gl-insights-hub {
		width: calc(100% - 24px);
		margin: 160px auto 48px;
	}

	.gl-insights-hero {
		padding: 28px 18px 28px;
		border-radius: 22px;
	}

	.gl-insights-hero h1 {
		display: block !important;
		font-size: 28px;
		line-height: 1.12;
		letter-spacing: 0;
	}

	.gl-insights-hero h1::after {
		width: 56px;
		height: 3px;
		margin-top: 12px;
	}

	.gl-insights-hero p {
		margin-top: 14px;
	}

	.gl-insights-hero p {
		font-size: 15px;
		line-height: 1.55;
	}

	.gl-insights-search-field {
		height: 52px;
		padding: 0 16px;
	}

	.gl-insights-search-input {
		font-size: 16px;
		-webkit-text-size-adjust: 100%;
	}

	.gl-insights-search-submit {
		width: min(100%, 266px);
		height: 54px;
		margin-top: 16px;
		font-size: 14px;
	}

	.gl-insights-regions {
		display: flex;
		overflow-x: auto;
		margin-top: 22px;
		border-radius: 18px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.gl-insights-regions::-webkit-scrollbar { display: none; }

	.gl-insights-region {
		flex: 0 0 auto;
		min-height: 52px;
		padding: 10px 18px;
		border-bottom: 0;
		font-size: 13px;
		white-space: nowrap;
	}

	.gl-insights-popular,
	.gl-insights-latest,
	.gl-insights-search-results {
		margin-top: 32px;
	}

	.gl-insights-popular > h2,
	.gl-insights-section-head h2,
	.gl-insights-search-results-title {
		font-size: 23px;
	}

	.gl-insights-popular-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 16px;
	}

	.gl-insights-popular-grid .gl-insight-card:nth-child(n+3) {
		display: none;
	}

	.gl-insights-popular-grid.is-expanded .gl-insight-card:nth-child(n+3) {
		display: block;
	}

	.gl-insights-popular-more {
		display: block;
		width: 100%;
		min-height: 50px;
		margin-top: 14px;
		border: 2px solid var(--gl-teal);
		border-radius: 25px;
		background: #fff;
		color: var(--gl-teal);
		font-size: 12px;
	}

	.gl-insights-popular-grid.is-expanded + .gl-insights-popular-more {
		display: none;
	}

	.gl-insight-card-link {
		min-height: 166px;
		padding: 16px;
	}

	.gl-insight-views { display: none; }

	.gl-insight-card h3 {
		margin-top: 12px;
		font-size: 15px;
		line-height: 1.34;
	}

	.gl-insight-card-meta {
		padding-top: 13px;
		font-size: 11px;
		gap: 5px;
	}

	.gl-insight-geo { font-size: 11px; gap: 6px; }
	.gl-insight-flag { font-size: 18px; }

	.gl-insights-latest-arrows { display: none; }

	.gl-insights-latest-track { gap: 12px; }
	.gl-insight-card--latest {
		flex: 0 0 calc((100% - 12px) / 2);
	}

	.gl-insight-card--latest .gl-insight-card-link {
		min-height: 206px;
		padding: 12px;
	}

	.gl-insight-card--latest h3 {
		font-size: 12px;
		line-height: 1.3;
	}

	.gl-insight-card--latest .gl-insight-card-meta {
		flex-wrap: nowrap;
		font-size: 11px;
		gap: 5px;
	}

	.gl-insight-card--latest .gl-insight-views { display: none; }
	.gl-insight-card--latest .gl-insight-geo { font-size: 11px; gap: 6px; }
	.gl-insight-card--latest .gl-insight-flag { font-size: 18px; }

	.gl-insights-search-results-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-top: 16px;
	}

	.gl-insights-search-results-grid .gl-insight-card-link {
		min-height: 206px;
		padding: 12px;
	}

	.gl-insights-search-results-grid h3 {
		font-size: 12px;
	}

	.gl-insights-search-results-grid .gl-insight-card-meta {
		flex-wrap: wrap;
		font-size: 9.5px;
	}

	.gl-insights-cta {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-top: 38px;
		padding: 24px 18px;
		border-radius: 20px;
	}

	.gl-insights-cta h2 { font-size: 22px; }
	.gl-insights-cta p { font-size: 14px; }

	.gl-insights-cta-benefits { display: none; }

	.gl-insights-cta-button {
		width: 100%;
		min-height: 54px;
		border-radius: 27px;
		font-size: 14px;
	}
}


/* Hotfix 2026-08-18b */
.gl-insight-bookmark { display: none !important; }

/* Latest viewport padding prevents clipped mobile borders while swiping */
.gl-insights-latest-viewport {
	padding: 2px 2px 8px;
	margin: -2px -2px -8px;
}
.gl-insights-latest-track {
	align-items: stretch;
}

/* Slightly stronger card outline for cleaner mobile edges */
.gl-insight-card {
	outline: 1px solid transparent;
	outline-offset: -1px;
}


/* Hotfix 2026-08-18c — mobile spacing + Popular counters */
@media (max-width: 767px) {
	/*
	 * Give the fixed mobile header a little more breathing room,
	 * but keep the Legal Insights title close to the top edge of its own hero card.
	 */
	.gl-insights-hub {
		margin-top: 190px;
	}

	.gl-insights-hero {
		padding-top: 28px;
	}

	.gl-insights-hero h1 {
		margin-top: 0;
	}

	/*
	 * Popular cards are tall enough for the full counter.
	 * Latest remains intentionally compact and keeps views hidden.
	 */
	.gl-insights-popular .gl-insight-views {
		display: inline-flex;
	}

	.gl-insight-card--latest .gl-insight-views {
		display: none;
	}
}


/* Hotfix 2026-08-18d — two small mobile-only corrections */
@media (max-width: 767px) {
	/* Reduce the visible gap between the fixed header and the Legal Insights block by about half. */
	.gl-insights-hub {
		margin-top: 170px;
	}

	/*
	 * Keep the separator dot vertically centered even when the date or
	 * localized reading-time label wraps to two lines.
	 */
	.gl-insight-card--latest .gl-insight-card-meta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		column-gap: 5px;
	}

	.gl-insight-card--latest .gl-insight-meta-sep {
		display: flex;
		align-self: stretch;
		align-items: center;
		justify-content: center;
		line-height: 1;
	}

	.gl-insight-card--latest .gl-insight-card-meta > span:first-child,
	.gl-insight-card--latest .gl-insight-card-meta > .gl-insight-meta-sep + span {
		min-width: 0;
	}
}


/* Hotfix 2026-08-18e — force separator to the true vertical center */
@media (max-width: 767px) {
	.gl-insight-card--latest .gl-insight-card-meta {
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		column-gap: 18px;
	}

	.gl-insight-card--latest .gl-insight-card-meta > span:first-child {
		grid-column: 1;
		min-width: 0;
	}

	.gl-insight-card--latest .gl-insight-card-meta > .gl-insight-meta-sep + span {
		grid-column: 2;
		min-width: 0;
	}

	.gl-insight-card--latest .gl-insight-meta-sep {
		position: absolute;
		left: 50%;
		top: 50%;
		display: block;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		line-height: 1;
		transform: translate(-50%, -50%);
	}
}


/* Hotfix 2026-08-18f — optical centering of the mobile meta separator */
@media (max-width: 767px) {
	/*
	 * The text bullet character has its own font baseline, so even at top:50%
	 * it looks optically too high. Replace it visually with a real CSS circle.
	 */
	.gl-insight-card--latest .gl-insight-meta-sep {
		left: 50%;
		top: 50%;
		width: 4px;
		height: 4px;
		font-size: 0;
		line-height: 0;
		background: var(--gl-muted);
		border-radius: 50%;
		transform: translate(-50%, -50%);
	}
}


/* Hotfix 2026-08-18g — center separator against the wrapped reading-time block */
@media (max-width: 767px) {
	/*
	 * Safari can calculate the meta row height in a way that leaves the absolutely
	 * positioned separator visually aligned with the first text line.
	 * Hide the standalone separator and draw the dot from the reading-time span
	 * itself, so 50% is always based on the real one- or two-line text block.
	 */
	.gl-insight-card--latest .gl-insight-meta-sep {
		display: none !important;
	}

	.gl-insight-card--latest .gl-insight-meta-sep + span {
		position: relative;
		grid-column: 2;
		padding-left: 11px;
	}

	.gl-insight-card--latest .gl-insight-meta-sep + span::before {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		width: 4px;
		height: 4px;
		border-radius: 50%;
		background: var(--gl-muted);
		transform: translate(-50%, -50%);
	}
}


/* === 2026-08-19 u2: unified hub heading hierarchy === */
.gl-insights-hub h2 {
    color: var(--gl-navy) !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.gl-insights-hub h3 {
    text-transform: none !important;
}

.gl-insight-flag {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-variant-emoji: emoji;
}

@media (max-width: 600px) {
    .gl-insights-hub h2 {
        font-size: 24px !important;
        line-height: 1.22 !important;
    }
}


/* v4: premium vector geo markers. Country flags use true 4:3 SVG artwork;
 * Europe/Worldwide use dedicated local vector icons. */
.gl-insight-flag img {
    display: block !important;
    width: 24px !important;
    height: 18px !important;
    object-fit: contain !important;
    border-radius: 2px;
    image-rendering: auto;
}

@media (max-width: 600px) {
    .gl-insight-flag img {
        width: 22px !important;
        height: 16.5px !important;
    }
}

/* v5: Worldwide globe is circular and visually lighter than rectangular flags.
 * Scale only this asset so its perceived size matches the country markers
 * without changing the spacing or size of the other flags. */
.gl-insight-flag img[src*="world-premium"] {
    transform: scale(1.28);
    transform-origin: center center;
}

@media (max-width: 600px) {
    .gl-insight-flag img[src*="world-premium"] {
        transform: scale(1.25);
    }
}

/* === 2026-08-20 v13: Latest Insights arrows aligned to the right edge === */
@media (min-width: 768px) {
    .gl-insights-section-head {
        width: 100%;
        justify-content: space-between;
    }
    .gl-insights-latest-arrows {
        margin-left: auto;
    }
}


/* === 2026-08-20 v15: force Latest Insights navigation to the far right === */
@media (min-width: 768px) {
    .gl-insights-latest .gl-insights-section-head {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 24px !important;
    }
    .gl-insights-latest .gl-insights-section-head > h2 {
        margin-right: auto !important;
    }
    .gl-insights-latest .gl-insights-latest-arrows {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
}

/* === 2026-08-20 v16: Latest navigation at the far edge === */
@media (min-width: 768px) {
    .gl-insights-hub .gl-insights-latest .gl-insights-section-head {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .gl-insights-hub .gl-insights-latest .gl-insights-latest-arrows {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
}

/* ==========================================================================
   GrandLiga Legal Insights Hub — Latest 2-row carousel v17
   Desktop: 4 columns x 2 rows = 8 items per page.
   Tablet: 2 columns x 2 rows = 4 items per page.
   Mobile remains the approved 2-card swipe layout.
   ========================================================================== */

@media screen and (min-width: 1181px) {
    .gl-insights-latest-track {
        display: grid !important;
        grid-template-rows: repeat(2, minmax(210px, auto));
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 60px) / 4);
        gap: 20px !important;
        align-items: stretch;
    }

    .gl-insight-card--latest {
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .gl-insight-card--latest .gl-insight-card-link {
        min-height: 210px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1180px) {
    .gl-insights-latest-track {
        display: grid !important;
        grid-template-rows: repeat(2, minmax(206px, auto));
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 20px) / 2);
        gap: 20px !important;
        align-items: stretch;
    }

    .gl-insight-card--latest {
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
    }
}

@media screen and (max-width: 767px) {
    .gl-insights-latest-track {
        display: flex !important;
        grid-template-rows: none;
        grid-auto-flow: initial;
        grid-auto-columns: auto;
    }

    .gl-insight-card--latest {
        flex: 0 0 calc((100% - 12px) / 2) !important;
    }
}

/* ==========================================================================
   GrandLiga Legal Insights Hub — Latest cards polish v17.1
   ========================================================================== */

/* Latest cards rest cleanly without the rectangular clipped shadow band. */
.gl-insights-latest .gl-insight-card--latest {
    box-shadow: none !important;
}

/*
 * Give hover elevation enough vertical room inside the horizontally clipped
 * carousel. A rounded viewport prevents any clipping edge from looking square.
 */
.gl-insights-latest-viewport {
    padding-top: 8px !important;
    padding-bottom: 18px !important;
    margin-top: -8px !important;
    margin-bottom: -18px !important;
    border-radius: 22px;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.gl-insights-latest-track {
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform .28s cubic-bezier(.22,.61,.36,1) !important;
}

.gl-insights-latest-track.is-dragging {
    transition: none !important;
    cursor: grabbing;
}

@media (hover:hover) and (pointer:fine) {
    .gl-insights-latest .gl-insight-card--latest:hover {
        border-color: rgba(35,129,116,.48) !important;
        box-shadow:
            0 12px 24px -9px rgba(20,43,63,.22),
            0 3px 9px -5px rgba(20,43,63,.14) !important;
    }
}

@media (hover:none) {
    .gl-insights-latest .gl-insight-card--latest:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}



/* ==========================================================================
   GrandLiga Legal Insights Hub — mobile swipe feel v17.2
   Softer, less abrupt snap for iPhone/mobile.
   ========================================================================== */

.gl-insights-latest-track {
    transition:
        transform .46s cubic-bezier(.16, 1, .30, 1) !important;
    will-change: transform;
    transform-style: preserve-3d;
}

.gl-insights-latest-track.is-dragging {
    transition: none !important;
}



/* ==========================================================================
   GrandLiga Legal Insights Hub — native mobile carousel v17.3
   Mobile movement is delegated to the browser's native inertial scroller.
   JS no longer simulates touch physics.
   ========================================================================== */

@media screen and (max-width: 767px) {
    .gl-insights-latest-viewport {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        touch-action: auto !important;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding-top: 8px !important;
        padding-bottom: 18px !important;
        margin-top: -8px !important;
        margin-bottom: -18px !important;
        border-radius: 22px;
    }

    .gl-insights-latest-viewport::-webkit-scrollbar {
        display: none;
    }

    .gl-insights-latest-track {
        display: flex !important;
        width: 100% !important;
        gap: 12px !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }

    .gl-insights-latest-track.is-dragging {
        transform: none !important;
        transition: none !important;
        cursor: auto !important;
    }

    .gl-insight-card--latest {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        scroll-snap-stop: normal;
    }

    .gl-insight-card--latest.gl-mobile-snap-start {
        scroll-snap-align: start;
    }
}



/* === Fixed-header clearance v1.4 ===
 * Use padding instead of a first-child top margin so the offset cannot collapse.
 */
@media (max-width: 767px) {
    .gl-insights-hub {
        margin-top: 0 !important;
        padding-top: 165px !important;
    }
}


/* === Hub fixed-header clearance v1.5 === */
@media (min-width: 768px) {
    .gl-insights-hub {
        margin-top: 0 !important;
        padding-top: 155px !important;
    }
}

@media (max-width: 767px) {
    .gl-insights-hub {
        margin-top: 0 !important;
        padding-top: 165px !important;
    }
}


/* === Final Guide/Insights visual spacing alignment v1.6 ===
 * On the actual desktop screenshots Legal Insights renders about 23px lower
 * than Guide Hub despite sharing the same nominal hub padding. Compensate the
 * visual result directly so the hero cards align.
 */
@media (min-width: 768px) {
    .gl-insights-hub {
        margin-top: 0 !important;
        padding-top: 132px !important;
    }
}


/* ==========================================================================
   Legal Insights refinements — 2026-08-27
   ========================================================================== */

/* Mobile country/region label: show a proper trailing ellipsis. */
@media (max-width: 767px) {
    .gl-insights-hub .gl-insight-card-top,
    .gl-insights-hub .gl-insight-geo {
        min-width: 0;
        max-width: 100%;
    }

    .gl-insights-hub .gl-insight-geo {
        overflow: hidden;
    }

    .gl-insights-hub .gl-insight-geo-name {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/*
 * Search results:
 * desktop = four columns. 1-4 results form one row; 5-8 form two rows.
 * Pagination starts only after eight results.
 */
@media (min-width: 1181px) {
    .gl-insights-search-results-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Reuse the existing circular navigation language for search results. */
.gl-insights-search-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .gl-insights-search-arrows {
        display: none;
    }
}


/* ==========================================================================
   v29.1 — mobile geo-label optical centering
   Preserve the new ellipsis behaviour, but align the text vertically with
   the 18px flag exactly as before.
   ========================================================================== */
@media (max-width: 767px) {
    .gl-insights-hub .gl-insight-geo-name {
        display: block;
        align-self: center;
        min-width: 0;
        min-height: 18px;
        height: 18px;
        line-height: 18px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
