/*
Theme Name: Dryland Futures
Author: Susanna Pecora
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.1.5
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Defaults
---------------------------------------- */
body:not(.admin-bar) {
    --wp-admin--admin-bar--height: 0px;
}

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

html {
    scroll-behavior: smooth;
}

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

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
    text-decoration-thickness: 1px;
}

b,
strong,
th {
    font-weight: var(--wp--custom--font-weight--medium);
}

mark {
    background: linear-gradient(
    90deg,
    var(--wp--preset--color--primary) 0%,
    var(--wp--preset--color--primary) 100%
  );
    background-position: 0 85%;
    background-repeat: repeat-x;
    background-size: 100% 15%;
}

/* -- Forms -- */

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

input:focus,
textarea:focus {
    background-color: var(--wp--preset--color--neutral);
    outline: none;
}

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--contrast);
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.5;
}

.wp-block-post-excerpt__more-link {
    padding-top: 20px;
}

.columns-3 li {
    margin-bottom: 2rem;
}


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

/* -- Code -- */

*:not(.wp-block-code) > code {
    background-color: var(--wp--preset--color--neutral);
    font-size: var(--wp--preset--font-size--small);
    padding: 5px 8px;
}

/* sticky header */
@media only screen and (min-width: 600px) {
    .site-header.wp-block-template-part {
        position: sticky;
        top: var(--wp-admin--admin-bar--height);
        background-color: #fff;
        z-index: 999;
        border-bottom: 1px solid var(--wp--preset--color--neutral);
    }
}
/* button hover */
.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--secondary) !important;
}

.wp-block-heading:not(first-of-type) {
    padding-top: var(--wp--preset--spacing--medium);
}
/* -- Navigation -- */
.wp-block-navigation__responsive-container.is-menu-open {
    padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
    padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
    padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
    color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */


span.wp-block-navigation-item__label:hover {
    color: var(--wp--preset--color--primary);
    cursor: pointer;
}
ul.wp-block-navigation__container.is-responsive.header-menu.wp-block-navigation {
    row-gap: 0;
}

@media only screen and (min-width: 600px) {
    .wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
        background-color: var(--wp--preset--color--contrast);
        border: var(--wp--preset--color--contrast);
        color: var(--wp--preset--color--base);
        padding: 10px;
    }

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

    .wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
        box-shadow: var(--wp--preset--shadow--light);
        border-top: 2px solid var(--wp--preset--color--primary);
    }

    .wp-block-navigation-item__content {
        padding: 12px 0;
    }

    .wp-block-column.sidebar {
        border-left: 1px solid var(--wp--preset--color--neutral);
        padding-top: var(--wp--preset--spacing--medium);
        padding-left: var(--wp--preset--spacing--medium);
    }
}

/* footer links list */
footer .wp-block-list {
    padding-left: 12px;
}
/* -- Blogs - single post -- */
header h1.wp-block-post-title {
    padding-bottom: var(--wp--preset--spacing--small);
    font-size: 40px;
}

article .wp-block-post-content .wp-block-image {
    margin: 2rem;
}
/* search box */
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 30px;
}

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper)
  .wp-block-search__input {
    border-radius: 30px;
    padding-left: 10px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    border-radius: 30px;
}

.wp-block-search__input {
    border: 1px solid var(--wp--preset--color--neutral);
}

.wp-block-search__inside-wrapper {
    max-height: 50px;
}

button.wp-block-search__button {
    padding-top: 9px;
}
/* Utility
---------------------------------------- */
.dot-bkgd {
    background-image: radial-gradient(circle, var(--wp--preset--color--primary) 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 70% 100%;
}

p.text-line {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

p.text-line:after {
    content: " ";
    width: 8%;
    height: 2px;
    display: block;
    background-color: #fff;
    position: absolute;
    bottom: 0;
}

p.read-more {
    padding-top: 1em;
    font-weight: 600;
}

p.read-more a:hover {
    font-size: 110%;
}
/* -- Box Shadow -- */
.is-style-shadow-light {
    box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
    box-shadow: var(--wp--preset--shadow--solid);
}

/* Contact form */
form.wpcf7-form input, form.wpcf7-form textarea {
	border:1px solid #ccc;
}
form.wpcf7-form input {
	height:40px
}
form.wpcf7-form label {
    text-transform: uppercase;
    font-weight: 500;
}
.wpcf7-not-valid-tip {
	font-size: 90%;
	text-transform: none
}
.half {
	display: flex;
	column-gap: 2em;
	row-gap: 0
}
.half p {
    width: 50%;
}
form.wpcf7-form input[type="submit"] {
	padding-top: var(--wp--preset--spacing--x-small);
    padding-right: var(--wp--preset--spacing--medium);
    padding-bottom: var(--wp--preset--spacing--x-small);
    padding-left: var(--wp--preset--spacing--medium);
	border-radius: 30px;
	background-color: var(--wp--preset--color--primary);
    border-width: 0;
    color: var(--wp--preset--color--base);
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-block;
    width: 180px;
	height:50px
}

/* category shortcode - horizontal display */
.archive div#all-cats-list {
  columns: 4;
  break-inside: avoid-column;
}
.archive #all-cats-list ul {
  padding-left: 0;
  margin-block-start: 0;
}
.archive #all-cats-list ul > ul {
  padding-bottom: 1.2em;
}
.archive div#all-cats-list h3 {
  margin-block-start: 0;
}
		
/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {
  /* -- Utility -- */
    .wp-block-group.is-style-background > div {
        padding-left: 30px;
        padding-right: 30px;
    }

    .is-style-hidden-mobile {
        display: none !important;
    }
	.half {
		flex-direction: column
	}
	.half p { width: 100% }
	.archive.category div#all-cats-list { columns: 2; }
}

@media only screen and (max-width: 782px) {
  /* -- Columns -- */

    .is-style-columns-reverse {
        flex-direction: column-reverse;
    }
}