/*
Theme Name: Rothwell
Theme URI: https://www.manchester.ac.uk/
Author: Philip Boulton
Author URI: https://www.manchester.ac.uk/
Description: Rothwell is a modern, multi-purpose, full-site editing theme developed for the University of Manchester. It focuses on customisability, allowing users to easily customise colours, typography, and the layout to suit their needs.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, three-column, template-editing, wide-blocks
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 0.8.2
Text Domain: rothwell
*/


/* Defaults
---------------------------------------- */
*,
*::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%;
}

/*
 * Editor Styles
 */
 .editor-styles-wrapper input:focus, .editor-styles-wrapper textarea:focus {
    background-color: var(--wp--preset--color--based);
    outline: none;
} 

/* Forms
---------------------------------------- */
input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--base-6);
	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--base-7);
	outline: none;
	border: 1px solid var(--wp--preset--color--base-2);
}

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 {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

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


/*
 * Contact Form 7
 */

input.wpcf7-submit {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--base);
}
/* 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;
}

/* -- 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-5);
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	color: var(--wp--preset--color--base-5);
	padding: 10px;
}

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

.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
    fill: currentColor;
    display: block;
    height: 32px;
    pointer-events: none;
    width: 32px;
}

/* Navigation */
li.home-icon a {
	display: block;
	padding: 0;
	width: 28px;
	height: auto;
	overflow: hidden;
	background: url(assets/images/home-icon.svg) 0% 0% no-repeat;
	text-indent: -999px;
	color: #fff;
	font-weight: 700;
}

li.search-icon a {
	display: block;
	padding: 0;
	width: 25px;
	height: auto;
	overflow: hidden;
	background: url(assets/images/search-icon.svg) 0% 25% no-repeat;
	text-indent: -999px;
	color: #fff;
	font-weight: 700;
}


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

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

	/* -- Columns -- */
	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}
	/* -- Navigation -- */
	.wp-block-navigation.nav-primary--mobile {
		display: none;
	}
}

@media only screen and ( max-width: 781px ) {
	/* -- Navigation -- */
	.nav-primary--desktop {
	 display: none;
	}

	.wp-block-navigation.nav-primary--mobile {
		display: flex;
	}
}