/* Halo Pharmacy Knowledge Base — brand colors: #0A3DAA primary, #35C8E8 secondary */

.halo-kb-wrap {
	font-family: 'Inter', sans-serif;
	color: #1E293B;
}

/* ---------- Suppress theme's default archive/page-title banner ---------- */
/* Confirmed via DevTools inspection: Agenriver renders this as
   <section id="agt-brd-1" class="agt-brd-section-1 ...">, its own
   breadcrumb/page-title component. ID selector = highest specificity,
   guaranteed to override the theme's own styles. */
body.halo-kb-page #agt-brd-1,
body.halo-kb-page .agt-brd-section-1,
body.halo-kb-page [id^="agt-brd-"],
body.halo-kb-page [class*="agt-brd-section"] {
	display: none !important;
}

/* ---------- Hero ---------- */

.halo-kb-hero {
	background: linear-gradient(160deg, #1A4D6D 0%, #123A52 100%);
	padding: 220px 24px 64px;
	text-align: center;
	color: #fff;
	position: relative;
}

.halo-kb-hero-small {
	padding: 200px 24px 40px;
}

.halo-kb-hero-eyebrow {
	display: inline-block;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6FC3D9;
	margin: 0 0 16px;
}

.halo-kb-hero-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 36px;
	letter-spacing: -0.01em;
	margin: 0 0 32px;
	color: #fff;
}

.halo-kb-hero-title-small {
	font-size: 28px;
	margin: 0;
}

.halo-kb-breadcrumb {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 16px;
}

.halo-kb-breadcrumb-center {
	text-align: center;
}

.halo-kb-breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.halo-kb-breadcrumb a:hover {
	text-decoration: underline;
}

/* Search */
.halo-kb-search-form {
	display: flex;
	align-items: center;
	max-width: 600px;
	margin: 0 auto;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	padding-left: 22px;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
	position: relative;
	z-index: 500;
}

.halo-kb-search-form:focus-within {
	border-color: #2A7A9D;
}

.halo-kb-hero-small .halo-kb-search-form {
	max-width: 100%;
}

.halo-kb-search-icon {
	color: #1A4D6D;
	font-size: 19px;
	display: flex;
	align-items: center;
}

.halo-kb-search-input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	padding: 18px 14px;
	font-size: 15px;
	font-family: 'Inter', sans-serif;
	outline: none !important;
	color: #1A4D6D !important;
	box-shadow: none !important;
}

.halo-kb-search-input::placeholder {
	color: #94A3B8;
}

/* Hide native browser search-clear icon — clashes visually with our
   custom pill design and arrow button. */
.halo-kb-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.halo-kb-search-btn {
	background: #2A7A9D;
	border: none;
	color: #fff;
	padding: 0 30px;
	height: 60px;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.halo-kb-search-btn:hover {
	background: #1A4D6D;
}

/* ---------- Layout ---------- */

.halo-kb-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

.halo-kb-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

@media (max-width: 860px) {
	.halo-kb-with-sidebar {
		grid-template-columns: 1fr;
	}

	.halo-kb-hero {
		padding: 160px 20px 48px;
	}

	.halo-kb-hero-small {
		padding: 140px 20px 32px;
	}

	.halo-kb-hero-title {
		font-size: 26px;
	}

	.halo-kb-article-content {
		padding: 24px 20px 28px;
	}

	.halo-kb-helpful {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.halo-kb-helpful-group,
	.halo-kb-share-group {
		width: 100%;
	}

	.halo-kb-article-top {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Back link (all Support pages) ---------- */

.halo-kb-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1A4D6D !important;
	text-decoration: none !important;
	margin-bottom: 20px;
	transition: gap 0.2s ease, color 0.2s ease;
}

.halo-kb-back-link:hover {
	color: #2A7A9D !important;
	gap: 12px;
}

.halo-kb-back-link i {
	font-size: 16px;
}

/* ---------- Category cards (archive page) — matches homepage service card style ---------- */

.halo-kb-category-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.halo-kb-category-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.halo-kb-category-row:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(10, 61, 170, 0.12);
	border-color: #35C8E8;
}

.halo-kb-category-row-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(53, 200, 232, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #0A3DAA;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.halo-kb-category-row:hover .halo-kb-category-row-icon {
	background: #35C8E8;
	color: #fff;
}

.halo-kb-category-row-text {
	flex: 1;
}

.halo-kb-category-row-name {
	font-family: 'Poppins', sans-serif;
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 4px;
	color: #1E293B;
}

.halo-kb-category-row-desc {
	font-size: 13px;
	color: #64748B;
	margin: 0;
}

.halo-kb-category-row-count {
	font-size: 13px;
	color: #94A3B8;
	white-space: nowrap;
}

/* ---------- Article list (category page) ---------- */

.halo-kb-article-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.halo-kb-article-list-item {
	border-bottom: 1px solid #E5E7EB;
}

.halo-kb-article-list-item:last-child {
	border-bottom: none;
}

.halo-kb-article-list-item a {
	display: block;
	padding: 18px 24px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.halo-kb-article-list-item a:hover {
	background: #F7F9FC;
}

.halo-kb-article-list-title {
	font-size: 15px;
	font-weight: 500;
	margin: 0;
	color: #1E293B;
}

.halo-kb-pagination {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	gap: 12px;
}

/* ---------- Sidebar (shared) ---------- */

.halo-kb-sidebar {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.halo-kb-sidebar-brand h2,
.halo-kb-sidebar-category-badge h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #1E293B;
}

.halo-kb-sidebar-brand p {
	font-size: 14px;
	color: #64748B;
	line-height: 1.5;
	margin: 0 0 24px;
}

.halo-kb-sidebar-category-badge {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #E5E7EB;
}

.halo-kb-sidebar-category-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(53, 200, 232, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #0A3DAA;
	margin-bottom: 12px;
}

.halo-kb-sections-nav {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #E5E7EB;
}

.halo-kb-sections-title,
.halo-kb-popular-title,
.halo-kb-toc-heading {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #1E293B;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.halo-kb-sections-nav ul,
.halo-kb-popular-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.halo-kb-sections-nav li {
	margin-bottom: 4px;
}

.halo-kb-sections-nav a {
	display: block;
	padding: 8px 10px;
	font-size: 14px;
	color: #475569;
	text-decoration: none;
	border-radius: 6px;
}

.halo-kb-sections-nav a:hover {
	background: #F7F9FC;
}

.halo-kb-section-active a {
	background: rgba(53, 200, 232, 0.12);
	color: #0A3DAA;
	font-weight: 600;
}

.halo-kb-popular-list {
	margin-bottom: 28px;
}

.halo-kb-popular-list li {
	border-bottom: 1px solid #E5E7EB;
}

.halo-kb-popular-list li:last-child {
	border-bottom: none;
}

.halo-kb-popular-list a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	color: #0A3DAA;
	text-decoration: none;
	line-height: 1.4;
}

.halo-kb-popular-list a:hover {
	text-decoration: underline;
}

/* ---------- Single article ---------- */

.halo-kb-article-content {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 32px 40px 40px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.halo-kb-article-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.halo-kb-article-title {
	font-family: 'Poppins', sans-serif;
	font-size: 30px;
	font-weight: 600;
	margin: 0;
	color: #1E293B;
	line-height: 1.25;
}

.halo-kb-article-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.halo-kb-icon-btn {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid #E5E7EB;
	background: #fff;
	color: #64748B;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.15s ease, color 0.15s ease;
}

.halo-kb-icon-btn:hover {
	background: #F7F9FC;
	color: #0A3DAA;
}

.halo-kb-icon-btn[aria-pressed="true"] {
	background: #0A3DAA;
	color: #fff;
	border-color: #0A3DAA;
}

/* Table of contents */
.halo-kb-toc {
	background: #F7F9FC;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 28px;
}

.halo-kb-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.halo-kb-toc-list li {
	margin-bottom: 6px;
}

.halo-kb-toc-list a {
	font-size: 14px;
	color: #0A3DAA;
	text-decoration: none;
}

.halo-kb-toc-list a:hover {
	text-decoration: underline;
}

/* Article body */
.halo-kb-article-body {
	font-size: 16px;
	line-height: 1.75;
	color: #1E293B;
}

.halo-kb-article-body h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	margin: 32px 0 12px;
	scroll-margin-top: 24px;
}

.halo-kb-article-body p {
	margin: 0 0 16px;
}

/* Helpful + Share */
.halo-kb-helpful {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #E5E7EB;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.halo-kb-helpful-group,
.halo-kb-share-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.halo-kb-helpful-label {
	font-size: 14px;
	font-weight: 600;
	color: #1E293B;
}

.halo-kb-vote-up,
.halo-kb-vote-down {
	display: flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #E5E7EB;
	background: #fff;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	color: #475569;
	transition: background 0.15s ease;
}

.halo-kb-vote-up:hover {
	background: rgba(99, 153, 34, 0.08);
	color: #3B6D11;
}

.halo-kb-vote-down:hover {
	background: rgba(226, 75, 74, 0.08);
	color: #A32D2D;
}

.halo-kb-voted .halo-kb-vote-up,
.halo-kb-voted .halo-kb-vote-down {
	cursor: default;
	opacity: 0.7;
}

.halo-kb-share-label {
	font-size: 13px;
	color: #64748B;
}

.halo-kb-share-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #1A4D6D !important;
	color: #ffffff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.halo-kb-share-btn:hover {
	background: #2A7A9D !important;
	color: #ffffff !important;
	transform: translateY(-2px);
}

/* Article footer CTA */
.halo-kb-article-footer {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #E5E7EB;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.halo-kb-article-footer-text {
	font-size: 15px;
	color: #64748B;
	margin: 0;
}

.halo-kb-contact-btn {
	background: #1A4D6D !important;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	display: inline-block;
	border: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.halo-kb-contact-btn:hover {
	background: #2A7A9D !important;
	color: #ffffff !important;
	transform: translateY(-2px);
}

/* Reader view — hides sidebar/breadcrumb/actions for focused reading */
.halo-kb-reader-active .halo-kb-sidebar,
.halo-kb-reader-active .halo-kb-breadcrumb,
.halo-kb-reader-active .halo-kb-article-actions {
	display: none;
}

.halo-kb-reader-active .halo-kb-with-sidebar {
	grid-template-columns: 1fr;
	max-width: 760px;
	margin: 0 auto;
}

/* Print styles — used when the Print/PDF button triggers window.print() */
@media print {
	.halo-kb-hero,
	.halo-kb-sidebar,
	.halo-kb-article-actions,
	.halo-kb-helpful,
	.halo-kb-article-footer,
	.halo-kb-back-link {
		display: none !important;
	}

	/* Hide the site's actual header/nav and footer — window.print() prints
	   the whole page by default, this scopes it down to just the article
	   content. Scoped to Support pages only via body.halo-kb-page.
	   Confirmed via DevTools: the footer is an Elementor Theme Builder
	   template rendered as <div data-elementor-id="4945" class="elementor
	   elementor-4945">, not a semantic <footer> tag — so it needs this
	   specific selector rather than generic footer guesses. */
	body.halo-kb-page footer,
	body.halo-kb-page .site-footer,
	body.halo-kb-page #colophon,
	body.halo-kb-page header,
	body.halo-kb-page .site-header,
	body.halo-kb-page #masthead,
	body.halo-kb-page [id^="agt-brd-"],
	body.halo-kb-page .elementor-4945,
	body.halo-kb-page [data-elementor-id="4945"] {
		display: none !important;
	}

	.halo-kb-with-sidebar {
		grid-template-columns: 1fr;
	}

	.halo-kb-article-content {
		border: none;
		padding: 0;
	}
}

/* Focus states — accessibility */
.halo-kb-search-input:focus,
.halo-kb-category-row:focus,
.halo-kb-article-list-item a:focus,
.halo-kb-contact-btn:focus,
.halo-kb-popular-list a:focus,
.halo-kb-icon-btn:focus,
.halo-kb-vote-up:focus,
.halo-kb-vote-down:focus,
.halo-kb-share-btn:focus {
	outline: 2px solid #35C8E8;
	outline-offset: 2px;
}
