/*
 * Patient tools platform component island.
 *
 * These styles support the patient tools hub, generic tool CTAs, contextual
 * article CTAs, and next-step tool cards. They used to live in the global
 * Swiss stylesheet, but only tool surfaces need them.
 */

/* Patient tools hub, cards, contextual CTA, and base CTA styles */

.hong-swiss-modern .hong-patient-tools {
	color: var(--hong-gray-600);
	margin: 72px auto;
	max-width: 1180px;
}

.hong-swiss-modern .hong-patient-tools *,
.hong-swiss-modern .hong-tool-cta *,
.hong-swiss-modern .hong-tool-next * {
	box-sizing: border-box;
}

.hong-swiss-modern .hong-patient-tools__hero {
	background: var(--hong-ink);
	color: var(--hong-white);
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr);
	padding: 48px;
}

.hong-swiss-modern .hong-patient-tools__eyebrow,
.hong-swiss-modern .hong-tool-cta__eyebrow,
.hong-swiss-modern .hong-tool-next__eyebrow {
	color: var(--hong-accent);
	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-patient-tools__hero h1,
.hong-swiss-modern .hong-patient-tools__hero h2 {
	color: inherit;
	font-size: 56px;
	grid-column: 1;
	margin: 0;
	max-width: 780px;
}

.hong-swiss-modern .hong-patient-tools__hero > p {
	color: var(--hong-pale);
	font-size: 19px;
	grid-column: 1;
	line-height: 1.55;
	margin: 0;
	max-width: 760px;
}

.hong-swiss-modern .hong-patient-tools__route {
	align-content: start;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
	display: grid;
	gap: 10px;
	grid-column: 2;
	grid-row: 1 / span 3;
	padding-left: 22px;
}

.hong-swiss-modern .hong-patient-tools__route a {
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--hong-white);
	display: block;
	font-family: var(--hong-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 12px;
	text-decoration: none;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-patient-tools__route a:hover {
	background: var(--hong-accent);
	border-color: var(--hong-accent);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-patient-tools__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hong-swiss-modern .hong-patient-tools__pathways {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	border-top: 0;
	padding: 34px;
}

.hong-swiss-modern .hong-patient-tools__section-kicker {
	align-items: end;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(220px, 0.28fr) 1fr;
	margin-bottom: 22px;
}

.hong-swiss-modern .hong-patient-tools__section-kicker h3 {
	color: var(--hong-ink);
	font-size: 32px;
	margin: 0;
}

.hong-swiss-modern .hong-patient-tools__pathway-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hong-swiss-modern .hong-patient-tools__pathway {
	border: 1px solid var(--hong-line);
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: -1px 0 0 -1px;
	min-height: 100%;
	padding: 22px;
}

.hong-swiss-modern .hong-patient-tools__pathway h3 {
	color: var(--hong-ink);
	font-size: 24px;
	margin: 0;
}

.hong-swiss-modern .hong-patient-tools__pathway p {
	margin: 0;
}

.hong-swiss-modern .hong-patient-tools__pathway-links {
	display: grid;
	gap: 8px;
	margin-top: auto;
}

.hong-swiss-modern .hong-patient-tools__pathway-links a {
	border-top: 1px solid var(--hong-line);
	color: var(--hong-ink);
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding-top: 8px;
	text-decoration: none;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-patient-tools__pathway-links a:hover {
	color: var(--hong-accent);
}

.hong-swiss-modern .hong-patient-tools__groups {
	display: grid;
	gap: 34px;
	margin-top: 34px;
}

.hong-swiss-modern .hong-patient-tools__group {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
}

.hong-swiss-modern .hong-patient-tools__group-head {
	align-items: end;
	border-bottom: 1px solid var(--hong-line);
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(260px, 0.36fr) 1fr;
	padding: 30px 34px;
}

.hong-swiss-modern .hong-patient-tools__group-head h3 {
	color: var(--hong-ink);
	font-size: 34px;
	margin: 8px 0 0;
}

.hong-swiss-modern .hong-patient-tools__group-head > p {
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
	max-width: 720px;
}

.hong-swiss-modern .hong-patient-tools__group-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Situation-first spine: one section per patient situation, tools inside it */
.hong-swiss-modern .hong-patient-tools__situations {
	display: grid;
	gap: 34px;
	margin-top: 34px;
}

.hong-swiss-modern .hong-patient-tools__situation {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
}

.hong-swiss-modern .hong-patient-tools__situation-head {
	align-items: end;
	border-bottom: 1px solid var(--hong-line);
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(240px, 0.4fr) 1fr;
	padding: 30px 34px;
}

.hong-swiss-modern .hong-patient-tools__situation-head h2 {
	color: var(--hong-ink);
	font-size: 34px;
	line-height: 1.05;
	margin: 0;
	max-width: 16ch;
}

.hong-swiss-modern .hong-patient-tools__situation-head > p {
	color: var(--hong-gray-600);
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
	max-width: 640px;
}

.hong-swiss-modern .hong-patient-tools__situation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Single-tool situation (e.g. urgent triage): horizontal feature card so the
   portrait illustration reads at a natural ratio instead of a wide letterbox. */
.hong-swiss-modern .hong-patient-tools__situation-grid--solo {
	grid-template-columns: 1fr;
}

.hong-swiss-modern .hong-patient-tools__situation-grid--solo .hong-patient-tools__card {
	grid-template-columns: minmax(280px, 360px) 1fr;
	grid-template-rows: auto;
	min-height: 360px;
}

.hong-swiss-modern .hong-patient-tools__situation-grid--solo .hong-patient-tools__visual {
	border-bottom: 0;
	border-right: 1px solid var(--hong-line);
	height: 100%;
}

.hong-swiss-modern .hong-patient-tools__card {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	display: grid;
	grid-template-rows: 300px 1fr;
	margin: -1px 0 0 -1px;
	min-height: 100%;
}

.hong-swiss-modern .hong-patient-tools__card--compact {
	grid-template-rows: 240px 1fr;
}

.hong-swiss-modern .hong-patient-tools__visual {
	background: #f7f3ea;
	border-bottom: 1px solid var(--hong-line);
	margin: 0;
	overflow: hidden;
}

.hong-swiss-modern .hong-patient-tools__visual img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.hong-swiss-modern .hong-patient-tools__card-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
}

.hong-swiss-modern .hong-patient-tools__card h3,
.hong-swiss-modern .hong-tool-cta h3,
.hong-swiss-modern .hong-tool-next h3 {
	color: var(--hong-ink);
	font-size: 26px;
	margin: 0;
}

.hong-swiss-modern .hong-patient-tools__card p,
.hong-swiss-modern .hong-tool-cta p {
	margin: 0;
}

.hong-swiss-modern .hong-patient-tools__button,
.hong-swiss-modern .hong-tool-cta > a {
	align-items: center;
	background: var(--hong-accent);
	color: var(--hong-white);
	display: inline-flex;
	font-family: var(--hong-mono);
	font-size: 12px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.08em;
	margin-top: auto;
	padding: 12px 14px;
	text-decoration: none;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-patient-tools__button:hover,
.hong-swiss-modern .hong-tool-cta > a:hover {
	background: var(--hong-ink);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-patient-tools__active-tool,
.hong-swiss-modern .hong-patient-tools__embed-guide {
	align-items: start;
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(220px, 0.32fr) 1fr;
	margin-top: 34px;
	padding: 34px;
}

.hong-swiss-modern .hong-patient-tools__active-tool {
	border-color: var(--hong-ink);
	grid-template-columns: 1fr;
	margin-top: 0;
}

.hong-swiss-modern .hong-patient-tools__active-head {
	align-items: end;
	border-bottom: 1px solid var(--hong-line);
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
	padding-bottom: 24px;
}

.hong-swiss-modern .hong-patient-tools__active-head h2,
.hong-swiss-modern .hong-patient-tools__embed-guide h3 {
	margin: 8px 0 0;
}

.hong-swiss-modern .hong-patient-tools__active-head p,
.hong-swiss-modern .hong-patient-tools__usage-list {
	color: var(--hong-gray-600);
	font-size: 17px;
	line-height: 1.62;
	margin: 0;
}

.hong-swiss-modern .hong-patient-tools__active-app {
	min-width: 0;
}

.hong-swiss-modern .hong-patient-tools__usage-list {
	display: grid;
	gap: 14px;
	list-style: none;
	padding: 0;
}

.hong-swiss-modern .hong-patient-tools__usage-list li {
	background: var(--hong-paper);
	border: 1px solid var(--hong-line);
	padding: 18px;
}

.hong-swiss-modern .hong-patient-tools__usage-list strong {
	color: var(--hong-ink);
}

.hong-swiss-modern .hong-patient-tools__biblioteca {
	background: linear-gradient(180deg, var(--hong-paper) 0%, var(--hong-white) 100%);
	border: 1px solid var(--hong-line);
	margin-top: 34px;
	padding: 34px;
}

.hong-swiss-modern .hong-patient-tools__biblioteca-head {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(220px, 0.34fr) 1fr;
	margin-bottom: 26px;
}

.hong-swiss-modern .hong-patient-tools__biblioteca-head h3 {
	margin: 8px 0 0;
}

.hong-swiss-modern .hong-patient-tools__biblioteca-head > p {
	color: var(--hong-gray-600);
	font-size: 17px;
	line-height: 1.62;
	margin: 0;
	max-width: 760px;
}

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

.hong-swiss-modern .hong-patient-tools__guide-card {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	color: var(--hong-gray-600);
	display: grid;
	gap: 12px;
	margin: -1px 0 0 -1px;
	min-height: 184px;
	padding: 22px;
	text-decoration: none;
}

.hong-swiss-modern .hong-patient-tools__guide-card span {
	color: var(--hong-accent);
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-patient-tools__guide-card strong {
	color: var(--hong-ink);
	font-size: 22px;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

.hong-swiss-modern .hong-patient-tools__guide-card em {
	font-size: 15px;
	font-style: normal;
	line-height: 1.58;
}

.hong-swiss-modern .hong-patient-tools__guide-card:hover,
.hong-swiss-modern .hong-patient-tools__guide-card:focus-visible {
	background: var(--hong-ink);
	color: rgba(255, 255, 255, 0.74);
}

.hong-swiss-modern .hong-patient-tools__guide-card:hover strong,
.hong-swiss-modern .hong-patient-tools__guide-card:focus-visible strong {
	color: var(--hong-white);
}

.hong-swiss-modern .hong-tool-cta,
.hong-swiss-modern .hong-tool-next {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	color: var(--hong-gray-600);
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr auto;
	margin: 42px auto;
	max-width: 1180px;
	padding: 28px;
}

.hong-swiss-modern .hong-tool-cta p {
	max-width: 760px;
}

.hong-swiss-modern .hong-contextual-cta {
	align-items: center;
	background:
		linear-gradient(90deg, var(--hong-accent) 0 6px, transparent 6px),
		var(--hong-paper);
	border-color: rgba(17, 17, 17, 0.16);
	box-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
	padding: clamp(28px, 3.4vw, 46px);
}

.hong-swiss-modern .hong-contextual-cta__body {
	max-width: 820px;
	padding-left: 12px;
}

.hong-swiss-modern .hong-contextual-cta h3 {
	color: var(--hong-ink);
	font-size: clamp(1.7rem, 2.6vw, 2.75rem);
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 8px 0 14px;
	max-width: 820px;
}

.hong-swiss-modern .hong-contextual-cta p:not(.hong-tool-cta__eyebrow) {
	color: var(--hong-gray-700);
	font-size: clamp(1.08rem, 1.12vw, 1.22rem);
	line-height: 1.58;
	margin: 0;
	max-width: 840px;
}

.hong-swiss-modern .hong-contextual-cta__actions {
	display: grid;
	gap: 10px;
}

.hong-swiss-modern .hong-contextual-cta__link {
	align-items: center;
	background: var(--hong-white);
	border: 1px solid rgba(17, 17, 17, 0.14);
	color: var(--hong-ink);
	display: flex;
	font-size: 0.95rem;
	font-weight: 800;
	justify-content: space-between;
	line-height: 1.2;
	min-height: 52px;
	padding: 14px 16px;
	text-decoration: none;
}

.hong-swiss-modern .hong-contextual-cta__link:visited {
	color: var(--hong-ink);
}

.hong-swiss-modern .hong-contextual-cta__link::after {
	content: "→";
	font-family: var(--hong-mono);
	margin-left: 16px;
}

.hong-swiss-modern .hong-contextual-cta__link--primary {
	background: var(--hong-ink);
	border-color: var(--hong-ink);
	color: var(--hong-white) !important;
}

.hong-swiss-modern .hong-contextual-cta__link--primary[href*="whatsapp"],
.hong-swiss-modern .hong-contextual-cta__link--primary[href*="whatsapp"]:visited {
	background: var(--hong-whatsapp-solid, #118c3d);
	border-color: var(--hong-whatsapp-solid, #118c3d);
	color: var(--hong-whatsapp-solid-ink) !important;
}

.hong-swiss-modern .hong-contextual-cta__link--primary:visited:not([href*="whatsapp"]) {
	background: var(--hong-ink);
	border-color: var(--hong-ink);
	color: var(--hong-white) !important;
}

.hong-swiss-modern .hong-contextual-cta__link:hover,
.hong-swiss-modern .hong-contextual-cta__link:focus-visible {
	border-color: var(--hong-accent);
	color: var(--hong-accent);
}

.hong-swiss-modern .hong-contextual-cta__link--primary:hover,
.hong-swiss-modern .hong-contextual-cta__link--primary:focus-visible {
	background: var(--hong-accent);
	color: var(--hong-white) !important;
}

.hong-swiss-modern .hong-contextual-cta__link--primary[href*="whatsapp"]:hover,
.hong-swiss-modern .hong-contextual-cta__link--primary[href*="whatsapp"]:focus-visible {
	background: var(--hong-whatsapp-solid-hover, #0a6f33);
	border-color: var(--hong-whatsapp-solid-hover, #0a6f33);
	color: var(--hong-whatsapp-solid-ink) !important;
}

/* Patient tool next-step cards */

.hong-swiss-modern .hong-tool-next {
	grid-template-columns: minmax(220px, 0.28fr) 1fr;
}

.hong-swiss-modern .hong-tool-next__grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hong-swiss-modern .hong-tool-next__grid a {
	border: 1px solid var(--hong-line);
	color: var(--hong-ink);
	display: grid;
	gap: 7px;
	min-width: 0;
	padding: 16px;
	text-decoration: none;
}

.hong-swiss-modern .hong-tool-next__grid a:hover {
	border-color: var(--hong-accent);
}

.hong-swiss-modern .hong-tool-next__grid span,
.hong-swiss-modern .hong-tool-next__grid em {
	color: var(--hong-gray-600);
	font-family: var(--hong-mono);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-tool-next__grid em {
	color: var(--hong-accent);
}

/* Patient tools width rail */

body.hong-swiss-modern .hong-patient-tools {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--hong-width-landing);
	width: var(--hong-box-landing);
}

/* Patient tools mobile rules */

@media only screen and (max-width: 767px) {
		.hong-swiss-modern .hong-patient-tools__hero,
.hong-swiss-modern .hong-patient-tools__active-tool,
.hong-swiss-modern .hong-patient-tools__active-head,
.hong-swiss-modern .hong-patient-tools__embed-guide,
.hong-swiss-modern .hong-patient-tools__biblioteca-head,
.hong-swiss-modern .hong-tool-cta,
.hong-swiss-modern .hong-tool-next {
		grid-template-columns: 1fr;
	}

	.hong-swiss-modern .hong-patient-tools__hero {
		padding: 28px 22px;
	}

	.hong-swiss-modern .hong-patient-tools__hero h1,
.hong-swiss-modern .hong-patient-tools__hero h2 {
		font-size: 38px;
	}

	.hong-swiss-modern .hong-patient-tools__hero > p {
		font-size: 17px;
	}

	.hong-swiss-modern .hong-patient-tools__route {
		border-left: 0;
		grid-column: auto;
		grid-row: auto;
		padding-left: 0;
	}

	.hong-swiss-modern .hong-patient-tools__grid,
.hong-swiss-modern .hong-patient-tools__section-kicker,
.hong-swiss-modern .hong-patient-tools__pathway-grid,
.hong-swiss-modern .hong-patient-tools__group-head,
.hong-swiss-modern .hong-patient-tools__group-grid,
.hong-swiss-modern .hong-patient-tools__situation-head,
.hong-swiss-modern .hong-patient-tools__situation-grid,
.hong-swiss-modern .hong-patient-tools__guide-grid,
.hong-swiss-modern .hong-tool-next__grid {
		grid-template-columns: 1fr;
	}

	.hong-swiss-modern .hong-patient-tools__card {
		grid-template-rows: 260px 1fr;
		margin-left: 0;
	}

	.hong-swiss-modern .hong-patient-tools__situation-grid--solo .hong-patient-tools__card {
		grid-template-columns: 1fr;
		grid-template-rows: 260px 1fr;
		min-height: 0;
	}

	.hong-swiss-modern .hong-patient-tools__situation-grid--solo .hong-patient-tools__visual {
		border-bottom: 1px solid var(--hong-line);
		border-right: 0;
	}

		.hong-swiss-modern .hong-patient-tools__active-tool,
.hong-swiss-modern .hong-patient-tools__embed-guide,
.hong-swiss-modern .hong-patient-tools__biblioteca,
.hong-swiss-modern .hong-patient-tools__pathways,
.hong-swiss-modern .hong-patient-tools__group-head,
.hong-swiss-modern .hong-patient-tools__situation-head,
.hong-swiss-modern .hong-tool-cta,
.hong-swiss-modern .hong-tool-next {
			padding: 22px;
		}

		.hong-swiss-modern .hong-patient-tools__active-tool {
			padding: 18px;
		}

	.hong-swiss-modern .hong-contextual-cta__body {
		padding-left: 0;
	}

	.hong-swiss-modern .hong-patient-tools__pathway,
.hong-swiss-modern .hong-patient-tools__card {
		margin-left: 0;
	}

	.hong-swiss-modern .hong-patient-tools__section-kicker h3,
.hong-swiss-modern .hong-patient-tools__group-head h3,
.hong-swiss-modern .hong-patient-tools__situation-head h2 {
		font-size: 28px;
	}

	.hong-swiss-modern .hong-tool-cta > a {
		width: 100%;
	}
}
