/*
Theme Name:     Kadence Custom Child Theme
Theme URI:      https://pixeljar.com
Template:       kadence
Author:         Pixel Jar
Author URI:     https://pixeljar.com
Description:    Custom child theme for Kadence parent theme
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ============================================================
   Search Form
   ============================================================ */

.search-form .search-submit[type="submit"] {
	padding-top: 0;
}

.inline-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

@media only screen and (min-width: 400px) {
	.inline-form {
		flex-wrap: initial;
	}
}

.inline-form label {
	flex-grow: 1;
	width: 100%;
}

@media only screen and (min-width: 400px) {
	.inline-form label {
		width: auto;
	}
}

.inline-form button {
	white-space: nowrap;
	margin-top: 20px;
}

@media only screen and (min-width: 400px) {
	.inline-form button {
		margin-top: 0;
	}
}

.wp-block-kadence-header .search-form {
	background-color: #fff;
	width: 100%;
	padding: 8px 12px;
}

@media only screen and (min-width: 992px) {
	.wp-block-kadence-header .search-form {
		background-color: transparent;
		width: 100%;
		margin: 4px 0 0;
		padding: 0;
	}
}

.wp-block-kadence-header .search-form button[type="submit"] {
	text-transform: none;
	background-color: #0087bc;
	border-radius: 2px;
	position: relative;
	color: #fff;
}

.wp-block-kadence-header .search-form button[type="submit"]:hover,
.wp-block-kadence-header .search-form button[type="submit"]:focus {
	color: #fff;
}

.wp-block-kadence-header .search-form .search-field {
	color: #6b6b6b;
	font-size: 14px;
	font-weight: 300;
	height: 45px;
	width: 345px;
	margin-left: 30px;
}

@media only screen and (min-width: 992px) {
	.wp-block-kadence-header .search-form button[type="submit"] {
		padding-left: 46px;
		padding-right: 90px;
		color: #fff;
		text-transform: uppercase;
		font-weight: 600;
	}

	.wp-block-kadence-header .search-form button[type="submit"]:hover {
		background-color: #309DC7;
	}
}

/* The Kadence Search block emits a decorative icon next to the submit
   button; we paint the icon inside the button via ::before below, so
   hide the duplicate. */
.wp-block-kadence-header .search-form .kadence-search-icon-wrap {
	display: none;
}

/* Collapse the search form's label so the fixed-width input sits flush
   against the submit button (no trailing gap from .inline-form's
   flex-grow:1 label rule). */
.wp-block-kadence-header .search-form label {
	flex-grow: 0;
}

/* Pin the site logo at its set width. Gutenberg applies
   `max-width: 100%` to .wp-block-site-logo img, which lets the logo
   shrink when the surrounding flex section gets squeezed. */
@media only screen and (min-width: 992px) {
	.wp-block-kadence-header .wp-block-site-logo {
		flex-shrink: 0;
	}
	.wp-block-kadence-header .wp-block-site-logo img {
		width: 220px;
		max-width: 100%;
		height: auto;
	}
}

/* ============================================================
   Header Primary Navigation (Kadence Navigation block — drop-down + card)
   ============================================================ */

/* Pull the dropdown up so its nub overlaps with the parent button */
.wp-block-kadence-header .wp-block-kadence-navigation .menu-item-has-children > .sub-menu,
.wp-block-kadence-header .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu {
	top: 70%;
	bottom: auto;
	margin-top: 0;
}

/* Visible white card. Kadence resets per-block border-radius custom props
   to 0; override them directly so the rounded corners hold. */
.wp-block-kadence-header .wp-block-kadence-navigation .menu-item-has-children > .sub-menu,
.wp-block-kadence-header .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu {
	--kb-nav-dropdown-border-top-left-radius: 6px;
	--kb-nav-dropdown-border-top-right-radius: 6px;
	--kb-nav-dropdown-border-bottom-right-radius: 6px;
	--kb-nav-dropdown-border-bottom-left-radius: 6px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	overflow: visible;
	min-width: 220px;
	padding: 8px 0;
}

/* Arrow nub at the TOP of the dropdown, pointing up at the button */
.wp-block-kadence-header .wp-block-kadence-navigation .menu-item-has-children > .sub-menu::before,
.wp-block-kadence-header .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 22px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.08);
	z-index: 1;
}

/* Neutralize alignfull on the header nav: it sets width:100vw with negative
   side margins, which was breaking the nav out of its row and shifting it
   off-screen to the left. Keep it inside its row container instead. */
.wp-block-kadence-header .wp-block-kadence-navigation.alignfull {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;
}

/* Bottom row layout: collapse Kadence's 3-column grid so the section
   containing the nav can span the full content-width row. Also drop
   the row's max-width / side padding so the buttons span the full
   viewport edge-to-edge (matches the old design). */
.wp-block-kadence-header-row-bottom .kadence-header-row-inner {
	grid-template-columns: 1fr;
	max-width: none;
	padding: 0;
}

/* The header nav sits inside a Kadence row-layout wrap that breaks out to full
   viewport width (alignfull: `width: 100vw`) and then re-centers its content with
   `margin: 0 auto`. That 100vw breakout plus auto-margin re-centering resolves
   differently in Safari (viewport/scrollbar handling) than in Chrome, shifting
   the whole menu to the right. Neutralize the breakout and the re-centering so
   the menu simply flows inside the already-centered header column — col-center
   is a flex box with `justify-content: center` — giving an identical, fully
   deterministic layout in every browser (and dropping a stray 100vw h-scroll). */
.wp-block-kadence-header-row-bottom .kb-row-layout-wrap.alignfull {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;
}

.wp-block-kadence-header-row-bottom .kt-row-column-wrap.kb-theme-content-width {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.wp-block-kadence-header-row-bottom .wp-block-kadence-header-section,
.wp-block-kadence-header-row-bottom .wp-block-kadence-header-column-center-left,
.wp-block-kadence-header-row-bottom .wp-block-kadence-header-column-center,
.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation,
.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation > .navigation,
.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation > .navigation > .menu-container {
	width: 100%;
}

/* Inset the nav column slightly so the outer buttons don't touch the
   viewport edges (matches the inline padding fix on the column). */
.wp-block-kadence-header-row-bottom .wp-block-kadence-header-column-center {
	padding-left: 24px;
	padding-right: 24px;
}

/* Distribute the top-level menu items evenly across the row */
.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation > .navigation > .menu-container > .menu {
	display: flex;
	width: 100%;
	gap: 0;
}

.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item {
	flex: 1 1 0;
	background: #fff;
	text-align: center;
	border-radius: 4px;
}

.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item > .kb-link-wrap {
	justify-content: center;
}

/* Taller buttons: 15px vertical padding on each top-level link */
.wp-block-kadence-header-row-bottom .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item > .kb-link-wrap > .kb-nav-link-content {
	padding-top: 15px;
	padding-bottom: 15px;
}

/* Underline header nav links (main + submenu) on hover/focus */
.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content:hover,
.wp-block-kadence-header .wp-block-kadence-navigation .kb-nav-link-content:focus {
	text-decoration: underline;
}

/* Replace Kadence's default chevron SVG with a small filled triangle. */
.wp-block-kadence-header-row-bottom .kb-nav-dropdown-toggle-btn .kb-nav-arrow-svg {
	display: none;
}
.wp-block-kadence-header-row-bottom .kb-nav-dropdown-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wp-block-kadence-header-row-bottom .kb-nav-dropdown-toggle-btn::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.2s ease;
}
.wp-block-kadence-header-row-bottom .kb-nav-dropdown-toggle-btn[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

/* Secondary (top) nav — About / Press / Book / Podcast / Contact —
   nav block id 10254. Force 14px / 600 weight typography. */
.wp-block-kadence-navigation10254-cpt-id .kb-nav-link-content {
	font-size: 14px;
	font-weight: 600;
}

/* ============================================================
   Footer Navigation (Kadence Navigation block — drop-up + card)
   Scoped to the footer row's custom class so it doesn't leak into
   the header (the header & footer use the same nav post id).
   ============================================================ */

/* Stretch the top-level menu across the full row */
.foot-wimipa-menu .wp-block-kadence-navigation > .navigation,
.foot-wimipa-menu .wp-block-kadence-navigation > .navigation > .menu-container {
	width: 100%;
}

.foot-wimipa-menu .wp-block-kadence-navigation > .navigation > .menu-container > .menu {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: stretch;
}

.foot-wimipa-menu .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item {
	flex: 1 1 0;
	text-align: center;
}

/* Center the link content inside each pill (text-align doesn't propagate
   to flex children — Kadence sets .kb-nav-link-content to display:flex). */
.foot-wimipa-menu .wp-block-kadence-navigation .kb-link-wrap {
	justify-content: center;
}

/* Kadence emits `--kb-nav-top-not-last-link-border-right: 2px solid
   var(--global-palette7)` which puts a divider between every pair of
   items, but not on the first item's left edge or the last item's
   right edge. Add those edges so the row visually closes. */
.foot-wimipa-menu .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item:first-child {
	border-left: 2px solid var(--global-palette7, #EDF2F7);
}
.foot-wimipa-menu .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item:last-child {
	border-right: 2px solid var(--global-palette7, #EDF2F7);
}

/* Position sub-menu ABOVE the parent button (drop-up) */
.foot-wimipa-menu .wp-block-kadence-navigation .menu-item-has-children > .sub-menu,
.foot-wimipa-menu .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu {
	top: auto;
	bottom: 100%;
	margin-bottom: 12px;
}

/* Visible white card with breathing room */
.foot-wimipa-menu .wp-block-kadence-navigation .menu-item-has-children > .sub-menu,
.foot-wimipa-menu .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu {
	--kb-nav-dropdown-border-top-left-radius: 6px;
	--kb-nav-dropdown-border-top-right-radius: 6px;
	--kb-nav-dropdown-border-bottom-right-radius: 6px;
	--kb-nav-dropdown-border-bottom-left-radius: 6px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	overflow: visible;
	min-width: 220px;
	padding: 8px 0;
}

/* Arrow nub at the BOTTOM of the dropdown, pointing down at the button */
.foot-wimipa-menu .wp-block-kadence-navigation .menu-item-has-children > .sub-menu::before,
.foot-wimipa-menu .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu::before {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 22px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
	z-index: 1;
}

/* Replace Kadence's chevron SVG with an upward-pointing filled triangle
   (the drop-up affordance). Flips to point down when the sub-menu is
   expanded. Matches the header dropdown arrow treatment. */
.foot-wimipa-menu .kb-nav-dropdown-toggle-btn .kb-nav-arrow-svg {
	display: none;
}
.foot-wimipa-menu .kb-nav-dropdown-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.foot-wimipa-menu .kb-nav-dropdown-toggle-btn::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-bottom: 5px solid currentColor;
	transition: transform 0.2s ease;
}
.foot-wimipa-menu .kb-nav-dropdown-toggle-btn[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

/* Underline footer submenu links on hover/focus */
.foot-wimipa-menu .wp-block-kadence-navigation .kb-nav-sub-menu .kb-nav-link-content:hover,
.foot-wimipa-menu .wp-block-kadence-navigation .kb-nav-sub-menu .kb-nav-link-content:focus {
	text-decoration: underline;
}

/* Bring the bar closer to the production height (~52px). Kadence's
   default is `0.6em` (~9.6px) on .kb-nav-link-content, so we need
   to set explicit values larger than that to grow the row instead
   of shrinking it. Direct-child combinators keep submenu items
   untouched. */
.foot-wimipa-menu .wp-block-kadence-navigation > .navigation > .menu-container > .menu > .menu-item > .kb-link-wrap > .kb-nav-link-content {
	padding-top: 16px;
	padding-bottom: 16px;
}

/* ============================================================
   Mobile / Tablet Header — search popup
   ============================================================ */

/* Size the magnifying-glass icon. Its inline SVG has no width/height
   attrs, and the markup carries `.uagb-icon-wrapper` (UAGB) but not the
   `.wp-block-uagb-icon` class that Spectra's default rule depends on,
   so the icon collapses. */
.mobile-search-trigger {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	color: var(--global-palette5, #1f4872);
}
.mobile-search-trigger svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

/* Hide the search row by default on the tablet/mobile header. The
   magnifying-glass trigger toggles `.is-open` onto it via JS. */
.wp-block-kadence-header-tablet .wp-block-kadence-header-row-bottom {
	display: none;
}
.wp-block-kadence-header-tablet .wp-block-kadence-header-row-bottom.is-open {
	display: block;
}

/* Mobile/tablet: lock the popup search row to a single full-width
   column so the form has the whole row to lay out. The Kadence header
   row uses a 3-column grid (tablet-left | tablet-center | tablet-right)
   with the form in the center; the side columns are empty but still
   consume grid space, squeezing the form and clipping the submit. */
@media only screen and (max-width: 991px) {
	.wp-block-kadence-header-tablet .wp-block-kadence-header-row-bottom .kadence-header-row-inner {
		grid-template-columns: 1fr;
	}
	.wp-block-kadence-header-tablet .wp-block-kadence-header-row-bottom .wp-block-kadence-header-column-tablet-left,
	.wp-block-kadence-header-tablet .wp-block-kadence-header-row-bottom .wp-block-kadence-header-column-tablet-right {
		display: none;
	}

	.wp-block-kadence-header .search-form {
		display: flex;
		align-items: center;
		gap: 8px;
		box-sizing: border-box;
		/* .inline-form sets justify-content: flex-end which pushes the
		   empty space to the LEFT of the form and the button past the
		   right edge; override so content starts at the left. */
		justify-content: flex-start;
	}
	/* Let the input take whatever space the icon-only button doesn't use. */
	.wp-block-kadence-header .search-form label {
		flex: 1 1 auto;
		margin: 0;
		min-width: 0;
	}
	.wp-block-kadence-header .search-form .search-field {
		width: 100%;
		margin-left: 0;
	}
	/* Collapse the submit button to an icon-only square on mobile so
	   the input has room for the full placeholder. */
	.wp-block-kadence-header .search-form button[type="submit"] {
		flex: 0 0 auto;
		width: 45px;
		min-width: 45px;
		padding: 0;
		font-size: 0;
	}
	.wp-block-kadence-header .search-form button[type="submit"]::before {
		left: 50%;
		margin-left: -10px;
	}
}

/* ============================================================
   Search Icon (inside submit button)
   ============================================================ */

.wp-block-kadence-header .search-form button[type="submit"]::before {
	content: "";
	background-image: url(images/search.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: auto 100%;
	width: 20px;
	height: 20px;
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
}

/* ============================================================
   Off-Canvas (mobile) Menu
   ============================================================ */

/* Fill the off-canvas panel's full height so any background-colored
   column inside reaches the bottom of the screen. Kadence sets
   .kb-off-canvas-inner as a flex column; making the .wp-block-columns
   child grow lets the columns stretch. Also drop the inner's bottom
   padding so the columns reach the panel's bottom edge. */
.wp-block-kadence-off-canvas .kb-off-canvas-inner {
	padding-bottom: 0;
}
.wp-block-kadence-off-canvas .kb-off-canvas-inner > .wp-block-columns {
	flex: 1;
	align-items: stretch;
}

/* Disable the desktop dropdown styling (white card + arrow nub +
   absolute position) inside the off-canvas. The off-canvas nav is
   vertical, so sub-menus should stack inline below their parent
   item instead of floating as a popover. The selectors below mirror
   the desktop ones in the Header Primary Navigation section but reset
   each property; same specificity, later in source = wins. */
.wp-block-kadence-off-canvas .wp-block-kadence-navigation .menu-item-has-children > .sub-menu,
.wp-block-kadence-off-canvas .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu {
	position: static;
	top: auto;
	bottom: auto;
	background: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	min-width: 0;
	margin-top: 0;
}
.wp-block-kadence-off-canvas .wp-block-kadence-navigation .menu-item-has-children > .sub-menu::before,
.wp-block-kadence-off-canvas .wp-block-kadence-navigation .menu-item-has-children > .kb-nav-sub-menu::before {
	display: none;
}

/* ============================================================
   Footer 2-column links row
   ============================================================ */

/* Drop the row's default 15px content-edge padding so the columns
   (and the My IP nav inside the left column) sit flush with the row
   edges. Kadence applies `padding-left/right: var(--global-content-edge-padding)`
   to .kt-row-column-wrap by default. */
.kb-row-layout-id9966_fa9fd6-c0 > .kt-row-column-wrap {
	padding-left: 0;
	padding-right: 0;
}

/* ============================================================
   Related Articles (full-width band above the footer)
   Markup emitted from wipa_render_related_articles() in functions.php.
   ============================================================ */

.wipa-related-articles {
	background: var(--global-palette7, #F2F3F4);
	padding: 40px 20px;
}
.wipa-related-articles__inner {
	max-width: 1250px;
	margin: 0 auto;
}
.wipa-related-articles__heading {
	margin: 0 0 24px;
	color: var(--global-palette5, #1f4872);
	font-size: 36px;
	font-weight: 700;
	text-align: center;
}
.wipa-related-articles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
}
.wipa-related-articles__card {
	display: flex;
	gap: 16px;
	background: #fff;
	padding: 16px;
	border: 1px solid #e1e5eb;
	border-radius: 4px;
	align-items: flex-start;
}
.wipa-related-articles__thumb {
	flex-shrink: 0;
	width: 110px;
	display: block;
}
.wipa-related-articles__thumb-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
}
.wipa-related-articles__body {
	flex: 1;
	min-width: 0;
}
.wipa-related-articles__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.wipa-related-articles__title a {
	color: var(--global-palette5, #1f4872);
	text-decoration: none;
}
.wipa-related-articles__title a:hover,
.wipa-related-articles__title a:focus {
	text-decoration: underline;
}
.wipa-related-articles__read-more {
	display: inline-block;
	color: #81c13e;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.wipa-related-articles__read-more:hover,
.wipa-related-articles__read-more:focus {
	text-decoration: underline;
}

/* Sidebar: breathing room on the right edge */
#secondary {
	padding-right: 40px;
}

/* Default page template: give the H1 some breathing room before the body */
body.page-template-default h1 {
	margin-bottom: 40px;
}

/* Default page template: bump the top-level Kadence Row Layout's
   padding to 40px on all sides (default is 1.5rem / 24px vertically
   via --global-kb-spacing-sm and 15px horizontally via
   --global-content-edge-padding). Scoped to the row that's a direct
   child of .entry-content so nested rows aren't affected. */
body.page-template-default .entry-content > .wp-block-kadence-rowlayout > .kt-row-column-wrap {
	padding: 40px;
}

/* Press page (/media): tighten the gap between the
   TV APPEARANCES / Media Mentions / Interviews / Podcast Appearances
   anchor buttons so they sit nearly flush like prod. */
body.page-id-164 .kb-row-layout-id164_d9cba9-18 .kt-row-column-wrap {
	gap: 8px;
}
body.page-id-164 .kb-row-layout-id164_d9cba9-18 .kt-inside-inner-col {
	padding-left: 0;
	padding-right: 0;
}

/* ============================================================
   Glossary archive (/glossary)
   Styles the Kadence Query Loop items to match the original:
   titles and the "Read More" link use the light blue (highlight)
   by default and the darker blue (highlight-alt) on hover, both
   underlined, with a trailing arrow on the more link. Applies to
   the post type archive and the per-letter taxonomy archive.
   NOTE: on this site's palette, highlight = light blue (palette2)
   and highlight-alt = darker blue (palette1).
   ============================================================ */

/* Excerpt: 14px text. */
body.post-type-archive-wipa-glossary .wp-block-post-excerpt,
body.post-type-archive-wipa-glossary .wp-block-post-excerpt__excerpt,
body.tax-wipa-glossary-letter .wp-block-post-excerpt,
body.tax-wipa-glossary-letter .wp-block-post-excerpt__excerpt {
	font-size: 14px;
}

/* Space between the excerpt text and the "Read more" link. */
body.post-type-archive-wipa-glossary .wp-block-post-excerpt__more-text,
body.tax-wipa-glossary-letter .wp-block-post-excerpt__more-text {
	margin-top: 1rem;
}

/* Item titles: light blue (highlight), underlined; darker (highlight-alt) on hover/focus.
   Extra classes outrank Kadence's generated [data-kb-block] heading color. */
body.post-type-archive-wipa-glossary .kb-query-item .kb-advanced-heading-link .wp-block-kadence-advancedheading,
body.tax-wipa-glossary-letter .kb-query-item .kb-advanced-heading-link .wp-block-kadence-advancedheading {
	color: var(--global-palette-highlight);
	text-decoration: underline;
}
body.post-type-archive-wipa-glossary .kb-query-item .kb-advanced-heading-link:hover .wp-block-kadence-advancedheading,
body.post-type-archive-wipa-glossary .kb-query-item .kb-advanced-heading-link:focus .wp-block-kadence-advancedheading,
body.tax-wipa-glossary-letter .kb-query-item .kb-advanced-heading-link:hover .wp-block-kadence-advancedheading,
body.tax-wipa-glossary-letter .kb-query-item .kb-advanced-heading-link:focus .wp-block-kadence-advancedheading {
	color: var(--global-palette-highlight-alt);
	text-decoration: underline;
}

/* "Read more" link: light blue (highlight), underlined; darker (highlight-alt) on hover/focus. */
body.post-type-archive-wipa-glossary .wp-block-post-excerpt__more-link,
body.tax-wipa-glossary-letter .wp-block-post-excerpt__more-link {
	color: var(--global-palette-highlight);
	text-decoration: underline;
	text-transform: capitalize;
}
body.post-type-archive-wipa-glossary .wp-block-post-excerpt__more-link:hover,
body.post-type-archive-wipa-glossary .wp-block-post-excerpt__more-link:focus,
body.tax-wipa-glossary-letter .wp-block-post-excerpt__more-link:hover,
body.tax-wipa-glossary-letter .wp-block-post-excerpt__more-link:focus {
	color: var(--global-palette-highlight-alt);
	text-decoration: underline;
}

/* Restore the trailing arrow the original "Read More" link had. */
body.post-type-archive-wipa-glossary .wp-block-post-excerpt__more-link::after,
body.tax-wipa-glossary-letter .wp-block-post-excerpt__more-link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.25em;
	text-decoration: none;
}

/* Glossary single (/glossary/*): shrink the Yoast breadcrumbs to 14px. */
body.single-wipa-glossary .yoast-breadcrumbs {
	font-size: 14px;
}

/* Leaderbopard ad styles */
#wimia_leaderboard_container {
	margin: 1rem 0;
}
