/* GES Post Typography — article body on the Single Post template (#49).
   Palette and radii follow the template's TOC / author-box custom CSS
   (#24488F headings, #0D71B9 primary, #e3edf5 borders, #f2f8fd tint, 14px radius).
   `.single-post` is prefixed so every rule outranks the Elementor kit's `h2`/`h3`
   colour+size rules and Twenty Twenty-One's margin resets without !important. */

.single-post .ges-article {
	--ga-text:    #1f2f50;
	--ga-heading: #24488f;
	--ga-primary: #0d71b9;
	--ga-border:  #e3edf5;
	--ga-tint:    #f2f8fd;
	--ga-muted:   #5c6f84;

	display: block;
	font-size: 16px;
	line-height: 1.75;
	color: var(--ga-text);
	overflow-wrap: anywhere;
}

/* --- Vertical rhythm ------------------------------------------------------ */

.single-post .ges-article > p {
	margin: 0 0 1.15em;
}

.single-post .ges-article h2,
.single-post .ges-article h3,
.single-post .ges-article h4 {
	color: var(--ga-heading);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	overflow-wrap: normal;
}
/* Heading sizes scale with the viewport between the phone and desktop values. */
.single-post .ges-article h2 { font-size: clamp(21px, 18px + 0.6vw, 26px); margin: 1.9em 0 0.7em; }
.single-post .ges-article h3 { font-size: clamp(18px, 16px + 0.4vw, 21px); margin: 1.6em 0 0.55em; }
.single-post .ges-article h4 { font-size: clamp(16.5px, 15px + 0.25vw, 18px); margin: 1.4em 0 0.5em; }

.single-post .ges-article > :first-child { margin-top: 0; }
.single-post .ges-article > :last-child { margin-bottom: 0; }
.single-post .ges-article h2 + h3,
.single-post .ges-article h3 + h4 { margin-top: 0.5em; }
.single-post .ges-article h2:empty,
.single-post .ges-article h3:empty,
.single-post .ges-article h4:empty,
.single-post .ges-article p:empty { display: none; }

.single-post .ges-article ul,
.single-post .ges-article ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}
.single-post .ges-article li { margin: 0 0 0.45em; }
.single-post .ges-article li > ul,
.single-post .ges-article li > ol { margin: 0.45em 0 0; }
.single-post .ges-article li::marker { color: var(--ga-primary); font-weight: 600; }

.single-post .ges-article a {
	color: var(--ga-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}
.single-post .ges-article a:hover { color: #0a5a94; }

.single-post .ges-article strong,
.single-post .ges-article b { font-weight: 700; }

.single-post .ges-article img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.5em auto;
	border-radius: 12px;
}
.single-post .ges-article figure { margin: 1.5em 0; }
.single-post .ges-article figure img { margin: 0 auto; }
.single-post .ges-article figcaption {
	margin-top: 0.5em;
	font-size: 13px;
	color: var(--ga-muted);
	text-align: center;
}

.single-post .ges-article blockquote {
	margin: 1.5em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--ga-primary);
	border-radius: 0 12px 12px 0;
	background: var(--ga-tint);
	font-style: normal;
}
.single-post .ges-article blockquote > p { margin: 0; }
.single-post .ges-article blockquote > p + p { margin-top: 0.8em; }

.single-post .ges-article hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--ga-border);
}

/* --- Summary table (same card language as the TOC) ------------------------ */

.single-post .ges-article__table {
	margin: 1.5em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--ga-border);
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(13, 113, 185, 0.07);
	background: #fff;
}
.single-post .ges-article__table table {
	width: 100%;
	min-width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: 15px;
	line-height: 1.5;
	/* Cells keep whole words; a table wider than the phone scrolls inside the
	   wrapper instead of breaking "International" into pieces. */
	overflow-wrap: normal;
	word-break: normal;
}
.single-post .ges-article__table th,
.single-post .ges-article__table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--ga-border);
	text-align: left;
	vertical-align: top;
	color: var(--ga-text);
	background: transparent;
	min-width: 120px;
}
.single-post .ges-article__table td > strong,
.single-post .ges-article__table td > b { font-weight: 600; }

/* Header row: a real <thead>, or a first <tbody> row made of <th> cells. */
.single-post .ges-article__table thead th,
.single-post .ges-article__table thead td,
.single-post .ges-article__table tbody:first-child > tr:first-child > th {
	background: var(--ga-tint);
	color: var(--ga-heading);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2px;
}
.single-post .ges-article__table tbody > tr:nth-child(even) > td { background: #fafcfe; }
.single-post .ges-article__table tr:last-child > td,
.single-post .ges-article__table tr:last-child > th { border-bottom: 0; }

/* --- Pasted-document residue --------------------------------------------- */

/* Older posts carry inline font/size/colour from Google Docs; the article
   reads as one text, so those are neutralised (links and images excluded). */
.single-post .ges-article :is(p, li, span, b, strong, em, i, h2, h3, h4)[style] {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	background: transparent !important;
}
.single-post .ges-article > p[style] { margin: 0 0 1.15em !important; }

/* --- Phones --------------------------------------------------------------- */

@media (max-width: 767px) {
	.single-post .ges-article { font-size: 16px; line-height: 1.7; }
	.single-post .ges-article h2 { margin-top: 1.7em; }
	.single-post .ges-article ul,
	.single-post .ges-article ol { padding-left: 1.25em; }
	.single-post .ges-article img,
	.single-post .ges-article figure { margin-top: 1.25em; margin-bottom: 1.25em; }
	.single-post .ges-article blockquote { padding: 12px 16px; }
	.single-post .ges-article__table { margin: 1.25em 0; border-radius: 12px; }
	.single-post .ges-article__table table { font-size: 14px; }
	.single-post .ges-article__table th,
	.single-post .ges-article__table td { padding: 10px 12px; }
	.single-post .ges-article__table thead th,
	.single-post .ges-article__table thead td,
	.single-post .ges-article__table tbody:first-child > tr:first-child > th { font-size: 13px; }
}
