/*
 * Streetionary design layer for GeneratePress.
 * Matches the new homepage: ink and chalk neutrals, one electric blue accent,
 * Bricolage Grotesque headings, Instrument Sans body, DM Mono labels.
 */

body {
	--st-ink: #0E1118;
	--st-bg: #F4F5F8;
	--st-white: #FFFFFF;
	--st-line: #D9DCE4;
	--st-muted: #3B4252;
	--st-mono: #4A5163;
	--st-acc: #2339FF;
	--st-acc-ink: #1020B8;
	--st-tint: #E4E8FF;
	--st-disp: 'Bricolage Grotesque', system-ui, sans-serif;
	--st-body: 'Instrument Sans', system-ui, sans-serif;
	--st-mono-font: 'DM Mono', ui-monospace, monospace;

	--contrast: #0E1118;
	--contrast-2: #3B4252;
	--contrast-3: #4A5163;
	--base: #F4F5F8;
	--base-2: #FFFFFF;
	--base-3: #FFFFFF;
	--accent: #2339FF;
}

/* ---------- Base ---------- */
body,
body.separate-containers,
body.separate-containers .site-content {
	background-color: var(--st-bg);
	color: var(--st-ink);
	font-family: var(--st-body);
	font-size: 17px;
	line-height: 1.65;
}

button,
input,
select,
textarea {
	font-family: var(--st-body);
}

::selection {
	background: var(--st-acc);
	color: #fff;
}

a {
	color: var(--st-acc-ink);
}

a:hover,
a:focus {
	color: var(--st-acc);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--st-acc);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title {
	font-family: var(--st-disp);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: var(--st-ink);
	text-wrap: balance;
}

h1, .entry-title { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }

hr,
hr.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--st-line);
	background: none;
	opacity: 1;
}

blockquote {
	border-left: 0;
	background: var(--st-tint);
	border-radius: 20px;
	padding: 20px 26px;
	font-style: italic;
}

/* ---------- Top bar (site search) ---------- */
body .top-bar {
	background: var(--st-white);
	color: var(--st-ink);
	border-bottom: 1px solid var(--st-line);
}

body .top-bar .inside-top-bar {
	justify-content: center;
}

body .top-bar .widget {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 760px;
}

body .top-bar .geodir-search-form-wrapper {
	margin: 8px 0 !important;
}

/* ---------- Header and navigation ---------- */
body .site-header {
	background: var(--st-bg);
	border-bottom: 1px solid var(--st-line);
}

body .inside-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 24px;
	text-align: center;
}

body .site-branding {
	text-align: center;
}

body .main-title {
	margin: 0;
	font-family: var(--st-disp);
	font-weight: 800;
	font-size: 28px;
	letter-spacing: -0.03em;
	line-height: 1;
}

body .main-title a,
body .main-title a:hover {
	color: var(--st-ink);
}

body .main-title a::after {
	content: ".";
	color: var(--st-acc);
}

body .site-description {
	font-family: var(--st-mono-font);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-mono);
}

body .main-navigation,
body .main-navigation ul ul {
	background: transparent;
	float: none;
	width: auto;
}

body .main-navigation .inside-navigation {
	justify-content: center;
}

body .main-navigation .main-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
}

body .main-navigation .main-nav ul li a {
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	padding: 12px 14px;
	color: var(--st-ink);
	background: transparent;
	border-radius: 999px;
}

body .main-navigation .main-nav ul li:hover > a,
body .main-navigation .main-nav ul li.sfHover > a,
body .main-navigation .main-nav ul li.current-menu-item > a {
	color: var(--st-acc);
	background: transparent;
}

/* "Submit Word" becomes the call to action */
body .main-navigation .main-nav ul li.menu-item-89 > a {
	background: var(--st-acc);
	color: #fff;
	font-weight: 600;
	padding: 12px 22px;
}

body .main-navigation .main-nav ul li.menu-item-89 > a:hover {
	background: var(--st-acc);
	color: #fff;
	filter: brightness(1.12);
}

body .main-navigation .menu-toggle {
	color: var(--st-ink);
	font-weight: 600;
}

body .main-navigation ul ul {
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(14, 17, 24, 0.08);
	padding: 6px;
}

/* ---------- Content cards ---------- */
body.separate-containers .inside-article,
body.separate-containers .comments-area,
body.separate-containers .page-header,
body.separate-containers .paging-navigation,
body.one-container .inside-article {
	background: var(--st-white);
	border: 1.5px solid var(--st-line);
	border-radius: 24px;
	padding: clamp(24px, 4vw, 48px);
}

body.separate-containers .site-main > * {
	margin-bottom: 24px;
}

body.separate-containers .site-main > *:last-child {
	margin-bottom: 0;
}

body.separate-containers .content-area,
body.separate-containers .sidebar .widget {
	margin-top: 24px;
}

.entry-content a:not(.gb-button):not(.wp-block-button__link):not(.badge) {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.entry-content > p,
.entry-content li {
	max-width: 70ch;
}

.entry-meta,
.entry-meta a,
.cat-links,
.tags-links,
.post-navigation {
	font-family: var(--st-mono-font);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-mono);
}

.entry-meta a:hover {
	color: var(--st-acc);
}

/* Dictionary entries: category badges and contribute button */
body .geodir-category .badge,
body .geodir_post_taxomomies .badge {
	background: var(--st-tint) !important;
	color: var(--st-acc-ink) !important;
	border-radius: 999px;
	padding: 7px 14px;
	font-family: var(--st-mono-font);
	font-weight: 500;
	letter-spacing: 0.08em;
}

body a.gb-button,
body .wp-block-button__link,
body .wp-block-button .wp-block-button__link {
	background: var(--st-acc) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 14px 28px !important;
	font-weight: 600;
	text-decoration: none !important;
	border: 0;
}

body a.gb-button:hover,
body .wp-block-button__link:hover {
	filter: brightness(1.12);
}

/* ---------- Forms ---------- */
body input[type="text"],
body input[type="email"],
body input[type="url"],
body input[type="password"],
body input[type="search"],
body input[type="number"],
body input[type="tel"],
body select,
body textarea {
	background: var(--st-white);
	color: var(--st-ink);
	border: 1.5px solid var(--st-line);
	border-radius: 14px;
	padding: 12px 16px;
}

body input[type="text"]:focus,
body input[type="email"]:focus,
body input[type="search"]:focus,
body select:focus,
body textarea:focus {
	border-color: var(--st-ink);
	background: var(--st-white);
	color: var(--st-ink);
}

body button:not(.menu-toggle):not(.st-btn-roll),
body input[type="submit"],
body input[type="button"],
body .wpcf7-submit {
	background: var(--st-ink);
	color: var(--st-bg);
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 600;
	cursor: pointer;
}

body button:not(.menu-toggle):not(.st-btn-roll):hover,
body input[type="submit"]:hover,
body .wpcf7-submit:hover {
	background: var(--st-ink);
	color: var(--st-bg);
	filter: brightness(1.3);
}

/* ---------- Sidebar widgets ---------- */
body .sidebar .widget,
body .sidebar .widget.inner-padding {
	background: var(--st-white);
	border: 1.5px solid var(--st-line);
	border-radius: 24px;
	padding: 26px;
	margin-bottom: 24px;
}

body .sidebar .widget-title,
body .sidebar .widget h5 {
	font-family: var(--st-disp);
	font-size: 22px;
	margin-bottom: 14px;
}

body .sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body .sidebar .widget ul li {
	padding: 10px 0;
	border-bottom: 1px solid var(--st-line);
}

body .sidebar .widget ul li:last-child {
	border-bottom: 0;
}

/* Latest terms (GeoDirectory listing widget) */
body .sidebar .geodir-post .card {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--st-line);
	border-radius: 0;
	padding-bottom: 12px;
}

body .sidebar .geodir-entry-title a {
	font-family: var(--st-disp);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--st-ink);
}

body .sidebar .geodir-entry-title a:hover {
	color: var(--st-acc);
}

/* Discover slang card */
body .sidebar #block-12,
body .sidebar .widget.widget_block:has(.st-dice-card) {
	background: transparent;
	border: 0;
	padding: 0;
}

body .st-dice-card {
	background: var(--st-ink);
	color: var(--st-bg);
	border: 0;
	border-radius: 24px;
	padding: 26px;
	box-shadow: none;
	text-align: center;
}

body .st-dice-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

body .st-dice-badge {
	background: var(--st-tint);
	color: var(--st-acc-ink);
	border-radius: 999px;
	padding: 5px 12px;
	font-family: var(--st-mono-font);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body .st-dice-kicker,
body .st-quote-heading {
	font-family: var(--st-mono-font);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #A9AFBF;
}

body .st-dice-title {
	font-family: var(--st-disp);
	font-size: 34px;
	color: var(--st-bg);
	margin: 6px 0 10px;
}

body .st-dice-meaning {
	color: #D3D7E2;
	font-size: 15px;
	line-height: 1.55;
}

body .st-dice-quote-box {
	background: transparent;
	border: 0;
	border-top: 1px solid #2A3040;
	border-radius: 0;
	padding: 14px 0 0;
	margin: 14px 0;
}

body .st-dice-quote {
	color: var(--st-bg);
	font-style: italic;
	font-size: 15px;
	margin: 4px 0 0;
}

body .st-dice-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 18px;
}

body .st-btn-roll {
	background: var(--st-acc);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 20px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

body .st-btn-roll:hover {
	filter: brightness(1.12);
}

body .st-link-more,
body .st-link-more:hover {
	color: var(--st-bg);
	font-weight: 600;
	font-size: 15px;
	border-bottom: 1.5px solid var(--st-bg);
	text-decoration: none;
}

/* ---------- Pagination ---------- */
.page-numbers,
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--st-line);
	border-radius: 999px;
	background: var(--st-white);
	color: var(--st-ink);
	font-weight: 600;
}

.page-numbers.current,
a.page-numbers:hover {
	background: var(--st-ink);
	border-color: var(--st-ink);
	color: var(--st-bg);
}

/* ---------- Footer ---------- */
body .site-footer {
	background: var(--st-ink);
	color: #A9AFBF;
	border-top: 1px solid #2A3040;
}

body .site-footer .footer-widgets {
	background: var(--st-ink);
	color: #A9AFBF;
}

body .site-info {
	background: transparent;
	color: #A9AFBF;
	padding: 28px 24px 36px;
	text-align: center;
	font-size: 14px;
}

body .site-info .inside-site-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

body .site-info .footer-bar .widget {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

body .site-info .footer-bar ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body .site-info a,
body .site-footer a {
	color: #C4C9D6;
}

body .site-info a:hover,
body .site-footer a:hover {
	color: #fff;
}

body .site-info .copyright-bar {
	color: #A9AFBF;
}

/* =====================================================================
   v2: sleeker pass. Later rules here replace the matching rules above.
   ===================================================================== */

body {
	--st-hair: rgba(14, 17, 24, 0.09);
	--st-shadow: 0 1px 2px rgba(14, 17, 24, 0.04), 0 18px 40px -22px rgba(14, 17, 24, 0.2);
}

/* Header: logo at the top, menu centred beneath it */
body .site-header {
	background: var(--st-bg);
	border-bottom: 0;
}

body .inside-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 24px 4px;
}

body .site-branding,
body .site-logo {
	margin: 0 !important;
	text-align: center;
}

body .main-title {
	font-size: 30px;
}

body #site-navigation,
body.nav-float-right #site-navigation {
	float: none;
	width: 100%;
	margin: 0;
	display: flex;
	justify-content: center;
}

body #site-navigation .inside-navigation {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 0;
}

body #site-navigation .main-nav {
	width: auto;
	margin: 0 auto;
}

body .main-navigation .main-nav ul {
	gap: 4px;
}

body .main-navigation .main-nav ul li a {
	padding: 11px 16px;
	transition: background 0.15s, color 0.15s;
}

body .main-navigation .main-nav ul li:hover > a {
	background: var(--st-tint);
	color: var(--st-acc-ink);
}

body .main-navigation .main-nav ul li.current-menu-item > a {
	background: var(--st-white);
	color: var(--st-ink);
	box-shadow: inset 0 0 0 1px var(--st-hair);
}

body .main-navigation .main-nav ul li.menu-item-89 > a {
	margin-left: 8px;
	transition: filter 0.15s, transform 0.15s;
}

body .main-navigation .main-nav ul li.menu-item-89 > a:hover {
	background: var(--st-acc);
	transform: translateY(-1px);
}

/* Search bar sits under the menu */
body .top-bar {
	background: transparent;
	border: 0;
	color: var(--st-ink);
}

body .top-bar .inside-top-bar {
	display: flex;
	justify-content: center;
	padding: 14px 24px 26px;
}

body .top-bar .widget {
	width: 100%;
	max-width: 720px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

body .top-bar .geodir-search-form-wrapper {
	margin: 0 !important;
}

body .top-bar form.geodir-listing-search {
	box-sizing: border-box !important;
	width: 100%;
	background: var(--st-white);
	border: 1px solid var(--st-hair);
	border-radius: 999px;
	padding: 6px;
	box-shadow: var(--st-shadow);
	transition: box-shadow 0.2s, border-color 0.2s;
}

body .top-bar form.geodir-listing-search:focus-within {
	border-color: var(--st-ink);
	box-shadow: 0 0 0 4px var(--st-tint);
}

body .top-bar .geodir-search {
	flex-wrap: nowrap !important;
	gap: 6px !important;
	padding: 0 !important;
	margin: 0 !important;
	align-items: center;
}

body .top-bar .geodir-search > div {
	padding: 0 !important;
	margin: 0 !important;
}

body .top-bar select {
	height: 44px;
	min-width: 150px;
	border: 0;
	background-color: var(--st-bg);
	border-radius: 999px;
	padding: 0 36px 0 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--st-ink);
}

body .top-bar input.search_text {
	height: 44px;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 16px;
	color: var(--st-ink);
}

body .top-bar .input-group-text {
	color: var(--st-mono);
}

body .top-bar .geodir_submit_search,
body .top-bar .geodir-search button[type="submit"] {
	height: 44px;
	padding: 0 26px;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--st-ink) !important;
	color: var(--st-bg) !important;
	font-weight: 600;
}

body .top-bar .geodir_submit_search:hover {
	filter: brightness(1.3);
}

/* Search only: no type dropdown (it still submits Slang Dictionary), centred, no word-of-the-day pill */
body .top-bar .gd-search-field-cpt,
body .top-bar .st-topbar-sotd,
body .top-bar #block-16 {
	display: none !important;
}

body .top-bar.top-bar-align-right .inside-top-bar,
body .top-bar .inside-top-bar {
	justify-content: center;
}

body .top-bar .widget,
body .top-bar.top-bar-align-right .widget {
	margin-left: auto;
	margin-right: auto;
}

body .top-bar input.search_text {
	padding-left: 8px;
}

/* Cards: hairline borders and soft depth */
body.separate-containers .inside-article,
body.separate-containers .comments-area,
body.separate-containers .page-header,
body.separate-containers .paging-navigation,
body.one-container .inside-article,
body .sidebar .widget,
body .sidebar .widget.inner-padding {
	border: 1px solid var(--st-hair);
	border-radius: 28px;
	box-shadow: var(--st-shadow);
}

body .entry-header {
	margin-bottom: 1.2em;
}

body .entry-content {
	font-size: 18px;
}

body .entry-content h2,
body .entry-content h3 {
	margin-top: 1.7em;
}

body input[type="text"],
body input[type="email"],
body input[type="url"],
body input[type="search"],
body select,
body textarea {
	border: 1px solid var(--st-hair);
	background: var(--st-bg);
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

body input[type="text"]:focus,
body input[type="email"]:focus,
body input[type="search"]:focus,
body select:focus,
body textarea:focus {
	background: var(--st-white);
	border-color: var(--st-ink);
	box-shadow: 0 0 0 4px var(--st-tint);
	outline: 0;
}

body a.gb-button,
body .wp-block-button__link,
body button:not(.menu-toggle),
body input[type="submit"] {
	transition: filter 0.15s, transform 0.15s;
}

body a.gb-button:hover,
body .wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Discover slang strip above the footer */
.st-band {
	background: var(--st-ink);
	color: var(--st-bg);
	margin-top: 56px;
}

.st-band .st-band-in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 36px;
}

.st-band .st-band-id {
	display: flex;
	align-items: center;
	gap: 14px;
}

.st-band .st-band-badge {
	background: var(--st-tint);
	color: var(--st-acc-ink);
	border-radius: 999px;
	padding: 5px 12px;
	font-family: var(--st-mono-font);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.st-band .st-band-word {
	margin: 0;
	font-family: var(--st-disp);
	font-weight: 800;
	font-size: 32px;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #fff;
}

.st-band .st-band-text {
	flex: 1 1 320px;
	max-width: 540px;
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #D3D7E2;
}

.st-band .st-band-kick {
	display: block;
	margin-bottom: 4px;
	font-family: var(--st-mono-font);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #A9AFBF;
}

.st-band .st-band-text em {
	display: block;
	margin-top: 4px;
	color: #fff;
}

.st-band .st-band-act {
	display: flex;
	align-items: center;
	gap: 18px;
}

body .st-band .st-band-roll {
	background: var(--st-acc);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 22px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

body .st-band .st-band-roll:hover {
	background: var(--st-acc);
	color: #fff;
	filter: brightness(1.12);
}

.st-band .st-band-act a {
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	border-bottom: 1.5px solid #fff;
	padding-bottom: 2px;
	text-decoration: none;
	white-space: nowrap;
}

/* The homepage has its own Discover section */
body:has(.st-home) .st-band {
	display: none;
}

body .site-footer {
	border-top: 0;
}

@media (max-width: 640px) {
	body .top-bar .geodir-search {
		flex-wrap: wrap !important;
	}

	body .top-bar form.geodir-listing-search {
		border-radius: 28px;
	}

	body .top-bar select,
	body .top-bar .geodir_submit_search {
		width: 100%;
	}

	body .top-bar .geodir-search > div {
		width: 100%;
		flex: 1 1 100% !important;
	}

	.st-band .st-band-in {
		text-align: center;
	}

	.st-band .st-band-id,
	.st-band .st-band-act {
		justify-content: center;
		flex-wrap: wrap;
	}
}

/* =====================================================================
   v3: everything centred, tidy A-Z tiles and category cards
   ===================================================================== */

body .entry-header,
body .entry-title,
body .entry-meta,
body .entry-content,
body .entry-summary,
body .page-header,
body .page-title,
body .comments-area,
body .comment-respond,
body .comment-reply-title,
body .post-navigation,
body .nav-links,
body .paging-navigation,
body footer.entry-meta,
body .sidebar,
body .sidebar .widget,
body .widget-title,
body .geodir-post,
body .geodir-entry-title,
body .geodir_post_meta,
body .geodir-post-meta-container,
body .geodir_post_taxomomies {
	text-align: center !important;
}

body .entry-content > *,
body .entry-content p,
body .entry-content li,
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4,
body .entry-content blockquote {
	margin-left: auto;
	margin-right: auto;
}

body .entry-content > p,
body .entry-content li {
	max-width: 70ch;
}

body .entry-content ul,
body .entry-content ol {
	list-style-position: inside;
	padding-left: 0;
	margin-left: auto;
	margin-right: auto;
}

body .entry-content figure,
body .entry-content .wp-block-image,
body .entry-content .wp-block-image img,
body .entry-content table {
	margin-left: auto;
	margin-right: auto;
}

body .entry-meta,
body .cat-links,
body .tags-links,
body .posted-on,
body .byline {
	justify-content: center;
}

body .geodir-post .card,
body .geodir-entry-title,
body .geodir-entry-title.text-start {
	text-align: center !important;
	align-items: center;
}

body .comment-form,
body .comment-form p {
	text-align: center;
}

body .nav-links,
body .post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

/* Links: underline only inline text links, never tiles or cards */
body .entry-content a {
	text-decoration: none;
}

body .entry-content p a:not(.gb-button):not(.badge),
body .entry-content li a:not(.gb-button):not(.badge) {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

/* A to Z tiles (GeoDirectory category widget) */
body .gd-cptcat-row .row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

body .gd-cptcat-row .row > .col,
body .gd-cptcat-row .gd-cptcat-parent {
	flex: 0 0 58px;
	width: 58px;
	max-width: 58px;
	padding: 0;
	margin: 0 !important;
}

body .gd-cptcat-parent .card {
	height: 58px;
	border: 0;
	background: transparent;
	box-shadow: none !important;
}

body .gd-cptcat-parent .card-body,
body .geodir-cpt-tag-parent .card-body {
	background: var(--st-white);
	color: var(--st-ink);
	border: 1px solid var(--st-hair);
	border-radius: 16px;
	box-shadow: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

body .gd-cptcat-parent .card-body {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}

body .gd-cptcat-parent .card-body a,
body .geodir-cpt-tag-parent .card-body a {
	color: inherit;
	text-decoration: none;
	font-family: var(--st-disp);
	font-weight: 700;
}

body .gd-cptcat-parent .card-body a {
	font-size: 22px;
}

body .gd-cptcat-parent .card-body:hover,
body .geodir-cpt-tag-parent .card-body:hover {
	background: var(--st-ink);
	color: var(--st-bg);
	border-color: var(--st-ink);
	transform: translateY(-2px);
}

/* Tag cards */
body .geodir-cpt-tag-row .row {
	justify-content: center;
}

body .geodir-cpt-tag-parent .card {
	border: 0;
	background: transparent;
	box-shadow: none !important;
}

body .geodir-cpt-tag-parent .card-body {
	padding: 22px !important;
	border-radius: 20px;
}

body .geodir-cpt-tag-parent .card-body a {
	font-size: 20px;
	letter-spacing: -0.02em;
}

body .gd-cpttag-count {
	background: var(--st-tint) !important;
	color: var(--st-acc-ink) !important;
	border-radius: 999px;
	font-family: var(--st-mono-font);
	font-weight: 500;
}

body .gd-cpttag-tag-left {
	background: var(--st-tint) !important;
}

body .gd-cpttag-icon {
	color: var(--st-acc-ink) !important;
}

/* =====================================================================
   v4: tighter spacing at the end of entries
   ===================================================================== */

body .entry-content .wp-block-spacer {
	height: 12px !important;
}

body .entry-content p:empty,
body .entry-content .wp-block-paragraph:empty {
	display: none;
}

body .entry-content hr,
body .entry-content hr.wp-block-separator {
	margin: 22px auto;
	max-width: none;
}

body .entry-content hr:has(+ p:empty),
body .entry-content hr:last-child {
	display: none;
}

body .entry-content > *:last-child {
	margin-bottom: 0;
}

body .entry-content {
	margin-bottom: 0;
	padding-bottom: 0;
}

body.separate-containers .inside-article,
body.one-container .inside-article {
	padding-bottom: clamp(24px, 3vw, 36px);
}

/* Category badge under each entry: centred, not floated left */
body .geodir_post_taxomomies {
	display: flex;
	justify-content: center;
	margin-bottom: 0 !important;
}

body .geodir_post_taxomomies .geodir-category,
body .geodir_post_taxomomies .float-start {
	float: none !important;
}

body .entry-content .wp-block-geodirectory-geodir-widget-single-taxonomies {
	margin: 0 auto;
}

body .entry-content .gb-button {
	margin: 0 auto;
}

/* =====================================================================
   v5: main card and sidebar start on the same line
   ===================================================================== */

body.separate-containers .site-content {
	padding-top: 24px;
}

body.separate-containers .content-area,
body.separate-containers .site-main,
body.separate-containers .inside-right-sidebar,
body.separate-containers .inside-left-sidebar,
body.separate-containers .sidebar,
body.separate-containers .widget-area {
	margin-top: 0;
	padding-top: 0;
}

body.separate-containers .site-main {
	margin-bottom: 0;
}

body.separate-containers .sidebar .widget {
	margin-top: 0;
	margin-bottom: 24px;
}

body.separate-containers .sidebar .widget:last-child {
	margin-bottom: 0;
}

/* =====================================================================
   v6: more colour, carried over from the homepage
   ===================================================================== */

/* Soft blue glow behind the top of every page */
body {
	background-image:
		radial-gradient(640px 340px at 16% 0, rgba(35, 57, 255, 0.16), transparent 70%),
		radial-gradient(540px 320px at 88% 4%, rgba(35, 57, 255, 0.1), transparent 70%);
	background-repeat: no-repeat;
	background-size: 100% 640px;
	background-position: top center;
}

body.separate-containers .site-content,
body .site,
body .site-header {
	background-color: transparent;
}

body:has(.st-home) {
	background-image: none;
}

/* Header accents */
body .main-navigation .main-nav ul li.current-menu-item > a {
	background: var(--st-tint);
	color: var(--st-acc-ink);
	box-shadow: none;
}

body .main-navigation .main-nav ul li:hover > a {
	background: var(--st-tint);
}

/* Cards: faint blue wash towards the bottom, blue edge on hover */
body.separate-containers .inside-article,
body.one-container .inside-article {
	background-image: linear-gradient(180deg, #fff 0%, #fff 62%, #F4F6FF 100%);
}

body .sidebar .widget,
body .sidebar .widget.inner-padding {
	background-image: linear-gradient(180deg, #fff 0%, #F6F7FF 100%);
}

body .sidebar .widget:hover {
	border-color: rgba(35, 57, 255, 0.35);
}

/* Widget titles get a blue dot */
body .sidebar .widget-title::before,
body .sidebar .widget h5::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--st-acc);
	box-shadow: 0 0 0 4px var(--st-tint);
	vertical-align: middle;
}

/* Page title area on archives and search */
body .page-header {
	background-color: var(--st-tint);
	background-image: radial-gradient(420px 200px at 50% 0, rgba(35, 57, 255, 0.14), transparent 70%);
	border-color: transparent;
}

body .page-header .page-title {
	color: var(--st-acc-ink);
}

/* Entry titles: small blue tag above, h2s get a blue bar */
body .entry-header .entry-title::before {
	content: "";
	display: block;
	width: 44px;
	height: 5px;
	margin: 0 auto 18px;
	border-radius: 5px;
	background: var(--st-acc);
}

body .entry-content h2::before {
	content: "";
	display: block;
	width: 34px;
	height: 4px;
	margin: 0 auto 12px;
	border-radius: 4px;
	background: var(--st-acc);
}

body .entry-content strong,
body .entry-content b {
	color: var(--st-ink);
}

body .entry-content a:not(.gb-button):not(.badge) {
	color: var(--st-acc);
}

body .entry-content ul li::marker,
body .entry-content ol li::marker {
	color: var(--st-acc);
}

blockquote {
	background: linear-gradient(135deg, var(--st-tint), #F0F2FF);
	color: var(--st-acc-ink);
}

/* Primary actions in blue, search stays ink like the homepage */
body input[type="submit"],
body .wpcf7-submit {
	background: var(--st-acc);
	color: #fff;
}

body input[type="submit"]:hover,
body .wpcf7-submit:hover {
	background: var(--st-acc);
	color: #fff;
}

.page-numbers.current,
a.page-numbers:hover {
	background: var(--st-acc);
	border-color: var(--st-acc);
	color: #fff;
}

/* Dark footer and strip pick up the blue glow */
body .site-footer {
	background-image: radial-gradient(620px 260px at 50% 0, rgba(35, 57, 255, 0.38), transparent 70%);
}

.st-band {
	background-image: radial-gradient(520px 220px at 12% 0, rgba(35, 57, 255, 0.4), transparent 70%);
}

body .site-info a:hover,
body .site-footer a:hover {
	color: #B8C0FF;
}

/* =====================================================================
   v7: listing cards (search, categories, tags): modern titles, no divider
   ===================================================================== */

/* Word titles in the theme's heading font, no underline */
body .geodir-entry-title,
body h3.geodir-entry-title.h5,
body .geodir-post-title .geodir-entry-title {
	font-family: var(--st-disp);
	font-weight: 800;
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0;
}

body .geodir-entry-title a,
body .geodir-entry-title a:visited {
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: inherit;
	color: var(--st-ink);
	text-decoration: none !important;
	transition: color 0.15s;
}

body .geodir-entry-title a:hover,
body .geodir-entry-title a:focus {
	color: var(--st-acc);
}

body .entry-title a,
body .entry-title a:visited,
body .page-title a {
	font-family: var(--st-disp);
	color: var(--st-ink);
	text-decoration: none;
}

body .entry-title a:hover {
	color: var(--st-acc);
}

/* No divider line inside listing cards */
body .geodir-post .card hr,
body .geodir-post hr,
body .geodir-listings hr,
body .wp-block-geodirectory-geodir-widget-post-title + hr {
	display: none !important;
}

/* Beat the generic blue .entry-content link rule */
body .entry-content .geodir-entry-title a:not(.gb-button):not(.badge),
body .entry-content .geodir-entry-title a:not(.gb-button):not(.badge):visited {
	color: var(--st-ink);
	font-family: var(--st-disp);
	font-weight: 800;
	text-decoration: none !important;
	border: 0;
}

body .entry-content .geodir-entry-title a:not(.gb-button):not(.badge):hover {
	color: var(--st-acc);
}

body .entry-content .geodir-entry-title.h5,
body .entry-content h2.geodir-entry-title {
	font-family: var(--st-disp);
	font-size: clamp(24px, 3vw, 32px);
	text-align: center;
}

/* Remove the short blue bar above card titles; keep it tight to the description */
body .geodir-post-title::before,
body .geodir-entry-title::before {
	display: none !important;
}

body .geodir-post .geodir-post-meta-container,
body .geodir-post .geodir_post_meta {
	margin-top: 6px !important;
	text-align: center;
}

body .geodir-post .geodir_post_meta p {
	font-family: var(--st-body);
}

/* Each listing is one clean card */
body .geodir-listings .geodir-post .card,
body .geodir-category-list-view .geodir-post .card,
body .geodir-widget-posts .geodir-post .card {
	background: var(--st-white);
	border: 1px solid var(--st-hair);
	border-radius: 24px;
	padding: 24px;
	gap: 10px;
	box-shadow: var(--st-shadow);
	transition: transform 0.2s, border-color 0.2s;
}

body .geodir-listings .geodir-post .card:hover,
body .geodir-category-list-view .geodir-post .card:hover,
body .geodir-widget-posts .geodir-post .card:hover {
	transform: translateY(-3px);
	border-color: rgba(35, 57, 255, 0.4);
}

body .geodir-post .geodir_post_meta,
body .geodir-post .geodir-post-meta-container {
	margin-top: 0 !important;
}

body .geodir-post .geodir_post_meta p {
	margin: 0;
	color: var(--st-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* Sidebar keeps its flat list style (more specific than the rules above) */
body .sidebar .geodir-listings .geodir-post .card,
body .sidebar .geodir-widget-posts .geodir-post .card {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--st-hair);
	border-radius: 0;
	padding: 0 0 14px;
	box-shadow: none;
}

body .sidebar .geodir-listings .geodir-post .card:hover,
body .sidebar .geodir-widget-posts .geodir-post .card:hover {
	transform: none;
	border-color: var(--st-hair);
}

body .sidebar .geodir-entry-title,
body .sidebar h3.geodir-entry-title.h5 {
	font-size: 20px;
}

/* =====================================================================
   v8: roomier colourful cards, search without dropdown, no clipping
   ===================================================================== */

/* Remove the post-type dropdown, whatever wrapper it uses */
body .gd-search-field-cpt,
body .gd-search-input-wrapper.gd-search-field-cpt,
body .geodir-search select.search_by_post,
body .geodir-search select[name="stype"] {
	display: none !important;
}

/* Search form: centred pill, never overflows the card */
body .geodir-search-container,
body .geodir-search-form-wrapper {
	max-width: 680px;
	margin: 0 auto 28px !important;
}

body .geodir-search-form-wrapper form,
body .geodir-listing-search {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box !important;
}

body .geodir-search.row {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 10px !important;
	margin: 0 !important;
	padding: 6px 6px 6px 18px !important;
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: 999px;
	box-shadow: 0 8px 30px rgba(35, 57, 255, 0.12);
}

body .geodir-search .gd-search-field-search:first-of-type,
body .geodir-search .gd-search-input-wrapper {
	flex: 1 1 auto !important;
	min-width: 0;
}

body .geodir-search .gd-search-field-search:last-child {
	flex: 0 0 auto !important;
	width: auto;
}

body .geodir-search input.search_text,
body .geodir-search input.form-control {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: var(--st-body);
	font-size: 17px;
	height: 44px;
}

body .geodir-search .input-group-text {
	background: transparent !important;
	border: 0 !important;
	color: var(--st-acc);
}

body .geodir-search .geodir_submit_search {
	width: 48px !important;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50% !important;
	background: var(--st-acc) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(35, 57, 255, 0.35);
	transition: transform 0.15s, background 0.15s;
}

body .geodir-search .geodir_submit_search:hover {
	background: var(--st-acc-ink) !important;
	transform: scale(1.06);
}

/* Listing grid: proper gutters, no clipped edges */
body .geodir-listing-posts.row,
body .geodir-category-list-view.row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	--bs-gutter-x: 20px;
	--bs-gutter-y: 20px;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

body .geodir-listing-posts.row > .geodir-post,
body .geodir-category-list-view.row > .geodir-post {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* The cards: roomy, coloured, with a call to action */
body .geodir-listings .geodir-post .card,
body .geodir-category-list-view .geodir-post .card,
body .geodir-widget-posts .geodir-post .card,
body .geodir-listing-posts .geodir-post .card {
	position: relative;
	overflow: hidden;
	padding: 34px 28px 28px !important;
	gap: 0;
	background:
		radial-gradient(120% 90% at 50% -20%, var(--st-tint) 0%, rgba(228, 232, 255, 0) 60%),
		var(--st-white);
	border: 1px solid var(--st-line) !important;
	border-radius: 28px;
	box-shadow: 0 1px 2px rgba(14, 17, 24, 0.04), 0 14px 34px rgba(35, 57, 255, 0.08);
	text-align: center;
	align-items: center;
	justify-content: flex-start;
}

/* Blue accent strip across the top of each card */
body .geodir-listing-posts .geodir-post .card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 56px;
	height: 5px;
	transform: translateX(-50%);
	border-radius: 0 0 6px 6px;
	background: var(--st-acc);
}

body .geodir-listing-posts .geodir-post .card:hover {
	transform: translateY(-4px);
	border-color: var(--st-acc) !important;
	box-shadow: 0 2px 4px rgba(14, 17, 24, 0.05), 0 22px 46px rgba(35, 57, 255, 0.18);
}

body .geodir-listing-posts .geodir-entry-title,
body .geodir-listing-posts h2.geodir-entry-title {
	margin: 0 0 12px !important;
	text-align: center !important;
}

body .geodir-listing-posts .geodir-post-title,
body .geodir-listing-posts .wp-block-geodirectory-geodir-widget-post-title {
	width: 100%;
}

body .geodir-listing-posts .geodir-post-meta-container {
	width: 100%;
	margin: 0 !important;
}

body .geodir-listing-posts .geodir_post_meta {
	margin: 0 !important;
	padding: 0 !important;
}

body .geodir-listing-posts .geodir_post_meta p {
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--st-muted);
	margin: 0 0 18px;
}

/* "View definition" pill */
body .geodir-listing-posts .geodir-post-meta-container::after {
	content: "View definition \2192";
	display: inline-block;
	font-family: var(--st-mono-font);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--st-acc-ink);
	background: var(--st-tint);
	padding: 8px 16px;
	border-radius: 999px;
	margin-top: auto;
}

body .geodir-listing-posts .geodir-post .card:hover .geodir-post-meta-container::after {
	background: var(--st-acc);
	color: #fff;
}

/* Page heading letter: a touch of colour */
body .entry-header .entry-title {
	color: var(--st-ink);
}

@media (max-width: 720px) {
	body .geodir-listing-posts.row,
	body .geodir-category-list-view.row {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
   v9: sidebar "Latest Terms" widget: single column, tidy, no overlap
   ===================================================================== */

body .sidebar .widget .wp-block-heading,
body .sidebar .widget h5 {
	margin: 0 0 18px !important;
	padding: 0;
	line-height: 1.2;
	position: relative;
	z-index: 1;
}

body .sidebar .geodir-listings,
body .sidebar .geodir_locations {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none;
}

body .sidebar .geodir-widget-posts.row,
body .sidebar .geodir-category-list-view.row {
	display: flex !important;
	flex-direction: column;
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	--bs-gutter-x: 0;
	--bs-gutter-y: 0;
}

body .sidebar .geodir-widget-posts.row > .geodir-post,
body .sidebar .geodir-category-list-view.row > .geodir-post {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
}

body .sidebar .geodir-widget-posts .geodir-post .card,
body .sidebar .geodir-listings .geodir-post .card {
	height: auto !important;
	padding: 20px 18px !important;
	background:
		radial-gradient(120% 100% at 50% -30%, var(--st-tint) 0%, rgba(228, 232, 255, 0) 65%),
		var(--st-white) !important;
	border: 1px solid var(--st-line) !important;
	border-radius: 20px !important;
	box-shadow: 0 8px 22px rgba(35, 57, 255, 0.07);
	align-items: center;
	text-align: center;
}

body .sidebar .geodir-widget-posts .geodir-post .card:hover,
body .sidebar .geodir-listings .geodir-post .card:hover {
	transform: translateY(-2px);
	border-color: var(--st-acc) !important;
}

body .sidebar .geodir-entry-title,
body .sidebar h3.geodir-entry-title.h5 {
	font-size: 22px !important;
	margin: 0 0 6px !important;
	text-align: center !important;
}

body .sidebar .geodir-post .geodir_post_meta,
body .sidebar .geodir-post .geodir-post-meta-container {
	margin: 0 !important;
	padding: 0 !important;
}

body .sidebar .geodir-post .geodir_post_meta p {
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

body .sidebar .geodir-post .geodir-post-meta-container::after {
	display: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
	body .inside-header {
		padding: 16px;
	}

	body .main-navigation .main-nav ul li a {
		padding: 14px 16px;
	}

	body .sidebar .widget {
		padding: 22px;
	}
}
