/*
 * Health Library Connector — look
 *
 * Loaded on top of health-library-layout.css when "Plugin styling" is on.
 * Text, fonts and link colors still come from your theme; this adds cards,
 * buttons and chips painted with --hlmc-accent, which by default is one of
 * your theme's own palette colors (Settings → Health Library). Override any
 * --hlmc-* property in your theme to fine-tune.
 */

/* Search */
.hlmc-search input[type="search"] {
	padding: .6rem .8rem;
	border: 1px solid var(--hlmc-border);
	border-radius: var(--hlmc-radius);
	background: transparent;
	color: inherit;
}
.hlmc .hlmc-search button,
.hlmc .hlmc-button {
	display: inline-block;
	padding: .6rem 1.2rem;
	border: 0;
	border-radius: var(--hlmc-radius);
	background: var(--hlmc-accent);
	color: var(--hlmc-accent-contrast);
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.hlmc .hlmc-search button:hover,
.hlmc .hlmc-button:hover { filter: brightness(1.15); color: var(--hlmc-accent-contrast); }
.hlmc .hlmc-search button:focus-visible,
.hlmc .hlmc-button:focus-visible,
.hlmc a:focus-visible { outline: 2px solid var(--hlmc-accent); outline-offset: 2px; }

/* Notices */
.hlmc-notice, .hlmc-demo-notice { padding: .75rem 1rem; border-radius: var(--hlmc-radius); font-size: .92em; }
.hlmc-notice-error { background: #fff3cd; border: 1px solid #e6c200; color: #5c4400; }
.hlmc-demo-notice { background: color-mix(in srgb, var(--hlmc-accent) 7%, transparent); border: 1px solid color-mix(in srgb, var(--hlmc-accent) 30%, transparent); }

/* Results */
.hlmc-count, .hlmc-page-of { color: var(--hlmc-muted); font-size: .92em; }
.hlmc-result {
	padding: 1rem 1.15rem;
	border: 1px solid var(--hlmc-border);
	border-radius: var(--hlmc-radius);
	background: var(--hlmc-surface);
}
.hlmc-result-title { font-size: 1.1em; }
.hlmc-result-title a { text-decoration: none; }
.hlmc-result-title a:hover { text-decoration: underline; }
.hlmc-snippet { color: var(--hlmc-muted); font-size: .95em; }
.hlmc-date { color: var(--hlmc-muted); font-size: .8em; }
.hlmc-badge {
	display: inline-block;
	padding: .1rem .5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hlmc-accent) 12%, transparent);
	color: var(--hlmc-accent);
	font-size: .75em;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

/* Article */
.hlmc-back { font-size: .92em; }
.hlmc-abstract {
	padding-left: .9rem;
	border-left: 3px solid var(--hlmc-accent);
	font-size: 1.08em;
	color: var(--hlmc-muted);
}
.hlmc-section h3 { margin: 1.75rem 0 .6rem; }
.hlmc-section-content li { margin-bottom: .35rem; }
.hlmc-figure img { border-radius: var(--hlmc-radius); }
.hlmc-figure figcaption { margin-top: .4rem; font-size: .85em; color: var(--hlmc-muted); }
.hlmc-updated {
	padding-top: .75rem;
	border-top: 1px solid var(--hlmc-border);
	font-size: .9em;
	color: var(--hlmc-muted);
}

/* Sidebar */
.hlmc-cta {
	padding: 1.15rem 1.25rem;
	border: 2px solid var(--hlmc-accent);
	border-radius: calc(var(--hlmc-radius) + 2px);
}
.hlmc-cta h3, .hlmc-cta h4 { line-height: 1.3; }
.hlmc-cta p { margin: 0 0 .75rem; font-size: .92em; }
.hlmc-cta-primary { background: var(--hlmc-accent); color: var(--hlmc-accent-contrast); }
.hlmc-cta-primary h3 { color: inherit; }
.hlmc .hlmc-cta-primary .hlmc-button { background: var(--hlmc-accent-contrast); color: var(--hlmc-accent); }
.hlmc-provider-title { color: var(--hlmc-muted); margin-bottom: .2rem !important; }
.hlmc-button-secondary { padding: .5rem 1rem; font-size: .92em; }
.hlmc-disclaimer { font-size: .78em; color: var(--hlmc-muted); text-align: center; }
.hlmc-link-list li { padding: .45rem 0; border-top: 1px solid var(--hlmc-border); }
.hlmc-link-list li:first-child { border-top: 0; }
.hlmc-link-list a { font-weight: 600; text-decoration: none; }
.hlmc-link-list a:hover { text-decoration: underline; }

/* Attribution */
.hlmc-attribution {
	padding-top: 1rem;
	border-top: 1px solid var(--hlmc-border);
	font-size: .8em;
	color: var(--hlmc-muted);
}

/* Topic buttons */
.hlmc-topics-heading { font-size: 1.05em; }
.hlmc-topics a {
	display: inline-block;
	padding: .35rem .9rem;
	border: 1px solid var(--hlmc-border);
	border-radius: 999px;
	color: var(--hlmc-accent);
	font-size: .92em;
	line-height: 1.4;
	text-decoration: none;
}
.hlmc-topics a:hover { border-color: var(--hlmc-accent); background: var(--hlmc-accent); color: var(--hlmc-accent-contrast); }
