/* ==================================================
   MICHAEL McFARLAND CAMPBELL
   Purple, Gold & Charcoal Identity
   Apostrophe 2
   ================================================== */
/* ---------- Base Colours ---------- */
body,
.site,
.site-content {
	background: #FFFFFF;
	color: #202124;
}

/* ---------- Site Title / Branding ---------- */
.site-title,
.site-title a {
	color: #7A00B8 !important;
	font-weight: 500;
	letter-spacing: -.01em;
}

.site-title a:hover,
.site-title a:focus {
	color: #3D0A4F !important;
}

.site-description {
	color: #202124 !important;
	font-weight: 400;
	letter-spacing: .01em;
	line-height: 1.35;
}

/* ---------- Headings ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.entry-title a,
.wp-block-post-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
	color: #3D0A4F !important;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -.015em;
}

/* ---------- H2 Section Dividers ---------- */
.entry-content h2,
.wp-block-post-content h2 {
	border-bottom: 3px solid #7A00B8;
	padding-bottom: .35em;
	margin-top: 1.8em;
	margin-bottom: .9em;
	position: relative;
}

/* Gold accent */
.entry-content h2::after,
.wp-block-post-content h2::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	background: #E5B000;
	position: absolute;
	bottom: -3px;
	left: 0;
}

/* ---------- H3 ---------- */
.entry-content h3,
.wp-block-post-content h3 {
	color: #7A00B8 !important;
}

/* ---------- H4 ---------- */
.entry-content h4,
.wp-block-post-content h4 {
	color: #3D0A4F !important;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .95em;
}

/* ---------- Links ---------- */
a {
	color: #7A00B8;
	text-decoration: none;
	transition: color .2s ease;
}

.entry-content a,
.wp-block-post-content a {
	color: #7A00B8;
}

.entry-content a:hover,
.entry-content a:focus,
.wp-block-post-content a:hover,
.wp-block-post-content a:focus {
	color: #3D0A4F;
	text-decoration: underline;
}

/* ---------- Main Navigation ---------- */
.main-navigation a,
.navigation-main a {
	color: #202124;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus,
.navigation-main a:hover,
.navigation-main a:focus {
	color: #7A00B8;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.navigation-main .current-menu-item > a {
	color: #3D0A4F;
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	background: #7A00B8 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 4px;
	font-weight: 500;
	letter-spacing: .02em;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background: #3D0A4F !important;
	color: #FFFFFF !important;
}

/* ---------- Blockquotes ---------- */
blockquote,
.wp-block-quote {
	border-left: 5px solid #E5B000;
	padding: .8em 1em .8em 1.2em;
	margin-left: 0;
	color: #202124;
	font-style: italic;
	background: #FCFBF8;
}

/* ---------- Horizontal Rules ---------- */
hr,
.wp-block-separator {
	border: none;
	border-top: 2px solid #D9D9D9;
	margin: 2em 0;
}

/* ==================================================
   POST METADATA
   Purple + White + Gold
   ================================================== */
.entry-meta {
	background: #7A00B8 !important;
	color: #FFFFFF !important;
	border-bottom: 4px solid #E5B000 !important;
}

.entry-meta,
.entry-meta a,
.entry-meta span,
.entry-meta time,
.entry-meta .posted-on,
.entry-meta .posted-on a,
.entry-meta .byline,
.entry-meta .byline a,
.entry-date,
.entry-date a,
.posted-on,
.posted-on a,
.byline,
.byline a {
	color: #FFFFFF !important;
}

.entry-meta a:hover,
.entry-meta a:focus,
.posted-on a:hover,
.posted-on a:focus,
.entry-date a:hover,
.entry-date a:focus,
.byline a:hover,
.byline a:focus {
	color: #FFFFFF !important;
	text-decoration: none !important;
}

/* ==================================================
   CATEGORY & TAG CHIPS
   Category = Plum / White
   Tags = Gold / Plum
   ================================================== */
/* Remove inherited blue styling from wrappers */
.cat-links,
.tags-links,
.entry-footer .cat-links,
.entry-footer .tags-links {
	background: transparent !important;
	color: #202124 !important;
	border: 0 !important;
}

/* ---------- CATEGORY ---------- */
.cat-links a,
.entry-footer .cat-links a,
.entry-meta .cat-links a,
span.cat-links a {
	display: inline-block !important;
	background: #3D0A4F !important;
	background-color: #3D0A4F !important;
	color: #FFFFFF !important;
	padding: .45em .7em !important;
	margin: .15em .15em .15em 0 !important;
	border: 0 !important;
	border-bottom: 3px solid #E5B000 !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	letter-spacing: .035em !important;
	text-decoration: none !important;
}

/* Category hover */
.cat-links a:hover,
.cat-links a:focus,
.entry-footer .cat-links a:hover,
.entry-footer .cat-links a:focus,
span.cat-links a:hover,
span.cat-links a:focus {
	background: #7A00B8 !important;
	background-color: #7A00B8 !important;
	color: #FFFFFF !important;
	text-decoration: none !important;
}

/* ---------- TAGS ---------- */
.tags-links a,
.entry-footer .tags-links a,
.entry-meta .tags-links a,
span.tags-links a {
	display: inline-block !important;
	background: #E5B000 !important;
	background-color: #E5B000 !important;
	color: #3D0A4F !important;
	padding: .45em .7em !important;
	margin: .15em .15em .15em 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	letter-spacing: .035em !important;
	text-decoration: none !important;
}

/* Tags hover */
.tags-links a:hover,
.tags-links a:focus,
.entry-footer .tags-links a:hover,
.entry-footer .tags-links a:focus,
span.tags-links a:hover,
span.tags-links a:focus {
	background: #7A00B8 !important;
	background-color: #7A00B8 !important;
	color: #FFFFFF !important;
	text-decoration: none !important;
}

/* ---------- Taxonomy icons ---------- */
.cat-links:before,
.tags-links:before {
	color: inherit !important;
}

/* ==================================================
   WIDGETS
   ================================================== */
.widget-title,
.widget h2,
.widget h3 {
	color: #3D0A4F !important;
	border-bottom: 2px solid #7A00B8;
	padding-bottom: .3em;
	position: relative;
}

.widget-title::after,
.widget h2::after,
.widget h3::after {
	content: "";
	display: block;
	width: 55px;
	height: 2px;
	background: #E5B000;
	position: absolute;
	bottom: -2px;
	left: 0;
}

.widget a {
	color: #7A00B8;
}

.widget a:hover,
.widget a:focus {
	color: #3D0A4F;
}

/* ---------- Remove sidebar coloured backgrounds ---------- */
.widget-area .widget,
#secondary .widget,
.sidebar .widget,
.widget,
.widget_text,
.widget_text .textwidget,
.widget_custom_html,
.widget_custom_html .custom-html-widget {
	background: transparent !important;
}

.widget-area .has-background,
#secondary .has-background,
.sidebar .has-background,
.widget .wp-block-group,
.widget .wp-block-group.has-background,
.widget .wp-block-media-text {
	background: transparent !important;
	background-color: transparent !important;
}

.widget-area,
#secondary,
.sidebar {
	background: #FFFFFF !important;
}

/* ---------- Sidebar Images ---------- */
.widget_media_image,
.widget_media_image a,
.widget_media_image img,
.wp-block-image,
.wp-block-image a {
	background: transparent !important;
}

/* ---------- Featured Images ---------- */
.post-thumbnail img,
.wp-post-image,
.entry-content img {
	border-radius: 0;
}

/* ==================================================
   RELATED POSTS
   ================================================== */
.related,
.related-posts {
	margin-top: 2.5em;
}

.related h2,
.related h3,
.related-posts h2,
.related-posts h3 {
	color: #3D0A4F !important;
}

.related a,
.related-posts a {
	color: #7A00B8 !important;
}

.related a:hover,
.related a:focus,
.related-posts a:hover,
.related-posts a:focus {
	color: #3D0A4F !important;
}

/* ==================================================
   PULL QUOTES
   ================================================== */
.wp-block-pullquote {
	border-top: 3px solid #7A00B8;
	border-bottom: 3px solid #7A00B8;
	background: #FCFBF8;
	padding: 2em 1.2em;
	margin: 2em 0;
}

.wp-block-pullquote blockquote {
	border-left: none;
	background: transparent;
	padding: 0;
	margin: 0;
}

.wp-block-pullquote p {
	color: #3D0A4F !important;
	font-size: 1.5em;
	line-height: 1.45;
	font-style: normal;
}

.wp-block-pullquote cite,
.wp-block-pullquote .wp-block-pullquote__citation {
	color: #666666 !important;
	font-size: .9em;
	font-style: normal;
}

/* ==================================================
   FOOTER
   ================================================== */
.site-footer {
	border-top: 4px solid #7A00B8;
	color: #202124;
}

.site-footer a {
	color: #7A00B8;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #3D0A4F;
}

/* ==================================================
   TABLES
   ================================================== */
table {
	border-color: #D9D9D9;
}

th {
	background: #3D0A4F;
	color: #FFFFFF;
}

td {
	border-color: #D9D9D9;
}

/* ---------- Selection ---------- */
::selection {
	background: #7A00B8;
	color: #FFFFFF;
}

/* ==================================================
   FEATURED ARTICLE HEADLINES
   ================================================== */
.featured-content .entry-title,
.featured-content .entry-title a,
.featured-post .entry-title,
.featured-post .entry-title a {
	font-size: 1.3rem !important;
	line-height: 1.1 !important;
	font-weight: 500 !important;
}

.featured-content .entry-title,
.featured-post .entry-title {
	margin-top: .25em !important;
	margin-bottom: .25em !important;
}

/* ==================================================
   ACCESSIBILITY
   ================================================== */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
	scroll-margin-top: 2rem;
}

/* ==================================================
   MOBILE
   ================================================== */
@media screen and (max-width: 768px) {
	/* Hide featured area if Apostrophe becomes too crowded */
	.featured-content,
		.featured-post {
		display: none !important;
	}
	
	/* Headings */
	.entry-content h1,
		.wp-block-post-content h1 {
		font-size: 2rem;
	}
	
	.entry-content h2,
		.wp-block-post-content h2 {
		font-size: 1.7rem;
	}
	
	.entry-content h3,
		.wp-block-post-content h3 {
		font-size: 1.4rem;
	}
	
	/* Metadata strip */
	.entry-meta {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		padding: 0 !important;
		background: #7A00B8 !important;
		border-bottom: 4px solid #E5B000 !important;
	}
	
	.entry-meta > span,
		.entry-meta > a,
		.entry-meta .posted-on,
		.entry-meta .byline {
		padding: .42em .7em !important;
		margin: 0 !important;
		background: transparent !important;
		border: 0 !important;
		color: #FFFFFF !important;
		font-size: .78rem !important;
		line-height: 1.15 !important;
		letter-spacing: .035em;
	}
	
	.entry-meta .byline {
		border-left: 1px solid rgba(255,255,255,.35) !important;
	}
	
	/* Related titles */
	.related .entry-title,
		.related .entry-title a,
		.related-posts .entry-title,
		.related-posts .entry-title a {
		font-size: 1rem !important;
		line-height: 1.25 !important;
		font-weight: 500 !important;
	}
	
	/* Related metadata should stay quiet */
	.related .entry-meta,
		.related-posts .entry-meta {
		background: transparent !important;
		border: 0 !important;
		color: #888888 !important;
		padding: 0 !important;
		display: block !important;
	}
	
	.related .entry-meta *,
		.related-posts .entry-meta * {
		color: #888888 !important;
		background: transparent !important;
		border: 0 !important;
		padding: 0 !important;
	}
	
	/* Slightly smaller taxonomy chips */
	.cat-links a,
		.tags-links a {
		font-size: .84rem !important;
		padding: .4em .65em !important;
	}
}

/* ==================================================
   FORCE MMC TAG COLOURS — APOSTROPHE 2
   Gold background + plum text
   ================================================== */
a[rel="tag"],
.entry-footer a[rel="tag"],
.entry-meta a[rel="tag"],
.tags-links a,
.tag-links a,
.post-tags a,
.entry-tags a {
	background: #E5B000 !important;
	background-color: #E5B000 !important;
	background-image: none !important;
	color: #3D0A4F !important;
	border: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	display: inline-block !important;
	padding: .45em .7em !important;
	margin: .15em .15em .15em 0 !important;
	font-weight: 600 !important;
	letter-spacing: .035em !important;
}

/* Any text/icon generated inside the tag inherits plum */
a[rel="tag"] *,
.tags-links a *,
.tag-links a *,
.post-tags a *,
.entry-tags a * {
	color: #3D0A4F !important;
}

/* Tag hover */
a[rel="tag"]:hover,
a[rel="tag"]:focus,
.entry-footer a[rel="tag"]:hover,
.entry-footer a[rel="tag"]:focus,
.tags-links a:hover,
.tags-links a:focus,
.tag-links a:hover,
.tag-links a:focus {
	background: #7A00B8 !important;
	background-color: #7A00B8 !important;
	background-image: none !important;
	color: #FFFFFF !important;
}

/* Make generated tag icons white on hover */
a[rel="tag"]:hover *,
a[rel="tag"]:focus *,
.tags-links a:hover *,
.tags-links a:focus * {
	color: #FFFFFF !important;
}

/* ==================================================
   FORCE HOMEPAGE / ARCHIVE DATE LABELS INTO MMC COLOURS
   ================================================== */
.home .entry-meta,
.blog .entry-meta,
.archive .entry-meta,
.featured-content .entry-meta,
.featured-post .entry-meta,
.hentry .entry-meta,
.home .posted-on,
.blog .posted-on,
.archive .posted-on,
.featured-content .posted-on,
.featured-post .posted-on {
	background: #7A00B8 !important;
	background-color: #7A00B8 !important;
	background-image: none !important;
	color: #FFFFFF !important;
	border-bottom: 4px solid #E5B000 !important;
}

/* Everything inside the homepage date box stays white */
.home .entry-meta *,
.blog .entry-meta *,
.archive .entry-meta *,
.featured-content .entry-meta *,
.featured-post .entry-meta *,
.home .posted-on *,
.blog .posted-on *,
.archive .posted-on * {
	color: #FFFFFF !important;
	background: transparent !important;
}

/* Keep homepage date text white on hover */
.home .entry-meta a:hover,
.home .entry-meta a:focus,
.blog .entry-meta a:hover,
.blog .entry-meta a:focus,
.archive .entry-meta a:hover,
.archive .entry-meta a:focus,
.featured-content .entry-meta a:hover,
.featured-content .entry-meta a:focus {
	color: #FFFFFF !important;
}

/* ==================================================
   FIX DOUBLE GOLD DATE HIGHLIGHT ON HOME / ARCHIVES
   ================================================== */
/* Only the outer metadata box gets the gold rule */
.home .entry-meta,
.blog .entry-meta,
.archive .entry-meta,
.featured-content .entry-meta,
.featured-post .entry-meta {
	border-bottom: 4px solid #E5B000 !important;
}

/* Remove gold rule from everything nested inside */
.home .entry-meta .posted-on,
.home .entry-meta .entry-date,
.home .entry-meta time,
.home .entry-meta a,
.blog .entry-meta .posted-on,
.blog .entry-meta .entry-date,
.blog .entry-meta time,
.blog .entry-meta a,
.archive .entry-meta .posted-on,
.archive .entry-meta .entry-date,
.archive .entry-meta time,
.archive .entry-meta a,
.featured-content .entry-meta .posted-on,
.featured-content .entry-meta .entry-date,
.featured-content .entry-meta time,
.featured-content .entry-meta a,
.featured-post .entry-meta .posted-on,
.featured-post .entry-meta .entry-date,
.featured-post .entry-meta time,
.featured-post .entry-meta a {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* ==================================================
   FIX DESKTOP METADATA CELLS
   One purple strip + white text + one gold highlight
   ================================================== */
@media screen and (min-width: 769px) {
	.entry-meta {
		background: #7A00B8 !important;
		background-color: #7A00B8 !important;
		border-bottom: 4px solid #E5B000 !important;
		color: #FFFFFF !important;
	}
	
	/* Remove Apostrophe's blue backgrounds from date/author cells */
	.entry-meta > span,
		.entry-meta > a,
		.entry-meta .posted-on,
		.entry-meta .byline,
		.entry-meta .entry-date,
		.entry-meta time,
		.entry-meta .author,
		.entry-meta .url {
		background: transparent !important;
		background-color: transparent !important;
		background-image: none !important;
		color: #FFFFFF !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
	}
	
	/* Links inside metadata remain white */
	.entry-meta a,
		.entry-meta a:visited,
		.entry-meta a:hover,
		.entry-meta a:focus {
		background: transparent !important;
		background-color: transparent !important;
		color: #FFFFFF !important;
		text-decoration: none !important;
	}
	
	/* Optional subtle divider between date and author */
	.entry-meta .byline {
		border-left: 1px solid rgba(255,255,255,.35) !important;
	}
}
/* ==================================================
   RESTORE MMC TAGS
   Gold background + plum text
   ================================================== */

.tags-links,
.tag-links,
.post-tags,
.entry-tags,
.entry-footer .tags-links {
	display: inline-flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 6px !important;

	visibility: visible !important;
	opacity: 1 !important;

	height: auto !important;
	max-height: none !important;
	overflow: visible !important;

	margin: .35em 0 !important;
	padding: 0 !important;

	background: transparent !important;
	border: 0 !important;
}


/* Force individual tags to display */
a[rel="tag"],
.entry-footer a[rel="tag"],
.entry-meta a[rel="tag"],
.tags-links a,
.tag-links a,
.post-tags a,
.entry-tags a {
	display: inline-flex !important;
	align-items: center !important;

	visibility: visible !important;
	opacity: 1 !important;

	background: #E5B000 !important;
	background-color: #E5B000 !important;
	background-image: none !important;

	color: #3D0A4F !important;

	padding: .45em .7em !important;
	margin: 0 !important;

	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;

	font-weight: 600 !important;
	letter-spacing: .035em !important;
	line-height: 1.1 !important;

	text-decoration: none !important;
}


/* Icons and text inside tags remain plum */
a[rel="tag"] *,
.tags-links a *,
.tag-links a *,
.post-tags a *,
.entry-tags a * {
	color: #3D0A4F !important;
}


/* Hover */
a[rel="tag"]:hover,
a[rel="tag"]:focus,
.tags-links a:hover,
.tags-links a:focus,
.tag-links a:hover,
.tag-links a:focus {
	background: #7A00B8 !important;
	background-color: #7A00B8 !important;
	color: #FFFFFF !important;
}


/* Inner content becomes white on hover */
a[rel="tag"]:hover *,
a[rel="tag"]:focus *,
.tags-links a:hover *,
.tags-links a:focus * {
	color: #FFFFFF !important;
}