/*!
Theme Name: We Are City Directory Theme
Theme URI: https://github.com/we-are-web-services/we-are-city-directory
Author: We Are City Hubs
Author URI:
Description: The companion starter theme for the We Are City Directory plugin's multi-city site template. Based on Underscores (_s).
Version: 1.3.2
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: we-are-city-directory-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

_s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	/* --cd-primary-color is set by Customizer > City Directory Branding (inc/branding.php) —
	   a city that never sets one keeps this exact stock Underscores blue unchanged. Only the
	   base link color is tied to it, not :hover below — that stays a plain theme default
	   rather than trying to derive a whole hover/visited palette from one brand color. */
	color: var(--cd-primary-color, #4169e1);
}

/* Visited links look like unvisited ones (theme 1.2.12, David 2026-11-29): the stock purple :visited rule is gone, so a
   link keeps its own color whether or not it was opened (card titles included). */

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* =====================================================================
   City Directory Theme — bottom, app-style navigation (inc/bottom-nav.php)
   The primary menu (#site-navigation, .cd-app-nav) becomes a tab bar fixed to the bottom of the
   screen: on every screen size (body.cd-bottom-nav-all, the default) or on phones only
   (body.cd-bottom-nav-phones, how theme 1.0.x behaved). Customizer → City Directory Branding →
   Bottom Menu. The page always keeps the bar's real height free at the bottom, so nothing is
   hidden behind it, including anchor jumps and keyboard focus (scroll-padding). An item with
   sub-items opens them in a pop-up above the bar, centered on the screen.
   ===================================================================== */

html {
	scroll-padding-bottom: var(--cd-bottom-nav-height, 0px);
}

body.cd-bottom-nav-all {
	/* Keeps the end of every page clear of the bar: its measured height (js/bottom-nav.js), or a
	   64px guess plus the iPhone home-bar area until the script has run. */
	padding-bottom: var(--cd-bottom-nav-height, calc(64px + env(safe-area-inset-bottom, 0px)));
}

body.cd-bottom-nav-all .cd-app-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	width: auto;
	background: #fff;
	box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.cd-bottom-nav-all .cd-app-nav .menu-toggle {
	display: none; /* the bar is always fully visible — no toggle needed */
}

body.cd-bottom-nav-all .cd-app-nav ul {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	justify-content: center;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

body.cd-bottom-nav-all .cd-app-nav ul li {
	flex: 1 1 0;
	min-width: 0;
	max-width: 120px;
	float: none;
	text-align: center;
}

body.cd-bottom-nav-all .cd-app-nav ul li a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 100%;
	min-height: 48px; /* a comfortable tap target, also when a link has no icon */
	box-sizing: border-box;
	padding: 8px 4px;
	/* Dark text on the white bar. The header band's white link color (a navy header) reached this
	   bar because the menu sits inside the header, so labels were white on white (theme 1.2.6). */
	color: #2c3338;
	font-size: 0.75rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

body.cd-bottom-nav-all .cd-app-nav .cd-nav-icon {
	width: 22px;
	height: 22px;
	font-size: 22px;
	line-height: 22px;
	text-align: center;
}

/* Font Awesome glyphs sit a little larger in their box than Dashicons; this evens them out. */
body.cd-bottom-nav-all .cd-app-nav .cd-nav-icon.cd-fa {
	font-size: 19px;
}

body.cd-bottom-nav-all .cd-app-nav .cd-nav-label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.cd-bottom-nav-all .cd-app-nav .current-menu-item > a,
body.cd-bottom-nav-all .cd-app-nav .current_page_item > a,
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.cd-open > a {
	color: var(--cd-primary-color, #4169e1);
	font-weight: 600;
}

body.cd-bottom-nav-all .cd-app-nav a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Sub-items don't sit in the bar itself. A top-level item with sub-items opens them as a pop-up
   above the bar, centered on the screen (js/bottom-nav.js adds .cd-open). */
body.cd-bottom-nav-all .cd-app-nav ul ul {
	display: none;
}

body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .children {
	display: block;
	position: fixed;
	top: auto;
	right: auto;
	left: 50%;
	bottom: calc(var(--cd-bottom-nav-height, 64px) + 8px);
	transform: translateX(-50%);
	z-index: 101;
	float: none;
	width: max-content;
	min-width: 220px;
	max-width: calc(100vw - 16px);
	max-height: calc(100vh - var(--cd-bottom-nav-height, 64px) - 24px);
	max-height: calc(100dvh - var(--cd-bottom-nav-height, 64px) - 24px);
	overflow-y: auto;
	margin: 0;
	padding: 6px 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	text-align: left;
}

body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu li,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .children li {
	display: block;
	max-width: none;
	float: none;
	text-align: left;
}

body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu a,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .children a {
	flex-direction: row;
	justify-content: flex-start;
	gap: 10px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	font-size: 1rem;
	white-space: normal;
}

body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu a:hover,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu a:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

/* Deeper levels show inline, indented, inside the same pop-up. */
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu ul {
	display: block;
	position: static;
	box-shadow: none;
	padding: 0 0 0 16px;
	max-width: none;
}

/* A small arrow on items that open a pop-up, pointing up (closed) or down (open). */
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.menu-item-has-children > a .cd-nav-label::after,
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.page_item_has_children > a::after {
	content: "";
	display: inline-block;
	margin-left: 4px;
	border: 4px solid transparent;
	border-bottom-color: currentColor;
	border-top-width: 0;
	vertical-align: middle;
}

body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.cd-open > a .cd-nav-label::after {
	border-bottom-width: 0;
	border-top: 4px solid currentColor;
}

body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu a .cd-nav-label::after {
	display: none;
}

@media screen and (max-width: 37.5em) {

	body.cd-bottom-nav-phones {
		/* Keeps the end of every page clear of the bar: its measured height (js/bottom-nav.js), or a
		   64px guess plus the iPhone home-bar area until the script has run. */
		padding-bottom: var(--cd-bottom-nav-height, calc(64px + env(safe-area-inset-bottom, 0px)));
	}

	body.cd-bottom-nav-phones .cd-app-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100;
		width: auto;
		background: #fff;
		box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	body.cd-bottom-nav-phones .cd-app-nav .menu-toggle {
		display: none; /* the bar is always fully visible — no toggle needed */
	}

	body.cd-bottom-nav-phones .cd-app-nav ul {
		display: flex;
		align-items: stretch;
		flex-wrap: nowrap;
		justify-content: center;
		max-width: 960px;
		margin: 0 auto;
		padding: 0;
		list-style: none;
	}

	body.cd-bottom-nav-phones .cd-app-nav ul li {
		flex: 1 1 0;
		min-width: 0;
		max-width: 140px;
		float: none;
		text-align: center;
	}

	body.cd-bottom-nav-phones .cd-app-nav ul li a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		height: 100%;
		min-height: 48px;
		box-sizing: border-box;
		padding: 8px 4px;
		color: #2c3338;
		font-size: 0.75rem;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}

	body.cd-bottom-nav-phones .cd-app-nav .cd-nav-icon {
		width: 22px;
		height: 22px;
		font-size: 22px;
		line-height: 22px;
		text-align: center;
	}

	/* Font Awesome glyphs sit a little larger in their box than Dashicons; this evens them out. */
	body.cd-bottom-nav-phones .cd-app-nav .cd-nav-icon.cd-fa {
		font-size: 19px;
	}

	body.cd-bottom-nav-phones .cd-app-nav .cd-nav-label {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.cd-bottom-nav-phones .cd-app-nav .current-menu-item > a,
	body.cd-bottom-nav-phones .cd-app-nav .current_page_item > a,
	body.cd-bottom-nav-phones .cd-app-nav #primary-menu > li.cd-open > a {
		color: var(--cd-primary-color, #4169e1);
		font-weight: 600;
	}

	body.cd-bottom-nav-phones .cd-app-nav a:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: -2px;
	}

	/* Sub-items don't sit in the bar itself. A top-level item with sub-items opens them as a pop-up
	   above the bar, centered on the screen (js/bottom-nav.js adds .cd-open). */
	body.cd-bottom-nav-phones .cd-app-nav ul ul {
		display: none;
	}

	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu,
	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .children {
		display: block;
		position: fixed;
		top: auto;
		right: auto;
		left: 50%;
		bottom: calc(var(--cd-bottom-nav-height, 64px) + 8px);
		transform: translateX(-50%);
		z-index: 101;
		float: none;
		width: max-content;
		min-width: 220px;
		max-width: calc(100vw - 16px);
		max-height: calc(100vh - var(--cd-bottom-nav-height, 64px) - 24px);
		max-height: calc(100dvh - var(--cd-bottom-nav-height, 64px) - 24px);
		overflow-y: auto;
		margin: 0;
		padding: 6px 0;
		background: #fff;
		border-radius: 10px;
		box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
		text-align: left;
	}

	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu li,
	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .children li {
		display: block;
		max-width: none;
		float: none;
		text-align: left;
	}

	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu a,
	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .children a {
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		width: auto;
		height: auto;
		padding: 12px 18px;
		font-size: 1rem;
		white-space: normal;
	}

	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu a:hover,
	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu a:focus-visible {
		background: rgba(0, 0, 0, 0.05);
	}

	/* Deeper levels show inline, indented, inside the same pop-up. */
	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu ul {
		display: block;
		position: static;
		box-shadow: none;
		padding: 0 0 0 16px;
		max-width: none;
	}

	/* A small arrow on items that open a pop-up, pointing up (closed) or down (open). */
	body.cd-bottom-nav-phones .cd-app-nav #primary-menu > li.menu-item-has-children > a .cd-nav-label::after,
	body.cd-bottom-nav-phones .cd-app-nav #primary-menu > li.page_item_has_children > a::after {
		content: "";
		display: inline-block;
		margin-left: 4px;
		border: 4px solid transparent;
		border-bottom-color: currentColor;
		border-top-width: 0;
		vertical-align: middle;
	}

	body.cd-bottom-nav-phones .cd-app-nav #primary-menu > li.cd-open > a .cd-nav-label::after {
		border-bottom-width: 0;
		border-top: 4px solid currentColor;
	}

	body.cd-bottom-nav-phones .cd-app-nav li.cd-open > .sub-menu a .cd-nav-label::after {
		display: none;
	}
}

/* =====================================================================
   Homepage hero/search area (front-page.php)
   ===================================================================== */

.cd-hero {
	padding: 2rem 1rem;
	text-align: center;
}

.cd-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

/* =====================================================================
   Footer secondary navigation (footer.php, "Footer" menu location)
   ===================================================================== */

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1em;
	margin: 0 0 0.5em;
	padding: 0;
	list-style: none;
}


/* Header on a color band (Customizer > City Directory Branding > Header; inc/branding.php).
   The band is the Primary / Brand Color; the logo is centered. With a logo set, the site name and
   tagline stay for screen readers only, since a city logo usually already says them. */
body.cd-header-band .site-header {
	background: var(--cd-primary-color, #1d2327);
	color: #fff;
}
body.cd-header-band .site-branding {
	padding: 16px 20px;
	text-align: center;
}
body.cd-header-band .custom-logo-link {
	display: block;
}
body.cd-header-band .custom-logo {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 150px;
	margin: 0 auto;
}
body.cd-header-band .site-title a,
body.cd-header-band .site-description,
body.cd-header-band .main-navigation a {
	color: #fff;
}
body.cd-header-band.wp-custom-logo .site-title,
body.cd-header-band.wp-custom-logo .site-description {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* The front page's own title stays in the page for screen readers and search engines but is not
   drawn: the Home page's content starts right under the header (the hero search, when shown). */
body.home.page .entry-header {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* =====================================================================
   Page width (theme 1.2.2): on a wide screen the content sits in a centered column with side
   gutters instead of running to the browser's edges. Change --cd-content-width to widen or
   narrow it. A block set to "Full width" (alignfull, such as the front page's featured slide)
   still goes edge to edge; "Wide" (alignwide) gets a little extra room.
   ===================================================================== */
:root {
	--cd-content-width: 1200px;
	--cd-wide-width: 1400px;
	--cd-gutter: 1.25rem;
}

.site-main,
.site-footer .site-info,
.site-footer .footer-navigation {
	box-sizing: border-box;
}

.site-main > article > *:not(.entry-content):not(.alignfull),
.site-main > .page-header,
.site-main > .search-form,
.site-main > nav,
.site-main > .no-results,
.site-main > section,
.entry-content > *:not(.alignfull):not(.alignwide),
.cd-single-listing > .cd-listing-body,
.cd-archive,
.cd-hero-inner,
.site-footer > * {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--cd-content-width) + 2 * var(--cd-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--cd-gutter);
	padding-right: var(--cd-gutter);
}

.site-main > article > .post-thumbnail {
	display: block;
}

.entry-content > .alignwide {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--cd-wide-width) + 2 * var(--cd-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--cd-gutter);
	padding-right: var(--cd-gutter);
}

.cd-hero-inner {
	max-width: 720px;
}

/* =====================================================================
   Polish (theme 1.2.3): centered footer credit, steadier spacing between front-page sections,
   and a darker, readable footer link color.
   ===================================================================== */
.site-footer {
	padding-top: 1.5rem;
	padding-bottom: 2rem;
	text-align: center;
	border-top: 1px solid #e2e2e2;
	margin-top: 2rem;
}

.site-footer .site-info {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: #555;
}

.entry-content > h2,
.entry-content > .wp-block-heading {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

/* "No listings found" inside a section (for example an empty category on a front page): a quiet,
   centered, light-grey note instead of a bare line of text at the left edge. This is the theme's look,
   not the plugin's, so a site on another theme (a Divi site, say) keeps its own styling. */
.cd-no-results {
	margin: 0;
	padding: 24px 16px;
	text-align: center;
	color: #666;
	font-size: 0.95em;
	background: #f7f7f7;
	border-radius: 6px;
}

/* The "All Businesses", "All Events" ... link under a section: centered under it. The plugin's own
   style puts it at the right; this is the theme's look, so a site on another theme keeps its own. */
.cd-view-all {
	text-align: center;
}

/* The front page's featured image sits flush under the header (theme 1.2.6). Two stacked top margins
   (the content area's 1.5em and the featured block's 24px) used to leave a white strip between them.
   Only when the featured block is the first thing on the page; other pages start with a title, which
   keeps its normal space above it. */
body.home.page .entry-content {
	margin-top: 0;
}

body.home.page .entry-content > .alignfull:first-child .cd-featured-listing {
	margin-top: 0;
}

/* One menu (theme 1.2.7): the fixed bottom bar looks like the old footer menu was meant to: 16px text in
   the primary color, no little arrows. Its pop-ups work as before. A site that also showed a second copy
   of the menu in the footer location should leave that location empty (Appearance > Menus). */
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li > a {
	font-size: 1rem;
	color: var(--cd-primary-color, #1d2327);
}

body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.menu-item-has-children > a .cd-nav-label::after,
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.page_item_has_children > a::after,
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.cd-open > a .cd-nav-label::after {
	display: none;
}

/* Featured header on directory archives (theme 1.2.8, plugin 0.62.0): full width like the front page, flush
   under the site header, with a little space before the title and search form. */
.cd-archive-featured {
	width: 100%;
	margin: 0 0 1.5rem;
}

.cd-archive-featured .cd-featured-listing {
	margin-top: 0;
}

/* A page that starts with the featured block has no title bar above it (theme 1.2.9): the featured block
   is the header, with the page title as its text. Like the front page, the title stays in the page for
   screen readers and search engines but is not drawn, and the block sits flush under the site header. */
.site-main article:has(> .entry-content > .alignfull:first-child .cd-featured-listing) > .entry-header {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.site-main article:has(> .entry-content > .alignfull:first-child .cd-featured-listing) > .entry-content {
	margin-top: 0;
}

.site-main article:has(> .entry-content > .alignfull:first-child .cd-featured-listing) .entry-content > .alignfull:first-child .cd-featured-listing {
	margin-top: 0;
}

/* Listing page photo (theme 1.2.11, plugin 0.66.0): runs edge to edge under the site header, like the front
   page's featured block. The plugin's own style breaks it out of a narrow column; here the page is already
   full width, so it only needs to fill it. The title, pills and tiles below keep the content width. */
.cd-single-listing > .cd-listing-hero {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.cd-listing-body {
	padding-top: 0.5rem;
}

/* Space under the last thing on a page (theme 1.2.14). With no footer band (1.2.13) the end of a page sat flush
   against the top of the bottom bar. A page without a footer now ends with 2rem of room (the bar's own height is
   already kept clear by the body's padding above). */
body:not(:has(#colophon)) #page {
	padding-bottom: 2rem;
}

/* =====================================================================
   Surfaces (theme 1.3.0): less white. The front page's sections are alternating light and gray bands
   (inc/home-bands.php), cards are white with a soft shadow instead of a border, and buttons are filled.
   Listing pages keep a lighter, crisper look: small corners, thin borders, red buttons and pale blue boxes.
   Change the colors and corners here (a city can override these variables in its own CSS).
   ===================================================================== */
:root {
	--cd-band-tint: #e9ecef;
	--cd-accent: #bf0a30;
	--cd-mist: #eaf0f7;
	--cd-card-radius: 14px;
	--cd-card-shadow: 0 2px 10px rgba(30, 40, 60, 0.1);
	--cd-card-shadow-hover: 0 6px 18px rgba(30, 40, 60, 0.16);
}

/* Front page bands. A band is a full-width group; its contents keep the normal content width. */
.entry-content > .cd-band {
	margin: 0;
	padding: 2.75rem 0;
}

.entry-content > .cd-band-tint {
	background: var(--cd-band-tint);
}

.entry-content > .cd-band > * {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--cd-content-width) + 2 * var(--cd-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--cd-gutter);
	padding-right: var(--cd-gutter);
}

.entry-content > .cd-band > .wp-block-heading {
	margin-top: 0;
	margin-bottom: 1.25rem;
	color: var(--cd-primary-color, #002147);
}

.entry-content > .cd-band > * + * {
	margin-top: 0;
}

/* Cards: white, no border, a soft shadow. */
body .cd-listing-card,
body .cd-category-item a {
	background: #fff;
	border: 0;
	border-radius: var(--cd-card-radius);
	box-shadow: var(--cd-card-shadow);
}

body .cd-listing-card {
	overflow: hidden;
}

body .cd-listing-card:hover,
body .cd-category-item a:hover {
	box-shadow: var(--cd-card-shadow-hover);
}

/* Buttons: filled, rounded. */
body .cd-button,
body .cd-view-all a {
	display: inline-block;
	padding: 10px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--cd-primary-color, #002147);
	color: #fff;
	text-decoration: none;
}

body .cd-button:hover,
body .cd-button:focus,
body .cd-view-all a:hover,
body .cd-view-all a:focus {
	background: var(--cd-accent);
	color: #fff;
}

/* Listing pages: small corners, thin borders, red buttons, pale blue boxes. */
body .cd-single-listing .cd-info-tile {
	border: 1px solid rgba(0, 33, 71, 0.15);
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

body .cd-single-listing .cd-pill {
	background: #fff;
}

body .cd-single-listing .cd-pill:hover,
body .cd-single-listing .cd-pill:focus-visible {
	background: var(--cd-primary-color, #002147);
	color: #fff;
}

body .cd-single-listing .cd-button,
body .cd-single-listing .cd-claim-form button,
body .cd-single-listing .cd-contact-box button {
	border: 0;
	border-radius: 4px;
	background: var(--cd-accent);
	color: #fff;
}

body .cd-single-listing .cd-button:hover,
body .cd-single-listing .cd-claim-form button:hover,
body .cd-single-listing .cd-contact-box button:hover {
	background: var(--cd-primary-color, #002147);
	color: #fff;
}

body .cd-single-listing .cd-claim-box,
body .cd-single-listing .cd-contact-box,
body .cd-single-listing .cd-report-box {
	border: 0;
	border-radius: 6px;
	background: var(--cd-mist);
}

/* =====================================================================
   Theme 1.3.1: the bottom menu is the same blue as the header, with white labels, and the category tiles are
   the same blue as the buttons (filled, white text, red on hover).
   ===================================================================== */
body.cd-bottom-nav-all .cd-app-nav {
	background: var(--cd-primary-color, #002147);
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

body.cd-bottom-nav-all .cd-app-nav ul li a,
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li > a {
	color: #fff;
}

/* The page you are on, or the pop-up that is open: white, bold, with a red line on top of the button. */
body.cd-bottom-nav-all .cd-app-nav .current-menu-item > a,
body.cd-bottom-nav-all .cd-app-nav .current_page_item > a,
body.cd-bottom-nav-all .cd-app-nav #primary-menu > li.cd-open > a {
	color: #fff;
	font-weight: 600;
	box-shadow: inset 0 3px 0 var(--cd-accent);
}

/* The pop-up lists are blue as well. */
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .children {
	background: var(--cd-primary-color, #002147);
}

body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu a:hover,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu a:focus-visible {
	background: rgba(255, 255, 255, 0.14);
}

body.cd-bottom-nav-all .cd-app-nav .current-menu-item > .sub-menu a,
body.cd-bottom-nav-all .cd-app-nav li.cd-open > .sub-menu .current-menu-item > a {
	box-shadow: none;
}

/* Category tiles: filled with the same blue as the buttons. */
body .cd-category-item a {
	background: var(--cd-primary-color, #002147);
	color: #fff;
}

body .cd-category-item a:hover,
body .cd-category-item a:focus {
	background: var(--cd-accent);
	color: #fff;
}

body .cd-category-item .cd-category-count,
body .cd-category-item .cd-category-description {
	color: rgba(255, 255, 255, 0.8);
}

body .cd-category-item .cd-category-icon {
	color: #fff;
}
