/*
 * Public reconciliation layer
 * Loaded after dashboard.css. It intentionally touches only the three
 * sources of visual drift found in the public platform: ordinary Gutenberg
 * copy, article-card copy and the native result table container.
 * Module colours, borders, shadows, controls and JavaScript remain owned by
 * dashboard.css.
 */

/* White is the page canvas only. Existing modules keep their own colours. */
body.gs-dashboard-page,
.gs-dashboard.gs-public-platform,
.gs-dashboard.gs-public-platform .gs-main { background: #fff; }

/* The public platform is a canvas, never a card. Module frames stay intact. */
.gs-dashboard.gs-public-platform {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* This is the historical outer card around every page. It is a container,
 * not content, so it must not draw a card edge on the public platform. */
.gs-dashboard.gs-public-platform .gs-platform-content {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

/* Normal Gutenberg content outside generated dashboard components.
 * A regular Group is a reading column, not a second design system. */
.gs-dashboard.gs-public-platform .gs-platform-article > .wp-block-group:not(:has(.gs-dashboard-module, .gs-native-results-part, .gs-native-article-card, .gs-article-slide, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card)) {
	width: 100% !important;
	max-width: 760px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

/* A legacy text Group may still carry old Gutenberg background/card settings.
 * Clear those only when the Group is ordinary H2/H3 + paragraph content;
 * dynamic modules, images, charts and tables do not match this selector. */
.gs-dashboard.gs-public-platform .gs-platform-article :where(.wp-block-group, .wp-block-column):not(:has(.gs-dashboard-module, .gs-native-results-part, .gs-native-article-card, .gs-article-slide, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card)):has(:is(h2, h3)):has(p) {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 760px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	text-align: left !important;
}
.gs-dashboard.gs-public-platform .gs-platform-article :where(.wp-block-group, .wp-block-column):not(:has(.gs-dashboard-module, .gs-native-results-part, .gs-native-article-card, .gs-article-slide, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card)) > h2 {
	margin: 0 0 16px !important;
	color: var(--gs-primary) !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(32px, 3vw, 40px) !important;
	font-weight: 500 !important;
	line-height: 1.12 !important;
	letter-spacing: -.025em !important;
}
.gs-dashboard.gs-public-platform .gs-platform-article :where(.wp-block-group, .wp-block-column):not(:has(.gs-dashboard-module, .gs-native-results-part, .gs-native-article-card, .gs-article-slide, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card)) > h3 {
	margin: 0 0 12px !important;
	color: var(--gs-primary) !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(24px, 2.2vw, 30px) !important;
	font-weight: 500 !important;
	line-height: 1.18 !important;
}
.gs-dashboard.gs-public-platform .gs-platform-article :where(.wp-block-group, .wp-block-column):not(:has(.gs-dashboard-module, .gs-native-results-part, .gs-native-article-card, .gs-article-slide, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card)) > p {
	margin: 0 0 22px !important;
	color: #52637a !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
}
.gs-dashboard.gs-public-platform .gs-platform-article :where(.wp-block-group, .wp-block-column):not(:has(.gs-dashboard-module, .gs-native-results-part, .gs-native-article-card, .gs-article-slide, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card)) > :last-child { margin-bottom: 0 !important; }

/* All dynamic article sources use the same card typography. Their outer card
 * layout, imagery, colour and button presentation are deliberately untouched. */
.gs-dashboard.gs-public-platform :where(.gs-article-slide, .gs-native-article-card, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card) :where(h2, h3, h4, [class*="title"]) {
	margin-top: 0 !important;
	margin-bottom: 12px !important;
	color: var(--gs-primary) !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: -.02em !important;
	text-align: left !important;
}
.gs-dashboard.gs-public-platform :where(.gs-article-slide, .gs-native-article-card, .gs-topic-card, .gs-adapted-article-card, .gs-adapted-category-card) :where(p, [class*="excerpt"], [class*="content"]) {
	margin-top: 0 !important;
	margin-bottom: 18px !important;
	color: #52637a !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	text-align: left !important;
}

/* Results retain the established visuals. This only prevents a theme Group
 * from shrinking or clipping the fixed five-column table. */
.gs-dashboard.gs-public-platform .gs-platform-article .wp-block-group:has(> .gs-native-results-part.is-table),
.gs-dashboard.gs-public-platform .gs-platform-article .gs-native-results-part.is-table {
	width: 100% !important;
	max-width: 1120px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	overflow: visible !important;
}
.gs-dashboard.gs-public-platform .gs-native-results-part.is-table .gs-results-table-wrap {
	width: 100% !important;
	overflow-x: auto !important;
}
.gs-dashboard.gs-public-platform .gs-native-results-part.is-table .gs-results-table { min-width: 880px !important; }

/* Competition pages use one editorial rhythm. The legacy category grid was
 * three columns, which made ordinary season copy, the CTA and the result table
 * arbitrarily narrow. Text is a left-aligned reading column; native data
 * modules keep their own visuals and may use the full available width. */
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-grid {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	margin: 0 !important;
}
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-grid > .wp-block-group {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 0 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
/* Ordinary copy (including season notes and conclusions) follows the agreed
 * H2/H3/paragraph defaults: reading width, left alignment and no frame. */
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-grid > .wp-block-group:not(:has(.gs-dashboard-module, .gs-native-results-part)) {
	max-width: 760px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	text-align: left !important;
}
/* A CTA belongs after the explanation and searchable results, not between
 * seasons. :has is supported by the browsers used by the public platform. */
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-grid > .wp-block-group:has(.gs-account-cta-block) {
	order: 99 !important;
	max-width: 760px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-grid .gs-dashboard-module,
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-grid .gs-native-results-part {
	width: 100% !important;
	max-width: 1120px !important;
}
/* Remove only the inherited outer category-card frame. Table/chart/KPI borders,
 * colours, controls and JavaScript remain defined by dashboard.css. */
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-adapted-category-card {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Editorial copy injected between the six fixed competition modules has the
 * same quiet reading rhythm as the completed reference pages. The native
 * components remain wide and keep their own table, chart, KPI and CTA styles. */
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-competition-editorial-copy {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 760px !important;
	margin: 0 auto 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: left !important;
}
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-competition-editorial-copy > :where(h2, h3, p) {
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}
.gs-dashboard.gs-public-platform .gs-competitiepagina .gs-competition-fixed-module {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1120px !important;
	margin: 0 auto 32px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* The Results landing page follows the same reading rhythm as competition
 * pages. It does not style the native KPI, graph or slider internals. */
.gs-dashboard.gs-public-platform .gs-results-content .gs-results-editorial-copy {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 760px !important;
	margin: 0 auto 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: left !important;
}
.gs-dashboard.gs-public-platform .gs-results-content .gs-results-editorial-copy > :where(h2, h3, p) {
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}
.gs-dashboard.gs-public-platform .gs-results-content .gs-results-fixed-module {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1120px !important;
	margin: 0 auto 32px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
