/* Single post */
.post {
	padding-top: 3%;
	/* the article ended flush against the footer: the last line (often a
	   reference list) touched the footer logo */
	padding-bottom: 4rem;
}

.post__head {
	max-width: 100%;
}

.post__thumb {
	margin-bottom: 2rem;
}

.post__thumb img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.post__title {
	font-size: 2.2rem;
	line-height: 1.3;
	margin-bottom: 1rem;
}

.post__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	border-top: 1px solid var(--border-1);
	padding-top: 1.5rem;
	font-size: 0.9rem;
}

.post__meta {
	display: flex;
	gap: 1rem;
	margin: 0;
	color: var(--text-1);
}

.post__share {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.post__share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 0.5rem;
	border: 1px solid var(--border-1);
	font-size: 0.8rem;
	font-weight: 700;
}

.post__share a:hover {
	background: var(--ink);
	color: var(--white);
}

.post__body {
	display: flex;
	gap: 5%;
	align-items: flex-start;
	padding-block: 2rem 0;
}

.post__side {
	/* border-box: the 20px padding used to sit outside the 30%, which pushed the
	   article 29px right and made it 29px narrower than the design */
	box-sizing: border-box;
	width: 30%;
	flex: none;
	position: sticky;
	top: 80px;
	/* a viewport shorter than the card must still pin it, so the card scrolls
	   inside itself instead of being unpinned altogether */
	max-height: calc(100vh - 96px);
	overflow-y: auto;
	padding: 16px;
	border: 1px solid var(--bg-2);
	border-radius: 5px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	font-size: 0.9rem;
}

/* TOC hidden for now; delete this rule to bring it back */
.post__toc {
	display: none;
}

.post__toc h2 {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.6rem;
}

.toc li {
	padding: 0.25rem 0;
}

.toc__h3 {
	padding-left: 0.9rem;
	font-size: 0.85rem;
}

.toc a:hover {
	color: var(--orange);
}

.post__cta {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}

/* The column sticks for the whole article, so it has to fit one screen: drop the
   plugin's generous field spacing and the card's extra margins. */
.post__side .wpforms-container-full {
	margin: 0;
}

.post__side .wpforms-container-full .wpforms-field {
	padding: 6px 0;
}

/* an empty select renders its first option as real text (#4c4c4c) while the inputs
   show a placeholder (#a5a5a5): match it until a country is picked */
.post__side .wpforms-field-select select:invalid {
	color: rgba(0, 0, 0, 0.35);
}

.post__side .wpforms-container-full button.wpforms-submit {
	background: var(--orange) !important;
	border-color: var(--orange) !important;
	color: var(--white);
}

.post__side .wpforms-container-full button.wpforms-submit:hover {
	background: var(--ink) !important;
	border-color: var(--ink) !important;
}

.post__content {
	flex: 1;
	min-width: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.post__content h2 {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 25px 0;
}

.post__content h3 {
	font-size: 1.2rem;
	line-height: 1.2;
	margin: 25px 0;
}

/* TOC links must not drop the heading under the sticky header */
.post__content h2,
.post__content h3 {
	scroll-margin-top: 140px;
}

.post__content img {
	max-width: 100%;
	height: auto;
	margin: 1rem 0;
	border-radius: 4px;
}

.post__content ul,
.post__content ol {
	list-style: disc;
	padding-left: 40px;
	margin-bottom: 0;
}

.post__content ol {
	list-style: decimal;
}

.post__content a {
	color: var(--orange);
	text-decoration: underline;
}

.post__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.post__content th,
.post__content td {
	border: 1px solid var(--border-1);
	padding: 0.5rem 0.8rem;
	line-height: 1.5;
}

.post__content th {
	font-weight: 700;
}

@media (max-width: 1024px) {
	.post__body {
		flex-direction: column;
	}

	.post__side,
	.post__content {
		width: 100%;
		position: static;
	}
}



/* ---------- article content classes ----------
   The post bodies used to carry the layout in style="" attributes (190 of them
   across 11 posts, with the same declaration repeated up to 54 times). Each
   distinct pattern is a class here, scoped to the article body. */
.post__content .c-block { margin: 2rem 0; }
.post__content .c-block-sm { margin: 1.5rem 0; }
.post__content .c-block-lg { margin: 2.5rem 0; }
.post__content .c-center { text-align: center; }
.post__content .c-left { text-align: left; }

.post__content .c-fs-18 { font-size: 18px; }
.post__content .c-fs-22 { font-size: 22px; }
.post__content .c-fs-24 { font-size: 24px; }

.post__content .c-amber { color: #e87f2e; }
.post__content .c-orange { color: #f97316; }
.post__content .c-sky { color: #38bdf8; }
.post__content .c-violet { color: #a78bfa; }
.post__content .c-link { color: #2563eb; text-decoration: underline; }

.post__content .c-b { font-weight: 600; }
.post__content .c-b7 { font-weight: 700; }
.post__content .c-nowrap { white-space: nowrap; }

/* tables */
.post__content .c-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95em;
}

.post__content .c-cell { padding: 0.75rem 1rem; }
.post__content .c-tr-line { border-bottom: 1px solid #e2e8f0; }
.post__content .c-thead { background: #f1f5f9; border-bottom: 2px solid #e2e8f0; }

/* callout lines: one base + a colour modifier */
.post__content .c-callout {
	margin: 0.5rem 0;
	padding: 0.5rem 1rem;
	background: #fff;
	border-left: 3px solid #38bdf8;
	border-radius: 4px;
}

.post__content .c-callout--orange { border-left-color: #f97316; }
.post__content .c-callout--green { border-left-color: #22c55e; background: #f0fdf4; }

.post__content .c-card {
	margin: 2rem 0;
	padding: 1.5rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.post__content .c-note { font-size: 0.9em; color: #334155; line-height: 1.7; }
.post__content .c-h { margin: 0 0 0.75rem; font-weight: 700; color: #1e293b; text-align: center; }
.post__content .c-h2 { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.1em; }
.post__content .c-caption { font-size: 0.85em; color: #666; margin-top: 0.5rem; }
.post__content .c-rule { border: 0; border-top: 1px solid #e5e7eb; margin: 40px 0; }
.post__content .c-svg { max-width: 100%; height: auto; }
.post__content .c-cover { object-fit: cover; }
.post__content .c-list { margin: 0; padding-left: 1.25rem; }

.post__content .c-quote {
	background: #f8fafc;
	border-left: 4px solid #2563eb;
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
	border-radius: 8px;
}

.post__content .c-cta {
	margin: 2rem 0 0;
	padding: 1.25rem;
	background: #f1f5f9;
	border-radius: 8px;
	text-align: center;
}

/* images that were sized in the body */
.post__content .c-img-570 { width: 570px; max-width: 100%; height: auto; }
.post__content .c-img-695 { width: 695px; max-width: 100%; height: auto; }
.post__content .c-img-701 { width: 701px; max-width: 100%; height: auto; }
.post__content .c-img-800 { width: 800px; max-width: 100%; height: auto; }
.post__content .c-img-821 { width: 821px; max-width: 100%; height: auto; }
.post__content .c-img-838 { width: 838px; max-width: 100%; height: auto; }
.post__content .c-img-840 { width: 840px; max-width: 100%; height: auto; }

/* A four-column table cannot fit a phone: it used to push the whole page 155px
   wider than the screen. Let the table scroll sideways on its own instead. */
@media (max-width: 767px) {
	.post__content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}
