.he-page {
	--he-ink: #142033;
	--he-muted: #5b6678;
	--he-line: #d9e4ef;
	--he-card: #ffffff;
	--he-soft: #f4f8fb;
	--he-deep: #163047;
	--he-green: #127c65;
	--he-blue: #2b6cb0;
	--he-amber: #cc8a20;
	--he-red: #b84a4a;
}

.he-page .he-hero,
.he-page .he-tool,
.he-page .he-section,
.he-page .disclaimer {
	background: var(--he-card);
	border: 1px solid var(--he-line);
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(20, 32, 51, 0.09);
}

.he-page .he-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 28px;
	align-items: center;
	margin-bottom: 22px;
	padding: 36px;
	background: linear-gradient(135deg, rgba(18, 124, 101, .1), rgba(43, 108, 176, .1)), #fff;
}

.he-page .he-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.he-page .he-hero p { max-width: 760px; color: var(--he-muted); font-size: 17px; }

.he-page .he-hero-card {
	padding: 24px;
	color: #fff;
	background: linear-gradient(135deg, #163047, #0f1b2c);
	border-radius: 8px;
}
.he-page .he-hero-card span { color: #9ff0d8; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.he-page .he-hero-card strong { display: block; margin-top: 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.he-page .he-hero-card p { margin: 12px 0 0; color: rgba(255,255,255,.84); font-size: 14px; }

.he-page .he-tool {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
	gap: 24px;
	margin-bottom: 22px;
	padding: 24px;
	align-items: start;
}

.he-page .he-inputs,
.he-page .he-results { display: grid; gap: 16px; }
.he-page .panel-heading p { color: var(--he-muted); }

.he-page .input-card,
.he-page .formula-box,
.he-page .detail-list,
.he-page .risk-meter {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--he-line);
	border-radius: 8px;
}
.he-page .input-card { border-left: 6px solid var(--he-green); }
.he-page .input-card.soft { border-left-color: var(--he-blue); }

.he-page .field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.he-page .field {
	display: grid;
	gap: 7px;
	color: #26354b;
	font-size: 13px;
	font-weight: 900;
}
.he-page .field input,
.he-page .field select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	color: var(--he-ink);
	background: var(--he-soft);
	border: 1px solid var(--he-line);
	border-radius: 7px;
	font: inherit;
	font-weight: 800;
}
.he-page .field input:focus,
.he-page .field select:focus { outline: 3px solid rgba(18,124,101,.16); border-color: var(--he-green); background: #fff; }

.he-page .result-card {
	padding: 24px;
	color: #fff;
	background: linear-gradient(135deg, var(--he-green), var(--he-deep));
	border-radius: 8px;
}
.he-page .result-card span { color: #c8f7e7; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.he-page .result-card strong { display: block; margin-top: 8px; font-size: clamp(38px, 6vw, 58px); line-height: 1; }
.he-page .result-card p { margin: 12px 0 0; color: rgba(255,255,255,.86); }

.he-page .metric-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.he-page .metric-grid div,
.he-page .detail-list div {
	padding: 16px;
	background: #fff;
	border: 1px solid var(--he-line);
	border-radius: 8px;
}
.he-page .metric-grid span,
.he-page .detail-list span { display: block; color: var(--he-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.he-page .metric-grid strong,
.he-page .detail-list strong { display: block; margin-top: 8px; color: var(--he-ink); font-size: 20px; }

.he-page .detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.he-page .meter-track { height: 16px; background: #e8edf3; border-radius: 999px; overflow: hidden; }
.he-page .meter-track span { display: block; height: 100%; width: 0; background: var(--he-green); border-radius: inherit; }
.he-page .risk-meter p { margin: 10px 0 0; color: var(--he-muted); }
.he-page .formula-box { background: #eef8f5; }
.he-page .formula-box p { margin-bottom: 0; color: #315848; }
.he-page .copy-button {
	width: 100%;
	min-height: 48px;
	color: #fff;
	background: var(--he-blue);
	border: 0;
	border-radius: 7px;
	font-weight: 900;
	cursor: pointer;
}
.he-page .copy-button:hover { background: #225991; }
.he-page .copy-status { min-height: 20px; margin: 0; color: var(--he-muted); white-space: pre-wrap; }

.he-page .he-section,
.he-page .disclaimer { margin-bottom: 22px; padding: 26px; }
.he-page .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); gap: 22px; }
.he-page .source-card { padding: 20px; background: var(--he-soft); border: 1px solid var(--he-line); border-radius: 8px; }
.he-page .he-section p,
.he-page .disclaimer p { color: var(--he-muted); }
.he-page .source-card a { color: var(--he-blue); font-weight: 900; }

.he-page .scenario-grid,
.he-page .related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.he-page .scenario-grid article,
.he-page .related-grid a {
	padding: 18px;
	background: var(--he-soft);
	border: 1px solid var(--he-line);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}
.he-page .related-grid a:hover { border-color: var(--he-green); transform: translateY(-2px); }
.he-page .related-grid span { color: var(--he-green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.he-page .related-grid p { margin: 0; font-size: 14px; }

.he-page .faq-list { display: grid; gap: 10px; }
.he-page .faq-list details { padding: 16px 18px; background: var(--he-soft); border: 1px solid var(--he-line); border-radius: 8px; }
.he-page .faq-list summary { color: var(--he-ink); font-weight: 900; cursor: pointer; }
.he-page .faq-list p { margin: 10px 0 0; }

@media (max-width: 980px) {
	.he-page .he-hero,
	.he-page .he-tool,
	.he-page .two-col { grid-template-columns: 1fr; }
	.he-page .scenario-grid,
	.he-page .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.he-page .he-hero,
	.he-page .he-tool,
	.he-page .he-section,
	.he-page .disclaimer { padding: 18px; }
	.he-page .field-grid,
	.he-page .metric-grid,
	.he-page .detail-list,
	.he-page .scenario-grid,
	.he-page .related-grid { grid-template-columns: 1fr; }
}
