/*
Theme Name: Sandylands Church
Description: Sandylands Church customisations for Twenty Eleven, migrated from the original customised 1.7 theme.
Author: Sandylands Church
Template: twentyeleven
Version: 1.0.2
Requires at least: 5.3
Requires PHP: 5.6
Text Domain: sandylands-twentyeleven
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* The parent supplies the base layout, responsive rules and block styles. */
@font-face {
	font-family: 'simpledirectionarrowsregular';
	src: url('fonts/simpledirectionarrows-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

body,
input,
textarea {
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	font-weight: 400;
}

h1,
h2,
h3,
h4,
input[type="submit"] {
	font-family: 'Montserrat', sans-serif;
}

h1 {
	color: #176e3a !important;
	font-size: 16px;
	font-weight: normal;
}

::selection { background: #fed001; }
::-moz-selection { background: #fed001; }

blockquote,
blockquote cite,
.wp-caption .wp-caption-text,
.gallery-caption {
	font-family: inherit;
}

blockquote cite,
pre,
code,
kbd,
samp,
var,
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size: inherit;
}

blockquote cite,
.page-link a,
section.feature-image.large .entry-title a {
	font-weight: inherit;
}

pre,
code,
kbd,
samp,
var {
	font-family: inherit;
}

#branding { border-top-color: #4f9c45; }
.header-logo { display: table; margin: 35px 0; }
#branding .header-logo img { display: block; width: auto; height: auto; max-width: 100%; }
.header-image,
.attachment-post-thumbnail { width: 100%; height: auto; }
.sandylands-header-media img { display: block; width: 100%; height: auto; }

#access,
input[type="submit"] {
	background: #4f9c45;
	background: linear-gradient(to bottom, #4f9c45 0%, #176e3a 100%);
}

#access ul {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: normal;
}

#access a { padding-right: 10px; padding-left: 10px; }
#access li.submenu-open > ul { display: block; }
#access li:focus-within > ul { display: block; }
.sandylands-menu-toggle { display: none; }
#main { padding-top: 0; }
#secondary { margin-top: 20px; }
.post { margin-top: 20px !important; }
.entry-content { min-height: 400px; }
.singular .hentry,
.singular.page .hentry { padding-top: 0; }
.entry-content td,
.comment-content td { padding: 0; }
.widget-title { font-size: 12px; }
.widget-area .my-calendar-header,
.widget-area .category-key { display: none; }

.room-hire-table { border-left: 1px solid #ddd; }
.room-hire-table td { border-right: 1px solid #ddd; padding: 3px; }
.contact-table td { border: 0 !important; }
.whats-on-table img { text-align: center; }
.whats-on-table td { border: 0 !important; padding: 20px 0 20px 20px !important; }
.whats-on-table td img { display: block; margin-right: auto; margin-left: auto; clear: both; max-width: none; }
.whats-on-table h3 span:first-child { color: #176e3a; }
.whats-on-2 { color: #ea2020; font-family: 'Open Sans', sans-serif; font-size: 28px; font-weight: 800 !important; }
.whats-on-table h3 {
	margin: 0 !important;
	padding: 0 !important;
	font-family: 'Open Sans', sans-serif;
	font-size: 25px !important;
	font-weight: 800;
	text-align: center !important;
	text-transform: uppercase;
}

.contact-form { display: table; width: 450px; max-width: 100%; }
.contact-form input:focus,
.contact-form textarea:focus { border: 1px solid #4f9c45 !important; }
.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
	width: 300px;
	max-width: 100%;
	margin: 2px 5px 0;
	padding: 7px;
	border: 1px solid #b0b0b0;
	background-repeat: no-repeat;
}
.contact-form textarea { float: right; }
.contact-form p { float: right; margin-bottom: 5px; }
.contact-form input[type="submit"] { margin-top: 5px; margin-right: 5px; }
.contact-form .wpcf7-not-valid-tip-no-ajax { float: right; margin-top: 5px; color: #f00; font-weight: 700; }
.contact-form .wpcf7-validation-errors { margin-top: 20px; }
.wpcf7-validation-errors { float: right; padding: 10px; background-color: red; color: #fff; font-weight: 700; }
div.wpcf7-mail-sent-ok { float: right; clear: both; }
.fancybox { margin-right: 20px; }

input[type="submit"] {
	float: left;
	clear: both;
	padding: 7px;
	border: 1px solid #59bf4c;
	border-radius: 3px;
	box-shadow: 0 0 2px rgba(50, 50, 50, .5);
	color: #fff;
	font-weight: 700;
}
input[type="submit"]:hover,
input[type="button"]:hover { background: #48893d; background: linear-gradient(to bottom, #48893d, #135b2b); cursor: pointer; }
input[type="submit"]:active,
input[type="button"]:active { background: #3c6b30; background: linear-gradient(to bottom, #3c6b30, #0d3f1f); box-shadow: none; }
.download-container { display: table; width: 100%; margin-bottom: 40px; }
.download-container p { display: none; }
.download-container h1 { margin-bottom: 0 !important; }
#mc4wp-form-1 input[type="email"],
#mc4wp-form-1 input[type="text"] { padding: 6px; }
#mc4wp-form-1 p { margin-bottom: 10px; }

.fairtrade-logo { display: block; width: auto; max-width: 100%; margin: 20px auto 0; }
#site-generator {
	height: 209px;
	padding: 50px 0 0;
	border-top: 0;
	background: transparent url('images/footer-image.jpg') no-repeat bottom;
	background-size: 100% auto;
}
.designworks-footer-link,
#site-generator a.designworks-footer-link {
	display: block;
	float: right;
	margin-top: 180px;
	margin-right: 20px;
	color: #fff !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: normal;
}
.contact-footer { float: left; position: relative; }
.contact-footer p { margin: 10px 0; color: #000; font-size: 13px; }
.contact-footer img { float: left; margin-right: 5px; }
.contact-footer a { text-decoration: none; }
.contact-footer p span { color: #4f9c45; font-weight: 800; }
.contact-footer p:first-child { margin-top: 0 !important; }
.contact-footer .hr-div { display: block; height: 1px; margin: 15px 0 0; background-color: #fff; }
.one_half_last_clear { overflow: hidden !important; }

/* Retain fluid parent image handling and visible keyboard focus. */
#access a:focus-visible,
.sandylands-menu-toggle:focus-visible { outline: 2px solid #fed001; outline-offset: -3px; }

@media (max-width: 800px) {
	.contact-table { display: none; }
	#access li,
	#access ul ul li { clear: both; width: 100%; }
	#access li a { box-sizing: border-box; width: 100%; border-top: 1px solid #a8a8a8; line-height: 30px; }
	#access ul ul li a { display: block; width: 100%; padding: 0 10px; font-size: 12px; line-height: 30px; }
	#access ul ul { position: relative; top: 0; width: 100%; box-shadow: none; }
	#access ul ul ul { left: 0; }
	#access.sandylands-menu-enhanced ul li:hover > ul,
	#access.sandylands-menu-enhanced ul li:focus-within > ul { display: none; }
	#access.sandylands-menu-enhanced ul li.submenu-open > ul { display: block; }
	#access .has-child > a { padding-right: 45px; }
	#access .sandylands-menu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 40px;
		height: 31px;
		padding: 0;
		border: 0;
		border-left: 1px solid #a8a8a8;
		border-radius: 0;
		background: transparent;
		color: inherit;
		font-family: 'simpledirectionarrowsregular';
		font-size: 18px;
		line-height: 30px;
		text-shadow: none;
		box-shadow: none;
		cursor: pointer;
	}
	#access .menu-item-24 > a { border-top: 0 !important; }
	.fb-like-box span,
	.fb-like-box iframe { max-width: 100%; width: 200px !important; }
	.contact-form input[type="submit"] { margin-right: -15px; }
	table img { width: 100%; height: auto; }
	#branding .header-logo img { width: 100%; height: auto; }
	#searchform { display: none; }
	.contact-form { width: 90%; }
	.contact-form input[type="email"],
	.contact-form input[type="text"],
	.contact-form textarea { box-sizing: border-box; width: 100%; margin: 0; }
	.contact-form p { width: 100%; }
	.contact-form textarea { float: none; }
	/* Parent mobile spacing must win over the desktop customisation. */
	.singular .hentry,
	.singular.page .hentry { padding-top: 1.625em; }
}

@media (max-width: 650px) {
	body { background-color: #fff !important; }
	#access ul { font-size: 12px; }
}

@media print {
	#branding .header-logo img { display: none; }
	.singular .hentry,
	.singular.page .hentry { padding-top: 0; }
}

/* Compact My Calendar widget only; full-page calendars and modals are unchanged. */
#secondary .widget_my_calendar_mini_widget {
	box-sizing: border-box;
	width: 100%;
	max-width: 360px;
	margin: 0 0 24px;
	padding: 12px 9px;
	border: 1px solid #dce5da;
	border-radius: 6px;
	background: #fff;
}
#secondary .widget_my_calendar_mini_widget > .widget-title {
	margin: 0 0 10px;
	color: #176e3a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.4;
}
#secondary .widget_my_calendar_mini_widget .mc-main {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: 'Open Sans', sans-serif;
}
#secondary .widget_my_calendar_mini_widget .my-calendar-month {
	margin: 0 0 8px;
	padding: 7px 3px;
	border: 0;
	border-radius: 3px;
	background: #f1f6ee;
	color: #176e3a;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}
#secondary .widget_my_calendar_mini_widget .my-calendar-navigation { margin: 0 0 8px; padding: 0; }
#secondary .widget_my_calendar_mini_widget .my-calendar-header { display: block; margin: 0; padding: 0; }
#secondary .widget_my_calendar_mini_widget .my-calendar-date-switcher,
#secondary .widget_my_calendar_mini_widget .mc-print,
#secondary .widget_my_calendar_mini_widget .category-key { display: none; }
#secondary .widget_my_calendar_mini_widget .my-calendar-nav { display: block; width: 100%; margin: 0; }
#secondary .widget_my_calendar_mini_widget .my-calendar-nav ul {
	display: flex;
	flex-wrap: nowrap;
	gap: 3px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
#secondary .widget_my_calendar_mini_widget .my-calendar-nav li { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
#secondary .widget_my_calendar_mini_widget .my-calendar-nav button {
	display: block;
	box-sizing: border-box;
	float: none;
	width: 100%;
	min-width: 0;
	min-height: 30px;
	margin: 0;
	padding: 4px 1px;
	border: 1px solid #dce5da;
	border-radius: 3px;
	background: #fff;
	box-shadow: none;
	color: #176e3a;
	font-family: 'Open Sans', sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
}
#secondary .widget_my_calendar_mini_widget .my-calendar-nav .mc-icon { display: none; }
#secondary .widget_my_calendar_mini_widget .my-calendar-nav .maybe-hide { display: inline; }
#secondary .widget_my_calendar_mini_widget .my-calendar-nav button:hover { background: #edf4e9; border-color: #9aba91; }
#secondary .widget_my_calendar_mini_widget .my-calendar-nav button.mc-active { outline: 0; border-color: #9aba91; background: #e5efdf; }
#secondary .widget_my_calendar_mini_widget .mc-content { width: 100%; min-width: 0; }
#secondary .widget_my_calendar_mini_widget .my-calendar-table {
	box-sizing: border-box;
	table-layout: fixed;
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 2px;
	background: transparent;
}
#secondary .widget_my_calendar_mini_widget .my-calendar-table tbody { background: transparent; }
#secondary .widget_my_calendar_mini_widget .my-calendar-table th {
	box-sizing: border-box;
	width: 14.2857%;
	padding: 3px 0 5px;
	border: 0;
	background: transparent;
	color: #56665b;
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	letter-spacing: 0;
}
#secondary .widget_my_calendar_mini_widget .my-calendar-table th abbr { border: 0; text-decoration: none; }
#secondary .widget_my_calendar_mini_widget .my-calendar-table td {
	width: 14.2857%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	vertical-align: top;
}
#secondary .widget_my_calendar_mini_widget .mc-date-container { display: block; position: relative; margin: 0; }
#secondary .widget_my_calendar_mini_widget .mc-date {
	display: block;
	position: relative;
	box-sizing: border-box;
	float: none;
	clear: none;
	width: 100%;
	min-width: 0;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 2px 0 8px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: #f5f7f3;
	box-shadow: none;
	color: #526058;
	font-family: 'Open Sans', sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
}
#secondary .widget_my_calendar_mini_widget .event-icon {
	display: block;
	position: absolute;
	bottom: 3px;
	left: 0;
	width: 100%;
	color: #4f9c45;
	font-size: 6px;
	line-height: 6px;
	text-align: center;
}
#secondary .widget_my_calendar_mini_widget .has-events .mc-date { background: #e5efdf; color: #176e3a; font-weight: 700; }
#secondary .widget_my_calendar_mini_widget .nextmonth .mc-date { background: #fafbf9; color: #88938b; font-weight: 400; }
#secondary .widget_my_calendar_mini_widget .current-day .mc-date { border-color: #176e3a; background: #176e3a; color: #fff; font-weight: 700; }
#secondary .widget_my_calendar_mini_widget button.mc-date:hover { background: #176e3a; color: #fff; }
#secondary .widget_my_calendar_mini_widget .current-day .event-icon,
#secondary .widget_my_calendar_mini_widget button.mc-date:hover .event-icon { color: #fff; }
#secondary .widget_my_calendar_mini_widget button:focus-visible { outline: 2px solid #176e3a; outline-offset: 2px; }

@media (max-width: 800px) {
	#secondary .widget_my_calendar_mini_widget { padding: 14px; }
	#secondary .widget_my_calendar_mini_widget .my-calendar-month { font-size: 13px; }
	#secondary .widget_my_calendar_mini_widget .my-calendar-nav button { font-size: 11px; }
	#secondary .widget_my_calendar_mini_widget .mc-date { height: 38px; font-size: 13px; line-height: 24px; }
}
