/*
 * Red flag navigator tool component island.
 *
 * The triage navigator is owned by the shortcode/tool hub and should not live
 * in the global Swiss base stylesheet.
 */

.hong-swiss-modern .hong-red-flag {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	display: grid;
	grid-template-columns: minmax(290px, 0.36fr) minmax(0, 0.64fr);
	margin: 72px auto;
	max-width: 1180px;
}

.hong-swiss-modern .hong-red-flag__intro {
	background: linear-gradient(160deg, #0a0a0a 0%, #21130f 58%, #4a120d 100%);
	color: var(--hong-white);
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
	padding: 42px;
}

.hong-swiss-modern .hong-red-flag__eyebrow {
	color: #ff4a36;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-red-flag__title {
	color: var(--hong-white);
	font-size: 42px;
	margin: 0;
	max-width: 460px;
	overflow-wrap: anywhere;
}

.hong-swiss-modern .hong-red-flag__lede,
.hong-swiss-modern .hong-red-flag__note {
	color: var(--hong-pale);
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
}

.hong-swiss-modern .hong-red-flag__note {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 14px;
	margin-top: auto;
	padding-top: 22px;
}

.hong-swiss-modern .hong-red-flag__workspace {
	min-width: 0;
	padding: 34px;
}

.hong-swiss-modern .hong-red-flag__form {
	display: grid;
	gap: 20px;
}

.hong-swiss-modern .hong-red-flag__select span,
.hong-swiss-modern .hong-red-flag__checks legend {
	color: var(--hong-ink);
	display: block;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 9px;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-red-flag__select select {
	background: var(--hong-paper);
	border: 1px solid var(--hong-line);
	border-radius: 0;
	color: var(--hong-ink);
	font-family: var(--hong-sans);
	font-size: 16px;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.hong-swiss-modern .hong-red-flag__context {
	border-bottom: 1px solid var(--hong-line);
	border-top: 1px solid var(--hong-line);
	padding: 18px 0;
}

.hong-swiss-modern .hong-red-flag__context h3 {
	font-size: 26px;
	margin: 0 0 8px;
}

.hong-swiss-modern .hong-red-flag__context p {
	color: var(--hong-gray-600);
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.hong-swiss-modern .hong-red-flag__checks {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.hong-swiss-modern .hong-red-flag__options {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hong-swiss-modern .hong-red-flag__option {
	background: var(--hong-paper);
	border: 1px solid var(--hong-line);
	cursor: pointer;
	display: grid;
	gap: 12px;
	grid-template-columns: 18px minmax(0, 1fr);
	margin: 0;
	min-height: 116px;
	padding: 14px;
}

.hong-swiss-modern .hong-red-flag__option[data-severity="today"] {
	background: #fff4f1;
	border-color: rgba(204, 37, 24, 0.32);
}

.hong-swiss-modern .hong-red-flag__option input {
	accent-color: var(--hong-accent);
	margin-top: 2px;
}

.hong-swiss-modern .hong-red-flag__option span {
	color: var(--hong-ink);
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.hong-swiss-modern .hong-red-flag__option strong {
	color: var(--hong-accent);
	display: block;
	font-family: var(--hong-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-red-flag__option:has(input:checked) {
	border-color: var(--hong-ink);
	box-shadow: inset 0 0 0 2px var(--hong-ink);
}

.hong-swiss-modern .hong-red-flag__submit-row {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
}

.hong-swiss-modern .hong-red-flag__button,
.hong-swiss-modern .hong-red-flag__actions button,
.hong-swiss-modern .hong-red-flag__actions a {
	align-items: center;
	border: 1px solid var(--hong-ink);
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.08em;
	line-height: 1.2;
	min-height: 44px;
	padding: 12px 14px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-red-flag__button {
	background: var(--hong-accent);
	border-color: var(--hong-accent);
	color: var(--hong-white);
	min-height: 48px;
}

.hong-swiss-modern .hong-red-flag__button:hover,
.hong-swiss-modern .hong-red-flag__button:focus {
	background: var(--hong-ink);
	border-color: var(--hong-ink);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-red-flag__status {
	color: var(--hong-gray-600);
	font-family: var(--hong-mono);
	font-size: 12px;
	line-height: 1.4;
	margin: 0;
	text-align: right;
}

.hong-swiss-modern .hong-red-flag__result {
	border-top: 1px solid var(--hong-line);
	margin-top: 28px;
	padding-top: 28px;
}

.hong-swiss-modern .hong-red-flag__result[hidden] {
	display: none;
}

.hong-swiss-modern .hong-red-flag__result-head {
	align-items: start;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.hong-swiss-modern .hong-red-flag__result-head h3 {
	font-size: 34px;
	margin: 6px 0 8px;
}

.hong-swiss-modern .hong-red-flag__result-head p {
	color: var(--hong-gray-600);
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	max-width: 620px;
}

.hong-swiss-modern .hong-red-flag__result-head strong {
	background: var(--hong-ink);
	color: var(--hong-white);
	font-family: var(--hong-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 10px 12px;
	text-transform: uppercase;
	white-space: nowrap;
}

.hong-swiss-modern .hong-red-flag__result[data-tone="today"] .hong-red-flag__result-head strong {
	background: var(--hong-accent);
}

.hong-swiss-modern .hong-red-flag__result[data-tone="soon"] .hong-red-flag__result-head strong {
	background: #9a5c00;
}

.hong-swiss-modern .hong-red-flag__result[data-tone="routine"] .hong-red-flag__result-head strong {
	background: var(--hong-jade);
}

.hong-swiss-modern .hong-red-flag__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr);
}

.hong-swiss-modern .hong-red-flag__panel,
.hong-swiss-modern .hong-red-flag__next {
	border: 1px solid var(--hong-line);
	padding: 22px;
}

.hong-swiss-modern .hong-red-flag__panel h3,
.hong-swiss-modern .hong-red-flag__next h3 {
	font-size: 22px;
	margin: 0 0 14px;
}

.hong-swiss-modern .hong-red-flag__panel p {
	color: var(--hong-gray-600);
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 14px;
}

.hong-swiss-modern .hong-red-flag__panel ul,
.hong-swiss-modern .hong-red-flag__next ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.hong-swiss-modern .hong-red-flag__panel li,
.hong-swiss-modern .hong-red-flag__next li {
	border-top: 1px solid var(--hong-line);
	color: var(--hong-gray-600);
	font-size: 14px;
	line-height: 1.45;
	list-style: none;
	padding-top: 10px;
}

.hong-swiss-modern .hong-red-flag__next {
	background: var(--hong-paper);
	margin-top: 16px;
}

.hong-swiss-modern .hong-red-flag__summary-panel {
	background: var(--hong-ink);
	color: var(--hong-white);
	margin-top: 22px;
	padding: 24px;
}

.hong-swiss-modern .hong-red-flag__summary-head {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.hong-swiss-modern .hong-red-flag__summary-head h3 {
	color: var(--hong-white);
	font-size: 24px;
	margin: 0;
}

.hong-swiss-modern .hong-red-flag__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.hong-swiss-modern .hong-red-flag__actions button,
.hong-swiss-modern .hong-red-flag__actions a {
	background: var(--hong-white);
	border-color: rgba(255, 255, 255, 0.32);
	color: var(--hong-ink);
	min-height: 38px;
	padding: 9px 11px;
}

.hong-swiss-modern .hong-red-flag__actions a {
	background: var(--hong-jade);
	border-color: var(--hong-jade);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-red-flag__actions button:hover,
.hong-swiss-modern .hong-red-flag__actions button:focus,
.hong-swiss-modern .hong-red-flag__actions a:hover,
.hong-swiss-modern .hong-red-flag__actions a:focus {
	background: var(--hong-accent);
	border-color: var(--hong-accent);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-red-flag__summary-panel pre {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--hong-pale);
	font-family: var(--hong-mono);
	font-size: 12px;
	line-height: 1.55;
	margin: 0;
	max-height: 340px;
	overflow: auto;
	overflow-wrap: anywhere;
	padding: 16px;
	white-space: pre-wrap;
}

.hong-swiss-modern .hong-red-flag__sources {
	border-top: 1px solid var(--hong-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
	padding-top: 18px;
}

.hong-swiss-modern .hong-red-flag__sources p {
	color: var(--hong-gray-600);
	flex: 1 0 100%;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-red-flag__sources a {
	border: 1px solid var(--hong-line);
	color: var(--hong-gray-600);
	font-family: var(--hong-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 7px 9px;
	text-decoration: none;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-red-flag__sources a:hover,
.hong-swiss-modern .hong-red-flag__sources a:focus {
	background: var(--hong-ink);
	border-color: var(--hong-ink);
	color: var(--hong-white);
}

@media only screen and (max-width: 1199px) {
	.hong-swiss-modern .hong-red-flag {
		margin-left: 5%;
		margin-right: 5%;
	}

}

@media only screen and (max-width: 1023px) {
	.hong-swiss-modern .hong-red-flag {
		grid-template-columns: 1fr;
	}

}

@media only screen and (max-width: 767px) {
	.hong-swiss-modern .hong-red-flag__intro,
.hong-swiss-modern .hong-red-flag__workspace {
		padding: 28px 22px;
	}

	.hong-swiss-modern .hong-red-flag__title {
		font-size: 34px;
		max-width: none;
	}

	.hong-swiss-modern .hong-red-flag__options,
.hong-swiss-modern .hong-red-flag__grid {
		grid-template-columns: 1fr;
	}

	.hong-swiss-modern .hong-red-flag__submit-row,
.hong-swiss-modern .hong-red-flag__result-head,
.hong-swiss-modern .hong-red-flag__summary-head {
		align-items: stretch;
		flex-direction: column;
	}

	.hong-swiss-modern .hong-red-flag__status {
		text-align: left;
	}

	.hong-swiss-modern .hong-red-flag__actions {
		width: 100%;
	}

	.hong-swiss-modern .hong-red-flag__button,
.hong-swiss-modern .hong-red-flag__actions button,
.hong-swiss-modern .hong-red-flag__actions a {
		width: 100%;
	}

}

@media print {
	body.hong-red-flag-printing * {
		visibility: hidden !important;
	}

	body.hong-red-flag-printing .hong-red-flag__result,
body.hong-red-flag-printing .hong-red-flag__result * {
		visibility: visible !important;
	}

	body.hong-red-flag-printing .hong-red-flag__result {
		background: #ffffff !important;
		border: 0;
		color: #000000 !important;
		left: 0;
		margin: 0;
		padding: 0;
		position: absolute;
		top: 0;
		width: 100%;
	}

	body.hong-red-flag-printing .hong-red-flag__actions,
body.hong-red-flag-printing .hong-red-flag__sources {
		display: none !important;
	}

	body.hong-red-flag-printing .hong-red-flag__summary-panel,
body.hong-red-flag-printing .hong-red-flag__summary-panel h3,
body.hong-red-flag-printing .hong-red-flag__summary-panel pre {
	background: #ffffff !important;
	border-color: #cccccc !important;
	color: #000000 !important;
}

}

.hong-swiss-modern .hong-red-flag > .hong-tool-next {
	grid-column: 1 / -1;
	margin: 34px;
	max-width: none;
}

.hong-swiss-modern .hong-red-flag__visual {
	background: #f7f3ea;
	border: 1px solid rgba(255, 255, 255, 0.22);
	margin: 0;
	overflow: hidden;
}

.hong-swiss-modern .hong-red-flag__visual {
	aspect-ratio: 4 / 5;
	margin-top: 4px;
}

.hong-swiss-modern .hong-red-flag__visual img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

body.hong-swiss-modern .hong-red-flag {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--hong-width-visual);
	transform: none;
	width: var(--hong-box-visual);
}

.hong-swiss-modern .hong-patient-tools__active-app .hong-red-flag {
	margin: 0;
	max-width: none;
	width: 100%;
}

@media only screen and (max-width: 767px) {
	.hong-swiss-modern .hong-red-flag__visual {
		aspect-ratio: 4 / 5;
	}

}
