/**
 * Default landing template (Help Guides etc.): title bar, authorship, text links.
 */

/* Keep breadcrumb/title clear of the fixed header when scrolling back to top */
@media (max-width: 1024px) {
	html {
		scroll-padding-top: var(--mobile-header-offset, 110px);
	}

	.bc {
		margin-top: 0;
		position: relative;
		z-index: 1;
	}
}

/* Breadcrumb + title share one dark olive band */
.bc {
	background: #45483b;
	color: rgba(255, 255, 255, 0.72);
}

.bc .bcInner {
	color: rgba(255, 255, 255, 0.72);
}

.bc .bcInner a,
.bc .bcInner a:hover,
.bc .bcInner a:focus,
.bc .crumbLink,
.bc .crumbLink:hover,
.bc .crumbLink:focus {
	color: #ffd26c !important;
	text-decoration: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0;
	font-size: inherit;
	font-weight: 400;
}

.bc .bcInner > span > span > a {
	margin-right: 0;
}

.bc .breadcrumb_last,
.bc .breadcrumb_last:hover {
	background: transparent !important;
	color: #fff !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0;
	font-size: inherit;
	font-weight: 400;
	opacity: 1;
}

.pageTitle {
	background: #45483b;
}

.pageTitle .ptInner,
.pageTitle h1.ptInner {
	color: #fff;
	height: auto;
	line-height: 1.25;
	padding: 12px 0 28px;
	margin: 0;
	font-weight: 500;
	font-family: 'Montserrat', sans-serif;
}

/* Heading weight on this template */
.pageTitle h1,
.pageTitle h2,
.pageTitle h3,
.pageTitle h4,
.pageTitle h5,
.pageTitle h6,
.contentBody h1,
.contentBody h2,
.contentBody h3,
.contentBody h4,
.contentBody h5,
.contentBody h6,
.contentBody .question h3,
.landing-authorship h1,
.landing-authorship h2,
.landing-authorship h3,
.landing-authorship h4,
.landing-authorship h5,
.landing-authorship h6 {
	font-weight: 500 !important;
}

/* Authors sit below the olive title, on the same surface as article body */
.landing-authorship {
	background: #fff;
	padding: 20px 0 0;
}

.landing-authorship .help-guide-authorship-meta {
	margin: 0 0 4px;
	padding: 0;
}

.landing-authorship + .contentBody {
	padding-top: 40px;
}

/* Yellow underline on in-article text links (match blog single) */
.contentBody .cb a:not([class*="cta"]):not([class*="button"]):not(.contactButton):not(.question):not(.dl-author-card__photo-link):not(.dl-author-card__profile-link):not(.tm-profile-social__link) {
	color: #ffd26c;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	border-bottom: none;
	transition: color 0.2s ease;
}

.contentBody .cb a:not([class*="cta"]):not([class*="button"]):not(.contactButton):not(.question):not(.dl-author-card__photo-link):not(.dl-author-card__profile-link):not(.tm-profile-social__link):hover,
.contentBody .cb a:not([class*="cta"]):not([class*="button"]):not(.contactButton):not(.question):not(.dl-author-card__photo-link):not(.dl-author-card__profile-link):not(.tm-profile-social__link):focus {
	color: #eab84a;
	text-decoration: underline;
	border-bottom: none;
}

/* Keep author-module links on the blog treatment */
.contentBody .cb .dl-author-module a {
	border-bottom: none;
}

.contentBody .cb .dl-author-card__name a {
	color: #2f3329 !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

.contentBody .cb .dl-author-card__name a:hover,
.contentBody .cb .dl-author-card__name a:focus {
	text-decoration: none !important;
	border-bottom: none !important;
}

.contentBody .cb .dl-author-card__profile-link {
	color: #767a4c !important;
	text-decoration: none;
}

/* Related guides cards keep their own treatment */
.contentBody .sidebarContent a {
	color: #2f3329 !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

/* Article lists (moved out of template inline <style>) */
.contentBody .cb ul:not(.dl-author-card__badges) {
	padding: 30px 30px 30px 50px;
	background: #f8f8f6;
	list-style-position: outside;
}

.contentBody .cb ul:not(.dl-author-card__badges) li {
	line-height: 1.55;
	margin-bottom: 0.35em;
}

.contentBody .cb .sidebarContent ul,
.contentBody .cb .sidebarContent__inner {
	padding: 0 !important;
	background: transparent !important;
}

.contentBody .cb .sidebarContent ul li {
	line-height: normal !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

/* Callout tiles — contained layout (no absolute iconCent bleed) */
.smallPad-tile {
	background: #f8f8f6;
	position: relative;
	margin-bottom: 30px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
}

.smallPad-tile .iconCent,
.smallPad-tile__icon {
	position: static !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	width: 100%;
	padding: 16px;
	text-align: center;
	box-sizing: border-box;
}

.smallPad-tile__icon img,
.smallPad-tile .iconCent img {
	display: block;
	width: 50%;
	max-width: 96px;
	height: auto;
	margin: 0 auto 8px;
	padding: 0;
	opacity: 0.5;
}

.newsItems--flush {
	padding-bottom: 0;
}

/*
 * [cta] shortcode (.ctaBar / .contactButton) — match addiction hero CTAs
 * (.at-hero__cta / .at-hero__cta-wrap)
 */
.contentBody .cb .ctaBar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	margin: 28px 0;
	padding: 28px 24px;
	background: #f8f8f6;
	border-radius: 8px;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #3d4235;
}

.contentBody .cb .ctaBar .contactButton {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 310px;
	min-height: 54px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 14px 24px !important;
	border-radius: 8px !important;
	border: none !important;
	background: #ffd26c !important;
	color: #3d4235 !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: center;
	text-decoration: none !important;
	white-space: normal !important;
	transition: none;
}

.contentBody .cb .ctaBar .contactButton:hover,
.contentBody .cb .ctaBar .contactButton:focus {
	background: #ffd26c !important;
	border: none !important;
	color: #3d4235 !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

@media (max-width: 767px) {
	.contentBody .cb .ctaBar {
		padding: 24px 16px;
		font-size: 16px;
	}

	.contentBody .cb .ctaBar .contactButton {
		max-width: 100%;
		font-size: 16px !important;
		min-height: 52px !important;
		padding: 14px 20px !important;
	}
}

/* Mobile: even full-width copy (kill Bootstrap row/col gutter asymmetry) */
@media (max-width: 767px) {
	.contentBody {
		padding-left: 0;
		padding-right: 0;
		/* visible so list bullets aren’t clipped */
		overflow-x: visible;
		max-width: 100%;
	}

	.contentBody > .container {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 16px;
		padding-right: 16px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	.contentBody > .container > .row {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100%;
		max-width: 100%;
	}

	.contentBody > .container > .row > .col-sm-12,
	.contentBody > .container > .row > .cb {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box;
	}

	/* Keep nested callout columns behaving normally */
	.contentBody .row.smallPad {
		margin-left: -6px;
		margin-right: -6px;
	}

	.contentBody .row.smallPad > .col {
		padding-left: 6px;
		padding-right: 6px;
	}

	.contentBody .cb p,
	.contentBody .cb .o {
		max-width: 100%;
	}

	/* Bullets: keep markers inside the content box on narrow screens */
	.contentBody .cb ul:not(.dl-author-card__badges),
	.contentBody .cb .o ul {
		padding: 20px 16px 20px 28px !important;
		margin-left: 0;
		margin-right: 0;
		list-style-position: outside;
		overflow: visible;
	}

	.contentBody .cb .sidebarContent ul {
		padding: 0 !important;
		background: transparent !important;
	}

	.contentBody .cb ul:not(.dl-author-card__badges) li,
	.contentBody .cb .o ul li {
		line-height: 1.55 !important;
		padding-left: 4px;
	}

	.smallPad-tile {
		margin-bottom: 16px;
	}

	.smallPad-tile__icon img,
	.smallPad-tile .iconCent img {
		max-width: 72px;
	}
}

@media (max-width: 768px) {
	.pageTitle .ptInner,
	.pageTitle h1.ptInner {
		padding: 8px 0 22px;
		font-size: 24px;
		line-height: 1.3;
	}

	.landing-authorship {
		padding-top: 16px;
	}

	.landing-authorship + .contentBody {
		padding-top: 28px;
	}
}
