/*
Theme Name: ProWP
Theme URI: https://themesharbor.com/prowp-block-theme/
Author: Themes Harbor
Author URI: https://themesharbor.com
Description: ProWP is a WordPress block theme built for Full Site Editing. The theme comes with clean and modern design, based on block patterns, which you can customize to build own unique website using WordPress Blocks Editor. Full Site Editing support allows to customize colors, typography, and the layout of every page on a website. ProWP is suitable for various types of website, such as business website, portfolio, single-page website, blog, construction site, education site, etc.
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: prowp
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
*/

/* global */

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

b, strong {
    font-weight: 600;
}

form p {
    margin-block-end: 0;
}

blockquote p:first-child {
    margin-block-start: 0;
}

blockquote p:last-child {
    margin-block-end: 0;
}

:where(input:is(:not([type="submit"])), textarea) {
    border: 1px solid #949494;
    font-family: inherit;
    font-size: 1em;
    max-width: 100%;
}

input:not([type="submit"]):not([type="checkbox"]),
textarea {
    padding: calc(.667em + 2px);
}

label {
    line-height: 1.8;
}

:where(input[type="submit"]:not(.wp-element-button), button:not(.wp-element-button, [role="presentation"], .components-button)) {
    font-size: inherit;
    font-weight: 400;
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    border: 0;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    line-height: inherit;
    cursor: pointer;
}

:where(input[type="submit"]:hover, button:not(.wp-element-button, [role="presentation"], .components-button):hover) {
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
}

.th-flex-1 {
    flex: 1;
}

/* CSS specific to iOS devices */
@supports (-webkit-touch-callout: none) {
    input[type="search"] {
		-webkit-appearance: textfield;
        background-color: var(--wp--preset--color--base);
        color: var(--wp--preset--color--contrast);
	}

    input:not([type="radio"]):not([type="checkbox"]),
    textarea {
        -webkit-appearance: none;
        -webkit-border-radius: 0;
    }
}

/* core/navigation-link */
.current-menu-item .wp-block-navigation-item__content {
    font-weight: bold;
}

/* core/query-pagination */
.wp-block-query-pagination > .wp-block-query-pagination-next,
.wp-block-query-pagination > .wp-block-query-pagination-numbers,
.wp-block-query-pagination > .wp-block-query-pagination-previous {
    margin-block-end: 0;
    margin-inline-end: 0;
}

/* core/query-pagination-numbers */
.wp-block-query-pagination-numbers .current {
    padding: 0.125em 0.5em;
    border: 1px solid;
    display: inline-block;
    min-width: 15px;
    text-align: center;
}

.wp-block-query-pagination-numbers a + .current,
.wp-block-query-pagination-numbers .current + a {
    margin-inline-start: 0.25em;
}

/* core/post-excerpt */
.wp-block-post-excerpt > :first-child {
    margin-block-start: 0;
}

.wp-block-post-excerpt > :last-child {
    margin-block-end: 0;
}

/* core/post-comments-form */
.wp-block-post-comments-form .logged-in-as,
.wp-block-post-comments-form .comment-notes {
    margin-block-start: var(--wp--preset--spacing--20);
}

.wp-block-post-comments-form .logged-in-as + *,
.wp-block-post-comments-form .comment-notes + * {
    margin-block-start: 0.5em;
}

.wp-block-post-comments-form .comment-form-cookies-consent {
    margin-block-start: 1.5em;
    gap: 0.5em;
}

.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent {
    margin-block-start: 0.2em;
}

.wp-block-post-comments-form .logged-in-as,
.wp-block-post-comments-form .comment-notes,
.wp-block-post-comments-form .comment-form-cookies-consent {
    font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-comments-form .comment-form p {
    margin-block-end: 0;
}

.wp-block-post-comments-form .required {
    color: var(--wp--preset--color--vivid-red);
}

.wp-block-post-comments-form .comment-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form .comment-form textarea {
    margin-block-start: 0.5em;
}

/* core/column */
.wp-block-column:empty,
.wp-block-column.empty {
    display: none;
}

.wp-block-column:empty + .wp-block-column {
    margin-inline-start: auto;
}

/* core/group */
.wp-block-group.empty {
    display: none;
}

/* core/search */
.wp-block-search__button svg {
    min-height: 2em;
    min-width: 2em;
}

.wp-block-search__button-inside .wp-block-search__button {
    margin-inline-start: 4px;
}

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
    padding: calc(.667em + 2px);
}

/* core/post-navigation-link */
.wp-block-post-navigation-link:empty {
    display: none;
}

.post-navigation-link__label {
    font-weight: bold;
}

.wp-block-post-navigation-link a:has(> .post-navigation-link__label) {
    text-decoration: none;
}

.wp-block-post-navigation-link a:has(> .post-navigation-link__label) .post-navigation-link__title {
    text-decoration: underline;
}

.wp-block-post-navigation-link a:has(> .post-navigation-link__label):hover .post-navigation-link__title {
    text-decoration: none;
}

/* core/button */
.wp-element-button.has-background:hover  {
    opacity: 0.7;
}

/* core/post-author */
.wp-block-post-author__content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
}

.wp-block-post-author__byline {
    font-size: 1em;
    width: auto;
}

/* core/separator */
.wp-block-separator {
    border-block-end: 0;
}

/* core/template-part */
.wp-block-template-part:empty,
.wp-block-template-part.empty {
    display: none;
}

.wp-block-template-part:has( > *:empty),
.wp-block-template-part:has( > .empty) {
    display: none;
}

/* core/social-links */
.block-editor-block-list__block  .wp-block-social-links {
    padding-inline-end: 3em;
}

/* core/quote */
.wp-block-quote > p:last-of-type {
    margin-block-end: 0.25em;
}


/** utility/singular-sidebar **/
.is-singular-sidebar {
    height: 100%;
}

.is-singular-sidebar .is-singular-navigation {
    margin-block-start: auto;
}

/** utility/tags-section **/
.is-tags-section.is-hidden {
    display: none;
}

/** hack/hide-template-title **/
.page-template-default main {
    padding-block: 1vw;
}

.page-template-default .wp-site-blocks.has-page-content-title main {
    padding-block: 0;
}


.page-template-default .wp-site-blocks:has(.wp-block-post-content .wp-block-post-title) main {
    padding-block: 0;
}

.page-template-default .wp-site-blocks.has-page-content-title .is-page-header {
    display: none;
}

.page-template-default .wp-site-blocks:has(.wp-block-post-content .wp-block-post-title) .is-page-header {
    display: none;
}