/**
 * Interactive Health Guide — shared base styles (loaded by every block).
 *
 * Every rule is scoped under .ihg-guide and every class is prefixed "ihg-",
 * so nothing leaks into the theme and theme rules have far less chance
 * of reaching in. Custom properties are declared on .ihg-guide (not :root).
 */

/* =========================================================
   GLOBAL
========================================================= */
.ihg-guide {
	--ihg-primary: #16827f;
	--ihg-primary-dark: #0c5d61;
	--ihg-secondary: #103c4a;
	--ihg-background: #f5f9fa;
	--ihg-card: #ffffff;
	--ihg-text: #21343b;
	--ihg-muted: #687980;
	--ihg-border: #dce7e9;
	--ihg-success: #21884d;
	--ihg-warning: #c68100;
	--ihg-danger: #c0392b;
	--ihg-on-primary: #ffffff;
	--ihg-soft: #eef9f8;
	--ihg-head-bg: #edf7f7;
	--ihg-visual-bg: #eaf6f6;
	--ihg-fact-bg: #eef8f6;
	--ihg-correct-bg: #e9f7ee;
	--ihg-wrong-bg: #fff0ee;
	--ihg-warn-bg: #fff7df;
	--ihg-track: #e7eeee;
	--ihg-hover: #f0f8f8;
	--ihg-shadow-color: #103c4a;
	--ihg-shadow: 0 8px 30px rgba(16, 60, 74, .08);
	--ihg-radius: 18px;

	display: block;
	margin: 0;
	background: var(--ihg-background);
	color: var(--ihg-text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}

/* Shadow tint follows the configurable shadow color where color-mix() is supported. */
@supports (color: color-mix(in srgb, red 10%, transparent)) {
	.ihg-guide {
		--ihg-shadow: 0 8px 30px color-mix(in srgb, var(--ihg-shadow-color) 8%, transparent);
	}
}

.ihg-guide,
.ihg-guide * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   Typography reset: reproduces the browser defaults the
   original standalone page relied on, so theme heading /
   paragraph / button styles do not change the look.
--------------------------------------------------------- */
.ihg-guide h1,
.ihg-guide h2,
.ihg-guide h3,
.ihg-guide p {
	padding: 0;
	font-family: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

.ihg-guide h1 { font-size: 2em; margin: .67em 0; font-weight: 700; }
.ihg-guide h2 { font-size: 1.5em; margin: .83em 0; font-weight: 700; }
.ihg-guide h3 { font-size: 1.17em; margin: 1em 0; font-weight: 700; }
.ihg-guide p { margin: 1em 0; font-size: inherit; font-weight: 400; }
.ihg-guide strong { font-weight: 700; }

.ihg-guide button,
.ihg-guide input {
	font-family: inherit;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
}

.ihg-guide button {
	font-size: 13.3333px;
	font-weight: 400;
	line-height: normal;
	text-align: center;
	padding: 1px 6px;
	min-height: 0;
	min-width: 0;
	border: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}

.ihg-guide table {
	margin: 0;
	border: 0;
	font-size: inherit;
}

.ihg-guide a:focus-visible,
.ihg-guide button:focus-visible,
.ihg-guide input:focus-visible,
.ihg-guide [tabindex]:focus-visible {
	outline: 3px solid var(--ihg-primary-dark);
	outline-offset: 2px;
}

.ihg-guide .ihg-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ihg-guide .ihg-container {
	width: min(1100px, calc(100% - 40px));
	margin: auto;
}

/* =========================================================
   SECTION WRAPPER
========================================================= */
/* Each block is a standalone full-width strip: keep theme block-gap margins out. */
.ihg-guide { margin-top: 0; margin-bottom: 0; }

.ihg-guide .ihg-section { padding: 55px 0; margin: 0; }

.ihg-guide .ihg-section-heading { margin-bottom: 30px; }

.ihg-guide .ihg-section-heading h2 { color: var(--ihg-secondary); font-size: 32px; margin-bottom: 8px; }

.ihg-guide .ihg-section-heading p { color: var(--ihg-muted); margin: 0; }

/* =========================================================
   BUTTONS (shared)
========================================================= */
.ihg-guide .ihg-action-btn {
	background: var(--ihg-primary);
	color: var(--ihg-on-primary);
	border: 0;
	padding: 11px 18px;
	border-radius: 8px;
	cursor: pointer;
}

.ihg-guide .ihg-action-btn:hover { background: var(--ihg-primary-dark); }

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 750px) {
	.ihg-guide .ihg-container { width: min(100% - 28px, 1100px); }
	.ihg-guide .ihg-section { padding: 40px 0; }
}

/* Rich text (WP Editor) inside boxes that used to hold plain text: no extra outer spacing. */
.ihg-guide .ihg-disclaimer p,
.ihg-guide .ihg-fact-answer p,
.ihg-guide .ihg-faq-answer p,
.ihg-guide .ihg-et-note p { margin: 0 0 .75em; }

.ihg-guide .ihg-disclaimer p:last-child,
.ihg-guide .ihg-fact-answer p:last-child,
.ihg-guide .ihg-faq-answer p:last-child,
.ihg-guide .ihg-et-note p:last-child { margin-bottom: 0; }

.ihg-guide .ihg-explorer-result-text p:last-child { margin-bottom: 0; }

/* Rich text (WP Editor) content: lists, quotes, headings and links look right whatever the theme resets. */
.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) ul,
.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) ol {
	margin: 0 0 .75em;
	padding-left: 1.5em;
}

.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) ul { list-style: disc; }
.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) ol { list-style: decimal; }

.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) a {
	color: var(--ihg-primary-dark);
	text-decoration: underline;
}

.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) blockquote {
	margin: 0 0 .75em;
	padding-left: 1em;
	border-left: 3px solid var(--ihg-border);
}

.ihg-guide :is(.ihg-quick-answer, .ihg-disclaimer, .ihg-timeline-text, .ihg-fact-answer, .ihg-safety-text, .ihg-faq-answer, .ihg-related-text, .ihg-et-note, .ihg-quiz-note, .ihg-explorer-result-text) :is(h3, h4, h5, h6) {
	margin: .8em 0 .4em;
	font-size: 1.05em;
	line-height: 1.4;
}

/* Uploaded SVG icons: sized by the surrounding font-size, like an emoji. */
.ihg-guide .ihg-svg-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	line-height: 1;
	vertical-align: -0.125em;
}

.ihg-guide .ihg-svg-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}
