/* Rockford Area Writers: settings WordPress used to add on top of the
   Author Pro theme, plus the few new bits (writer pages, events list). */

body.custom-background {
	background-color: #ffecc7;
	background-image: url("/images/Creativess.png");
	background-position: left top;
	background-size: cover;
	background-repeat: repeat;
	background-attachment: scroll;
}

.site-title a {
	background: url(/images/cropped-Creatives3.png) no-repeat !important;
}

/* Writer names on the homepage link to their own page but look the same */
.entry-content h2.writer-name a {
	color: inherit;
	text-decoration: none;
}

.entry-content h2.writer-name a:hover,
.entry-content h2.writer-name a:focus {
	color: #ef0000;
}

.writer-nav {
	border-top: 1px solid #ddd;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 20px;
}

/* Events list (same look as the old Simple Calendar list) */
.simcal-calendar-head {
	margin-bottom: 20px;
	text-align: center;
}

.simcal-current-label {
	font-size: 26px;
	font-weight: 900;
	margin: 0;
}

.simcal-events-list-container {
	margin: 0;
}

.simcal-day-label {
	border-bottom: 1px solid #000;
	margin: 30px 0 10px;
}

.simcal-day-label span {
	background-color: #000;
	color: #fff;
	display: inline-block;
	font-size: 14px;
	padding: 4px 10px;
}

.simcal-day {
	margin: 0;
}

.simcal-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content .simcal-events > li {
	list-style: none;
	margin: 0 0 24px;
}

.simcal-event-details p {
	margin-bottom: 6px;
}

.simcal-event-description {
	margin-bottom: 6px;
	overflow-wrap: anywhere;
}

/* Mobile menu: the theme styles the button; this just opens and closes it */
@media only screen and (max-width: 980px) {
	/* Phones: one short row, logo left and Menu button right, on cream */
	.site-header > .wrap {
		align-items: center;
		background-color: #ffecc7;
		color: #000;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 0 16px;
	}

	.site-header > .wrap::before,
	.site-header > .wrap::after {
		display: none;
	}

	.header-image .site-header .title-area {
		padding: 8px 0;
		width: 120px;
	}

	.header-image .site-title > a {
		background-position: left center !important;
		min-height: 52px;
	}

	.site-header .menu-toggle {
		border-radius: 4px;
		margin: 0;
		padding: 10px 14px;
		width: auto;
	}

	.genesis-responsive-menu {
		flex-basis: 100%;
		margin: 0 -16px;
	}

	.genesis-responsive-menu {
		background-color: #181c1e;
	}

	.menu-toggle::before {
		content: "\2630";
	}

	.menu-toggle.activated::before {
		content: "\2715";
	}

	.genesis-responsive-menu.open {
		display: block;
	}

	.genesis-responsive-menu .genesis-nav-menu .menu-item {
		display: block;
		float: none;
		text-align: left;
	}

	.genesis-responsive-menu .genesis-nav-menu .sub-menu {
		background: transparent;
		clear: both;
		display: block !important;
		border: 0;
		left: auto;
		opacity: 1;
		padding-left: 20px;
		position: relative;
		width: 100%;
	}
}

@media only screen and (min-width: 981px) {
	.menu-toggle {
		display: none;
	}

	/* Slimmer pinned header (theme default was 120px), shrinking further on scroll */
	.site-header {
		min-height: 0;
		transition: box-shadow .2s;
	}

	.header-image .title-area {
		padding: 10px 0;
		width: 200px;
	}

	.header-image .site-title > a {
		min-height: 64px;
		transition: min-height .2s;
	}

	.genesis-nav-menu a {
		padding: 32px 16px;
		transition: padding .2s;
	}

	.site-inner {
		margin-top: 84px;
	}

	.site-header.shrink {
		box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	}

	.site-header.shrink .title-area {
		padding: 4px 0;
	}

	.site-header.shrink .site-title > a {
		min-height: 48px;
	}

	.site-header.shrink .genesis-nav-menu li a {
		padding-bottom: 20px;
		padding-top: 20px;
	}

	/* show submenus on hover without the old jQuery plugin */
	.genesis-nav-menu .menu-item:hover > .sub-menu,
	.genesis-nav-menu .menu-item:focus-within > .sub-menu {
		left: auto;
		opacity: 1;
	}
}

.site-footer p {
	margin-bottom: 8px;
}

.site-footer .footer-links a {
	color: #fff;
	text-decoration: underline;
}

/* Join the RAW Discord button (theme .button style, centred) */
.raw-discord {
	margin-top: 24px;
}

.entry-content .raw-discord .button {
	background-color: #000;
	color: #fff;
	display: inline-block;
	font-size: 16px;
	padding: 14px 24px;
	text-decoration: none;
}

.entry-content .raw-discord .button:hover,
.entry-content .raw-discord .button:focus {
	background-color: #ef0000;
	color: #fff;
}

/* Podcast episode on Writers in Media */
.raw-video {
	margin: 0 0 16px;
}

.raw-video-frame {
	aspect-ratio: 16 / 9;
	background: #000;
	width: 100%;
}

.raw-video-frame iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.raw-video figcaption {
	font-size: 16px;
	margin-top: 8px;
}
