/*
Theme Name: The Undeniable Ruth
Theme URI: https://www.undeniableruth.com/
Author: Good People Digital
Author URI: https://mygoodpeople.com/
Description: Custom theme for The Working Alliance
Version: 1.0
*/


/* Defaults
---------------------------------------------------------------------------- */

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-block-button__link {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

ol,
ul {
	margin: 0;
	padding: 0;
}

ul {
	list-style-type: disc;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

blockquote {
	margin: 0;
}

/*
 * Alignment Styles - Originally from TT2.
 * These rules are temporary, and should not
 * be relied on or modified too heavily by
 * themes or plugins that build on Powder.
 * These are meant to be a precursor to a
 * global solution provided by the Block Editor.
 *
 * Relevant issues:
 * https://github.com/WordPress/gutenberg/issues/35607
 * https://github.com/WordPress/gutenberg/issues/35884
---------------------------------------------*/

body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.is-root-container .has-no-background,
.wp-block-cover.alignfull,
.wp-block-group.alignfull,
.alignfull.wp-block-group,
.wp-block-group.has-background,
.has-background.wp-block-group,
.wp-site-blocks {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.block-editor-block-list__layout.is-root-container > .alignfull,
.is-root-container > .wp-block-cover,
.is-root-container > .wp-block-group.has-background,
.is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container > .wp-block-template-part > .wp-block-group.has-background,
.is-root-container .has-no-background,
.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

/* Blocks
---------------------------------------------------------------------------- */

/* Button
--------------------------------------------- */

input[type="button"],
input[type="submit"],
a.more-link,
.wp-block-post-excerpt__more-text a,
.wp-block-post-comments input[type=submit],
.wp-block-search__button {
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 0;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: var(--wp--custom--font-weight--medium);
	padding: 12px 25px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
	width: auto;
}

.wp-block-post-excerpt__more-text a {
	padding: 10px 20px;
}

a.more-link {
	display: inline-block;
	margin-top: 20px;
}

input[type="button"]:focus,
input[type="button"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
a.more-link:focus,
a.more-link:hover,
.wp-block-post-excerpt__more-text a:focus,
.wp-block-post-excerpt__more-text a:hover {
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--main);
	color: var(--wp--preset--color--main);
}

.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-search__button:focus,
.wp-block-search__button:hover {
	text-decoration: none;
}

/* Button - Outline
--------------------------------------------- */

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 1px solid;
	border-color: currentColor;
	color: var(--wp--preset--color--main);
	padding: 10px 25px;
}

/* Caption
--------------------------------------------- */

.wp-block-embed figcaption,
.wp-block-gallery figcaption,
.wp-block-image figcaption,
.wp-block-table figcaption {
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0;
	margin-top: 10px;
	text-align: center;
}

.wp-block-gallery figcaption {
	margin-top: 0;
}

/* Comments
--------------------------------------------- */

.wp-block-comment-template li {
	margin-left: 0;
}

.wp-block-post-comments-form input:not([type=submit]),
.wp-block-post-comments-form textarea {
	border-color: var(--wp--preset--color--main);
}

.wp-block-post-comments-form input[type=submit] {
	border: 1px solid var(--wp--preset--color--main);
}

.wp-block-post-comments-form .form-submit {
	margin-bottom: 0;
}

/* Group
--------------------------------------------- */

.wp-block-group.is-style-shadow {
	box-shadow: 0 0 50px rgb(0 0 0 / 10%);
}

/* List
--------------------------------------------- */

ol li:where(:not([class*='block'])),
ol li:where(.wp-block-list),
ul li:where(:not([class*='block'])),
ul li:where(.wp-block-list) {
	margin-left: 30px;
}

/* Navigation
--------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 30px var(--wp--custom--spacing--outer);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid var(--wp--preset--color--main);
	padding: 2px;
}

.wp-block-navigation:not([style*=text-decoration]) a,
.wp-block-navigation:not([style*=text-decoration]) a:focus,
.wp-block-navigation:not([style*=text-decoration]) a:hover {
	text-decoration: none;
}

/* Navigation Submenu
--------------------------------------------- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	padding: 10px;
	min-width: 180px !important;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) .wp-block-navigation-item__content {
	padding: 2px 10px;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	border-color: var(--wp--preset--color--main);
}

/* Post
--------------------------------------------- */

.wp-block-post:not(:last-of-type) {
	margin-bottom: 60px
}

/* Post Excerpt
--------------------------------------------- */

.wp-block-post-excerpt__excerpt {
	margin-bottom: 20px;
}

/* Post Title
--------------------------------------------- */

.wp-block-post-title a {
	text-decoration: none;
}

/* Pullquote
--------------------------------------------- */

.wp-block-pullquote p,
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
	font-size: var(--wp--preset--font-size--medium);
	margin-bottom: 0;
}

.wp-block-pullquote cite {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	margin-top: 10px;
	text-transform: inherit;
}

/* Quote
--------------------------------------------- */

.wp-block-quote p:last-of-type {
	margin-bottom: 0;
}

.wp-block-quote cite {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	margin-top: 10px;
}

/* Site Title
--------------------------------------------- */

.site-header a,
.site-header .wp-block-site-title a {
	text-decoration: none;
}

/* Social Icons
--------------------------------------------- */

.wp-block-social-links.is-style-border-base .wp-block-social-link {
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--base);
}

.wp-block-social-links .wp-social-link svg {
	height: 20px;
	width: 20px;
}

/* Theme
---------------------------------------------------------------------------- */

/* Forms
--------------------------------------------- */

input,
select,
textarea,
.wp-block-search__input {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--main);
	border-radius: 0;
	color: var(--wp--preset--color--main);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Experimental Styles
--------------------------------------------- */

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
.wp-block-image:last-child {
	margin-bottom: 0;
}

.is-root-container h1 + *,
.is-root-container h2 + *,
.is-root-container h3 + *,
.is-root-container h4 + *,
.is-root-container h5 + *,
.is-root-container h6 + *,
.wp-block-post-content h1 + *,
.wp-block-post-content h2 + *,
.wp-block-post-content h3 + *,
.wp-block-post-content h4 + *,
.wp-block-post-content h5 + *,
.wp-block-post-content h6 + *,
.wp-block-query-title + * {
	margin-top: 10px !important;
}

.wp-block-spacer + * {
	margin-top: 0 !important;
}

/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (min-width: 800px) {

	/* Pullquote
	--------------------------------------------- */

	.wp-block-pullquote.alignleft,
	.wp-block-pullquote.alignright {
		max-width: 300px;
	}

	.wp-block-pullquote.alignleft {
		float: left;
		margin-right: 30px !important;
	}

	.wp-block-pullquote.alignright {
		float: right;
		margin-left: 30px !important;
	}

}