/* ==========================================================================
   CMI External Shares
   Page chrome, tokens, type and buttons copied from cmi-flight-risk
   (assets/css/calculator.css) so both pages share CMI branding.
   ========================================================================== */

body.cmies-page {
	margin: 0;
	padding: 0;
	background: #fff;
}

.cmies-page-main {
	min-height: 60vh;
}

/* Site header */
.cmies-site-header {
	border-bottom: 1px solid #E8E8E8;
	background: #fff;
}

.cmies-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	gap: 16px;
}

.cmies-site-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	font-weight: 700;
	font-size: 1.1rem;
}

.cmies-site-logo img {
	max-height: 48px;
	width: auto;
}

/* Site footer */
.cmies-site-footer {
	border-top: 1px solid #E8E8E8;
	background: #FAFAFA;
	margin-top: 48px;
}

.cmies-site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	font-size: 0.8125rem;
	color: #757575;
}

.cmies-site-footer__copy {
	margin: 0;
}

.cmies-site-footer__copy a {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 520px) {
	.cmies-site-header__inner,
	.cmies-site-footer__inner {
		flex-direction: column;
		align-items: center;
	}
}

@media print {
	.cmies-site-header,
	.cmies-site-footer {
		display: none;
	}
}

/* Content column */
.cmies-wrap {
	--cmies-orange:      #F7931E;
	--cmies-orange-dk:   #D4780A;
	--cmies-gray-200:    #E8E8E8;
	--cmies-gray-600:    #757575;
	--cmies-gray-800:    #333333;
	--cmies-white:       #FFFFFF;
	--cmies-radius:      6px;
	--cmies-radius-lg:   12px;

	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 48px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             "Helvetica Neue", Arial, sans-serif;
	color: var(--cmies-gray-800);
	box-sizing: border-box;
}

.cmies-wrap *,
.cmies-wrap *::before,
.cmies-wrap *::after {
	box-sizing: inherit;
}

/* Title hidden visually (owner request 2026-10-21); kept for screen readers.
   To show it again, restore: font-size clamp(1.4rem, 4vw, 1.9rem); font-weight 800; margin 0 0 24px; line-height 1.2. */
.cmies-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cmies-image {
	margin: 0 0 24px;
}

.cmies-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--cmies-radius-lg);
}

.cmies-content {
	font-size: 1rem;
	line-height: 1.6;
}

.cmies-content img {
	max-width: 100%;
	height: auto;
}

.cmies-content a {
	color: var(--cmies-orange);
}

.cmies-content a:hover {
	color: var(--cmies-orange-dk);
}

.cmies-actions {
	margin: 32px 0 0;
	text-align: center;
}

/* Two-column layout: image left, title/content/button right. Stacks on narrow screens. */
.cmies-wrap--two-col {
	max-width: 1100px;
}

@media (min-width: 768px) {
	.cmies-wrap--two-col {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			"image title"
			"image content"
			"image actions";
		column-gap: 48px;
		align-items: start;
	}

	.cmies-wrap--two-col .cmies-image   { grid-area: image; margin: 0; }
	.cmies-wrap--two-col .cmies-title   { grid-area: title; }
	.cmies-wrap--two-col .cmies-content { grid-area: content; }
	.cmies-wrap--two-col .cmies-actions { grid-area: actions; text-align: left; }
}

/* Buttons */
.cmies-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	font-size: 0.93rem;
	font-weight: 600;
	border-radius: var(--cmies-radius);
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.14s, color 0.14s, border-color 0.14s, opacity 0.14s;
	text-decoration: none;
	white-space: nowrap;
}

.cmies-btn--large {
	padding: 14px 28px;
	font-size: 1rem;
}

.cmies-btn--primary {
	background: var(--cmies-orange);
	color: var(--cmies-white);
}

.cmies-btn--primary:hover {
	background: var(--cmies-orange-dk);
	color: var(--cmies-white);
}
