/*
Theme Name: Twenty Seventeen Child
Theme URI: https://roryparle.com/
Description: Minimal child theme for Twenty Seventeen on roryparle.com — omits the footer WordPress credit partial, enables prefers-color-scheme light/dark switching, and holds Twenty Seventeen–specific layout overrides.
Author: Rory Parle
Author URI: https://roryparle.com/
Template: twentyseventeen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyseventeen-child
*/

/* Fix Twenty Seventeen forcing mid-sentence <cite> titles onto a block line inside <blockquote> */
.entry-content blockquote p cite:not(:only-child),
.entry-content blockquote li cite:not(:only-child),
.entry-content blockquote cite[class] {
	display: inline;
	font-style: italic;
	font-weight: inherit;
	margin-top: 0;
}

/* Align multi-post old-post notice with Twenty Seventeen's 58% right post column on desktop */
@media screen and (min-width: 48em) {
	.blog:not(.has-sidebar) #primary .site-main > .roryparle-old-post-notice,
	.archive:not(.page-one-column):not(.has-sidebar) #primary .site-main > .roryparle-old-post-notice,
	.search:not(.has-sidebar) #primary .site-main > .roryparle-old-post-notice {
		float: right;
		width: 58%;
	}
}

/* Reset blocks.css button colors when visitor prefers light mode (colors-dark.css is gated by media query) */
@media (prefers-color-scheme: light) {
	.colors-dark .wp-block-button__link {
		background-color: #222;
		color: #fff;
	}
	.colors-dark .entry-content .wp-block-button__link:hover,
	.colors-dark .entry-content .wp-block-button__link:focus,
	.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-background):hover,
	.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-background):focus {
		background-color: #767676;
		color: #fff;
	}
	.colors-dark .entry-content .is-style-outline .wp-block-button__link:not(.has-text-color) {
		color: #222;
	}
}
