/* BPG Docs Style 1.1.0 — the look of the BPG Help Centre (BetterDocs).
   Matches the Help Centre mock-up: pale blue page, white cards, navy and ochre.
   The pale page marks the Help Centre as its own, self-contained section of the site.
   Change colours in one place, here. */

body.bpg-help {
	--bpg-page: #eef2f7;          /* pale blue ground */
	--bpg-navy: #1c2b4a;
	--bpg-navy-deep: #16223b;
	--bpg-orange: #d6a03a;        /* ochre */
	--bpg-orange-text: #7a4f0e;   /* ochre dark enough to read on white */
	--bpg-orange-tint: #fbf3e2;
	--bpg-ink: #1f2533;
	--bpg-muted: #4a5263;
	--bpg-line: #e3e7ee;
	--bpg-card: #ffffff;
	--bpg-radius: 10px;
	--bpg-font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------
   The page: pale blue ground, dark text, the club's font
   ------------------------------------------------------------------ */

body.bpg-help,
body.bpg-help #page,
body.bpg-help #content,
body.bpg-help .site-content,
body.bpg-help .betterdocs-wrapper,
body.bpg-help .betterdocs-single-wrapper {
	background: var(--bpg-page) !important;
	color: var(--bpg-ink) !important;
}

body.bpg-help #content,
body.bpg-help #content .betterdocs-wrapper,
body.bpg-help #content .elementor-location-archive,
body.bpg-help .bpg-help-hero {
	font-family: var(--bpg-font);
}

/* Keep the site header and footer exactly as the rest of the site */
body.bpg-help #masthead {
	color: inherit;
}

body.bpg-help #page > footer,
body.bpg-help .site-footer {
	background: #1d2a4a !important;
}

/* ------------------------------------------------------------------
   The navy "How can we help?" band  ([bpg_help_hero] shortcode)
   ------------------------------------------------------------------ */

body.bpg-help .bpg-help-hero {
	background: var(--bpg-navy);
	color: #ffffff;
	border-radius: var(--bpg-radius);
	padding: 44px 24px 48px;
	margin: 8px 0 32px;
	text-align: center;
}

body.bpg-help .bpg-help-hero .bpg-help-crumb {
	margin: 0 0 8px;
	font-size: .95rem;
}

body.bpg-help .bpg-help-hero .bpg-help-crumb a {
	color: var(--bpg-orange) !important;
	text-decoration: none;
	font-weight: 600;
}

body.bpg-help .bpg-help-hero h1 {
	margin: 0 0 10px;
	color: #ffffff !important;
	font-family: var(--bpg-font);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0;
}

body.bpg-help .bpg-help-hero p.bpg-help-intro {
	margin: 0 auto 20px;
	max-width: 680px;
	color: #dfe4ee !important;
	font-size: 1.15rem;
}

body.bpg-help .bpg-help-hero .betterdocs-search-form-wrapper {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 !important;
	background: transparent !important;
}

body.bpg-help .bpg-help-hero .bpg-help-note {
	margin: 12px 0 0;
	font-size: .9rem;
	color: #c9d0de !important;
}

/* ------------------------------------------------------------------
   Front page and group pages: the category grid
   ------------------------------------------------------------------ */

body.bpg-help .betterdocs-category-grid-inner-wrapper {
	gap: 24px !important;
}

body.bpg-help .betterdocs-elementor .betterdocs-single-category-wrapper .betterdocs-single-category-inner {
	background: var(--bpg-card) !important;
	border-radius: var(--bpg-radius) !important;
	border-top: 4px solid var(--bpg-orange) !important;
	box-shadow: 0 1px 3px rgba(28, 43, 74, .08) !important;
	padding: 24px 26px !important;
	height: 100%;
}

body.bpg-help .betterdocs-elementor .betterdocs-category-header-inner {
	border-color: var(--bpg-orange) !important;
	border-bottom-width: 2px !important;
	padding-bottom: 14px !important;
	align-items: center;
}

body.bpg-help .betterdocs-elementor .betterdocs-category-title,
body.bpg-help .betterdocs-elementor .betterdocs-category-title a {
	color: var(--bpg-navy) !important;
	font-size: 1.45rem !important;
	font-weight: 700 !important;
}

body.bpg-help .betterdocs-elementor .betterdocs-category-icon img,
body.bpg-help .betterdocs-elementor .betterdocs-category-icon svg {
	filter: none;
	opacity: .85;
}

body.bpg-help .betterdocs-elementor .betterdocs-category-items-counts,
body.bpg-help .betterdocs-elementor .betterdocs-category-items-counts span {
	background: var(--bpg-orange-tint) !important;
	color: var(--bpg-orange-text) !important;
	font-weight: 700 !important;
	box-shadow: none !important;
}

/* The groups and articles listed inside each shelf */
body.bpg-help .betterdocs-elementor .betterdocs-articles-list li,
body.bpg-help .betterdocs-elementor .betterdocs-articles-list li a {
	color: var(--bpg-ink) !important;
	font-size: 1.02rem !important;
}

body.bpg-help .betterdocs-elementor .betterdocs-articles-list li a:hover {
	color: var(--bpg-orange-text) !important;
	text-decoration: underline;
}

body.bpg-help .betterdocs-elementor .betterdocs-nested-category-title,
body.bpg-help .betterdocs-elementor .betterdocs-nested-category-title a,
body.bpg-help .betterdocs-elementor .betterdocs-nested-category-wrapper > span,
body.bpg-help .betterdocs-elementor .betterdocs-nested-category-wrapper > a {
	color: var(--bpg-navy) !important;
	font-weight: 700 !important;
}

body.bpg-help .betterdocs-elementor .betterdocs-nested-category-wrapper svg,
body.bpg-help .betterdocs-elementor .betterdocs-nested-category-wrapper i {
	color: var(--bpg-orange) !important;
	fill: var(--bpg-orange) !important;
}

/* "Explore More" button */
body.bpg-help .betterdocs-elementor .betterdocs-category-link-btn {
	background: transparent !important;
	border: 2px solid var(--bpg-navy) !important;
	color: var(--bpg-navy) !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	padding: 10px 18px !important;
}

body.bpg-help .betterdocs-elementor .betterdocs-category-link-btn:hover {
	background: var(--bpg-navy) !important;
	color: #ffffff !important;
}

/* ------------------------------------------------------------------
   Search box (front page widget and the bar above each guide)
   ------------------------------------------------------------------ */

body.bpg-help .betterdocs-single-wrapper > .betterdocs-search-form-wrapper {
	background: var(--bpg-navy) !important;
	border-radius: var(--bpg-radius) !important;
	padding: 22px 24px !important;
	margin: 8px 0 24px !important;
}

body.bpg-help .betterdocs-searchform {
	background: #ffffff !important;
	border-radius: 10px !important;
	box-shadow: none !important;
}

body.bpg-help .betterdocs-search-field,
body.bpg-help .betterdocs-search-field:focus {
	background: #ffffff !important;
	color: var(--bpg-ink) !important;   /* dark text: never white-on-white */
	font-size: 1.05rem !important;
}

body.bpg-help .betterdocs-search-field::placeholder {
	color: var(--bpg-muted) !important;
	opacity: 1;
}

body.bpg-help .betterdocs-search-submit {
	background: var(--bpg-orange) !important;
	color: var(--bpg-navy) !important;
	font-weight: 700 !important;
	border-radius: 0 10px 10px 0 !important;
}

/* ------------------------------------------------------------------
   A single guide
   ------------------------------------------------------------------ */

body.bpg-help .betterdocs-content-wrapper {
	gap: 28px;
	align-items: flex-start;
}

/* The guide sits on a white card */
body.bpg-help .betterdocs-content-area {
	background: var(--bpg-card) !important;
	color: var(--bpg-ink) !important;
	border-radius: var(--bpg-radius) !important;
	padding: 32px 40px !important;
	box-shadow: 0 1px 3px rgba(28, 43, 74, .08);
}

body.bpg-help .betterdocs-breadcrumb,
body.bpg-help .betterdocs-breadcrumb a,
body.bpg-help .betterdocs-breadcrumb li {
	color: var(--bpg-muted) !important;
	font-size: .95rem !important;
}

body.bpg-help .betterdocs-breadcrumb a:hover {
	color: var(--bpg-orange-text) !important;
}

body.bpg-help .betterdocs-entry-title {
	color: var(--bpg-navy) !important;
	font-size: 2.1rem !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	margin: 6px 0 10px !important;
	text-transform: none !important;   /* the theme sets capitals */
	letter-spacing: 0 !important;
}

body.bpg-help .betterdocs-breadcrumb .item-current,
body.bpg-help .betterdocs-breadcrumb .current,
body.bpg-help .betterdocs-breadcrumb .current span {
	color: var(--bpg-navy) !important;
	font-weight: 600;
}

body.bpg-help .betterdocs-content {
	color: var(--bpg-ink) !important;
	font-size: 1.08rem;
	line-height: 1.65;
}

body.bpg-help .betterdocs-content p,
body.bpg-help .betterdocs-content li {
	color: var(--bpg-ink) !important;
}

/* First paragraph: the one-line answer, a little larger */
body.bpg-help .betterdocs-content > p:first-of-type {
	font-size: 1.18rem;
}

body.bpg-help .betterdocs-content h2,
body.bpg-help .betterdocs-content h3 {
	color: var(--bpg-navy) !important;
	font-weight: 700 !important;
	margin: 1.6em 0 .5em !important;
	line-height: 1.25;
}

body.bpg-help .betterdocs-content h2 { font-size: 1.45rem !important; }
body.bpg-help .betterdocs-content h3 { font-size: 1.2rem !important; }

body.bpg-help .betterdocs-content a {
	color: var(--bpg-orange-text) !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.bpg-help .betterdocs-content a:hover {
	color: var(--bpg-navy) !important;
}

body.bpg-help .betterdocs-content strong {
	color: var(--bpg-navy-deep);
}

/* Numbered steps: navy circles */
body.bpg-help .betterdocs-content ol.wp-block-list {
	list-style: none;
	counter-reset: bpg-step;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

body.bpg-help .betterdocs-content ol.wp-block-list > li {
	counter-increment: bpg-step;
	position: relative;
	padding: 2px 0 12px 48px;
	min-height: 34px;
}

body.bpg-help .betterdocs-content ol.wp-block-list > li::before {
	content: counter(bpg-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bpg-navy);
	color: #ffffff;
	font-weight: 700;
	font-size: .95rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.bpg-help .betterdocs-content ul.wp-block-list {
	padding-left: 1.3em !important;
}

body.bpg-help .betterdocs-content ul.wp-block-list > li {
	margin-bottom: 6px;
}

body.bpg-help .betterdocs-content ul.wp-block-list > li::marker {
	color: var(--bpg-orange);
}

/* Tip box */
body.bpg-help .betterdocs-content .bpg-tip {
	background: var(--bpg-orange-tint);
	border-left: 4px solid var(--bpg-orange);
	border-radius: 8px;
	padding: 12px 16px;
	margin: 18px 0;
}

/* "If something goes wrong" answers */
body.bpg-help .betterdocs-content details {
	border-bottom: 1px solid var(--bpg-line);
	padding: 12px 0;
	margin: 0;
}

body.bpg-help .betterdocs-content details summary {
	font-weight: 700;
	color: var(--bpg-navy);
	cursor: pointer;
	list-style-position: outside;
}

body.bpg-help .betterdocs-content details summary::marker {
	color: var(--bpg-orange);
}

body.bpg-help .betterdocs-content details p {
	margin: 8px 0 0;
	color: var(--bpg-muted) !important;
}

/* "Applies to … · last checked" line */
body.bpg-help .betterdocs-content .bpg-applies {
	margin-top: 32px;
	padding-top: 14px;
	border-top: 1px solid var(--bpg-line);
	font-size: .9rem;
	color: var(--bpg-muted) !important;
}

/* Images and screenshots */
body.bpg-help .betterdocs-content img {
	border-radius: 8px;
	border: 1px solid var(--bpg-line);
	max-width: 100%;
	height: auto;
}

/* Print button and the Listen / Copy page row */
body.bpg-help .betterdocs-print-btn {
	color: var(--bpg-navy) !important;
}

body.bpg-help .betterdocs-doc-meta {
	border-color: var(--bpg-line) !important;
}

/* Tags, reactions, share, feedback at the foot of a guide */
body.bpg-help .betterdocs-entry-footer,
body.bpg-help .betterdocs-entry-footer * {
	color: var(--bpg-ink);
}

body.bpg-help .betterdocs-tags a {
	background: var(--bpg-orange-tint) !important;
	color: var(--bpg-orange-text) !important;
	border-radius: 99px !important;
	padding: 3px 10px !important;
	text-decoration: none !important;
}

body.bpg-help .docs-navigation a {
	color: var(--bpg-orange-text) !important;
}

/* ------------------------------------------------------------------
   Sidebar beside a guide
   ------------------------------------------------------------------ */

body.bpg-help .betterdocs-sidebar .betterdocs-sidebar-content {
	background: var(--bpg-card) !important;
	border-radius: var(--bpg-radius) !important;
	padding: 16px !important;
	box-shadow: 0 1px 3px rgba(28, 43, 74, .08);
}

body.bpg-help .betterdocs-sidebar .betterdocs-category-title,
body.bpg-help .betterdocs-sidebar .betterdocs-category-title a {
	color: var(--bpg-navy) !important;
	font-weight: 700 !important;
}

body.bpg-help .betterdocs-sidebar a {
	color: var(--bpg-ink) !important;
}

body.bpg-help .betterdocs-sidebar a:hover,
body.bpg-help .betterdocs-sidebar .active > a,
body.bpg-help .betterdocs-sidebar .current a {
	color: var(--bpg-orange-text) !important;
}

body.bpg-help .betterdocs-sidebar .betterdocs-category-items-counts,
body.bpg-help .betterdocs-sidebar .betterdocs-category-items-counts span {
	background: var(--bpg-orange-tint) !important;
	color: var(--bpg-orange-text) !important;
}

/* ------------------------------------------------------------------
   Members-only teaser box (BPG Help Centre Lock), in club colours
   ------------------------------------------------------------------ */

body.bpg-help .bpg-hcl-box {
	background: var(--bpg-navy);
}

body.bpg-help .bpg-hcl-join {
	background: var(--bpg-orange);
	color: var(--bpg-navy) !important;
}

/* ------------------------------------------------------------------
   Phones and small tablets
   ------------------------------------------------------------------ */

@media (max-width: 767px) {
	body.bpg-help .bpg-help-hero {
		padding: 28px 16px 32px;
	}
	body.bpg-help .bpg-help-hero h1 {
		font-size: 1.8rem;
	}
	body.bpg-help .betterdocs-content-area {
		padding: 22px 18px !important;
	}
	body.bpg-help .betterdocs-entry-title {
		font-size: 1.6rem !important;
	}
	body.bpg-help .betterdocs-elementor .betterdocs-single-category-wrapper .betterdocs-single-category-inner {
		padding: 18px !important;
	}
}
