/*
Theme Name: Harmony Network
Theme URI: https://github.com/batteryTrackerProject/Wordpress-templates-
Author: Lcsworld.com
Author URI: https://lcsworld.com
Description: Theme for harmonynet.net. Brings back the 2018-2021 look of the site (orange page, blue-gray menu bar, turntable header with the Harmony Network logo, bracketed post cards) and plays the show archive: Video.js for HLS video from an nginx VOD server, a native audio bar for podcasts, and a "recording no longer available" line for 2011-2014 shows. Colors, header, logo, VOD and podcast locations are set in the Customizer.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harmony-network
Tags: blog, entertainment, one-column, custom-background, custom-colors, custom-header, custom-logo, custom-menu, footer-widgets, theme-options, translation-ready
Update URI: https://github.com/batteryTrackerProject/Wordpress-templates-
*/

/* ==========================================================================
   0. Colors (overridden from the Customizer by an inline :root block)
   ========================================================================== */
:root {
	--harmony-page: #eb980a;
	--harmony-text: #000000;
	--harmony-accent: #5d70af;
	--harmony-bar: #5d70af;
	--harmony-bar-text: #cfcfcf;
	--harmony-footer: #5d70af;
	--harmony-footer-text: #aeaeae;
	--harmony-player: #222222;
	--harmony-font: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--harmony-bar-height: 48px;
	--harmony-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   1. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--harmony-bar-height) + 8px);
}

body {
	margin: 0;
	background-color: var(--harmony-page);
	color: var(--harmony-text);
	font-family: var(--harmony-font);
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	color: var(--harmony-text);
	line-height: 1.2;
}

p {
	margin: 0 0 1.5em;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--harmony-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px dotted currentColor;
	outline-offset: 3px;
}

pre {
	overflow: auto;
	white-space: pre-wrap;
}

table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1.5em;
}

th,
td {
	padding: 0.4em;
	text-align: left;
}

th {
	border-bottom: 1px solid var(--harmony-accent);
}

/* ==========================================================================
   2. Accessibility
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: #000;
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	height: auto;
	left: 6px;
	padding: 14px 22px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   3. Top menu bar
   ========================================================================== */
.main-navigation {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	min-height: var(--harmony-bar-height);
	padding: 0 1em;
	background: var(--harmony-bar);
	box-shadow: var(--harmony-shadow);
	color: var(--harmony-bar-text);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
}

.admin-bar .main-navigation {
	top: 32px;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation > ul,
.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-height: var(--harmony-bar-height);
}

.main-navigation li {
	position: relative;
	padding: 0 1em;
}

.main-navigation a {
	display: inline-block;
	padding: 4px 0 3px;
	border-bottom: 2px solid transparent;
	color: var(--harmony-bar-text);
	text-decoration: none;
	transition: border-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	border-bottom-color: var(--harmony-bar-text);
}

/* Drop-downs (none on the imported menu, but supported). */
.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	padding: 0.5em 0;
	background: var(--harmony-bar);
	box-shadow: var(--harmony-shadow);
	display: none;
}

.main-navigation ul ul li {
	padding: 0.7em 1em;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: block;
}

.menu-toggle {
	display: none;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
	position: relative;
	margin-top: var(--harmony-bar-height);
	height: clamp(170px, 17vw, 310px);
	background-color: #1a0b2e;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

.site-branding {
	position: absolute;
	top: 0;
	left: 5%;
	z-index: 2;
}

.custom-logo-link {
	display: inline-block;
	border: 0;
	line-height: 0;
}

.custom-logo {
	display: block;
	width: clamp(130px, 13.5vw, 243px);
	height: auto;
}

/* ==========================================================================
   5. Layout
   ========================================================================== */
.site-main {
	width: 94%;
	max-width: 1700px;
	margin: 0 auto;
	padding: 4.5em 0 1em;
}

.page-header {
	margin: 0 0 2.5em;
}

.page-title {
	margin: 0 0 0.3em;
	color: var(--harmony-accent);
	font-size: 2em;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.archive-description {
	max-width: 720px;
}

/* ==========================================================================
   6. Post cards (lists)
   ========================================================================== */
.post-wrap {
	display: block;
}

.card {
	position: relative;
	margin: 0 0 3em;
	font-size: 1.1rem;
}

.card-inner {
	position: relative;
	padding: 2.2em 1.75em 1.2em;
}

/* Corner brackets, drawn from Deejay's featured-post style. */
.card::before,
.card::after,
.card-inner::before,
.card-inner::after {
	content: "";
	position: absolute;
	width: 56px;
	height: 56px;
	border-color: var(--harmony-accent);
	border-style: solid;
	pointer-events: none;
	transition: border-color 0.6s ease;
}

.card::before {
	top: 0;
	left: 0;
	border-width: 3px 0 0 3px;
}

.card::after {
	top: 0;
	right: 0;
	border-width: 3px 3px 0 0;
}

.card-inner::before {
	bottom: 0;
	right: 0;
	border-width: 0 3px 3px 0;
}

.card-inner::after {
	bottom: 0;
	left: 0;
	border-width: 0 0 3px 3px;
}

.card:hover::before,
.card:hover::after,
.card:hover .card-inner::before,
.card:hover .card-inner::after {
	border-color: var(--harmony-text);
}

.entry-title {
	margin: 0 0 0.4em;
	padding: 3px 0 4px;
	color: var(--harmony-text);
	font-size: 1.5em;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.45;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.entry-title a:hover,
.entry-title a:focus {
	border-bottom-color: var(--harmony-text);
}

.entry-meta {
	display: inline-block;
	margin-bottom: 0.6em;
	color: var(--harmony-text);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.card .entry-meta {
	font-size: 0.65rem;
}

.entry-meta a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.entry-meta a:hover,
.entry-meta a:focus {
	border-bottom-color: currentColor;
}

.entry-summary {
	margin-top: 1.4em;
}

.entry-summary > p:first-child {
	margin-bottom: 1.6em;
}

a.more-link {
	display: inline-block;
	color: var(--harmony-text);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 2;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 2px solid transparent;
	overflow-wrap: anywhere;
}

a.more-link:hover,
a.more-link:focus {
	border-bottom-color: var(--harmony-text);
}

.entry-footer {
	margin-top: 1.2em;
}

.entry-footer .entry-meta {
	display: block;
	margin-bottom: 0.3em;
}

.entry-footer .meta-label {
	color: var(--harmony-accent);
	font-weight: 400;
}

.entry-footer .entry-meta a {
	margin: 0 3px;
}

/* ==========================================================================
   7. Players
   ========================================================================== */
.harmony-video {
	max-width: 720px;
	margin: 0 auto 3em;
	background: var(--harmony-player);
	border-radius: 3px;
	box-shadow: var(--harmony-shadow);
	overflow: hidden;
}

.harmony-video .video-js {
	width: 100%;
	font-family: var(--harmony-font);
}

.entry-content .harmony-video {
	margin: 1.5em 0;
}

.harmony-audio {
	margin: 1.4em 0 0.6em;
	padding: 6px 8px;
	background: var(--harmony-player);
	border-radius: 3px;
	line-height: 0;
}

.harmony-audio audio {
	display: block;
	width: 100%;
	height: 40px;
	color-scheme: dark;
}

.subscribe-links {
	margin: 0.4em 0 1em;
	font-size: 0.95rem;
}

.subscribe-links a {
	color: var(--harmony-text);
}

.harmony-legacy-notice {
	padding-left: 0.8em;
	border-left: 3px solid var(--harmony-accent);
	font-size: 0.9em;
	font-style: italic;
}

/* ==========================================================================
   8. Single posts and pages
   ========================================================================== */
.single .site-main,
.page .site-main {
	padding-top: 3em;
}

.single .entry-header,
.page .entry-header,
.entry-content,
.single .entry-footer,
.page .entry-footer,
.post-navigation,
.comments-area,
.no-results,
.error-404 {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.single .entry-title,
.page .entry-title {
	font-size: 2em;
}

.entry-content {
	font-size: 1.15rem;
	overflow-wrap: break-word;
}

.entry-content a {
	color: var(--harmony-text);
	text-decoration: none;
	border-bottom: 2px solid var(--harmony-text);
}

.entry-content a:hover,
.entry-content a:focus {
	border-bottom-color: var(--harmony-accent);
}

.single .entry-footer {
	margin-top: 2.5em;
}

.post-navigation {
	margin-top: 3em;
	margin-bottom: 2em;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1em;
}

.post-navigation a {
	display: block;
	color: var(--harmony-text);
	text-decoration: none;
}

.post-navigation .nav-next {
	text-align: right;
	margin-left: auto;
}

.post-navigation .nav-label {
	display: block;
	color: var(--harmony-accent);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* ==========================================================================
   9. Pagination
   ========================================================================== */
.pagination {
	margin: 1em 0 3em;
}

.pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination ul.page-numbers li {
	display: block;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
	display: block;
	min-width: 2.6em;
	padding: 12px;
	border-radius: 2px;
	background: var(--harmony-page);
	box-shadow: var(--harmony-shadow);
	color: var(--harmony-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.pagination .page-numbers a:hover,
.pagination .page-numbers a:focus,
.pagination .page-numbers .current {
	background: var(--harmony-accent);
	color: #fff;
}

.pagination .page-numbers .dots {
	box-shadow: none;
}

/* ==========================================================================
   10. Forms
   ========================================================================== */
.search-form {
	display: flex;
	max-width: 480px;
	gap: 6px;
	margin: 1em 0 2em;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	width: 100%;
	padding: 0.6em 0.7em;
	border: 2px solid var(--harmony-text);
	border-radius: 2px;
	background: #fff;
	color: #000;
	font: inherit;
}

button,
input[type="submit"] {
	padding: 0.6em 1.1em;
	border: 2px solid var(--harmony-text);
	border-radius: 2px;
	background: var(--harmony-text);
	color: var(--harmony-page);
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

button:hover,
input[type="submit"]:hover {
	background: transparent;
	color: var(--harmony-text);
}

/* ==========================================================================
   11. Comments
   ========================================================================== */
.comments-area {
	margin-top: 3em;
}

.comment-list {
	padding-left: 1.2em;
}

.comment-list .children {
	padding-left: 1.2em;
}

.comment-body {
	margin-bottom: 1.5em;
}

.bypostauthor > .comment-body .fn {
	font-weight: 700;
}

/* ==========================================================================
   12. Widgets and footer
   ========================================================================== */
.widget-area {
	width: 94%;
	max-width: 1700px;
	margin: 0 auto 2em;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2em;
}

.widget-title {
	color: var(--harmony-accent);
	font-size: 1.1em;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.site-footer {
	margin-top: 3em;
	padding: 1.5em 1em 1em;
	background: var(--harmony-footer);
	box-shadow: var(--harmony-shadow);
	color: var(--harmony-footer-text);
	text-align: center;
}

.site-footer a {
	color: var(--harmony-footer-text);
}

.site-copy {
	margin: 0.8em 0 0;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.site-copy a {
	text-decoration: none;
}

.go-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--harmony-page);
	color: var(--harmony-text) !important;
}

/* ==========================================================================
   13. WordPress classes
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	clear: both;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.85em;
	text-align: center;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1em;
	margin-bottom: 1.5em;
}

.sticky {
	display: block;
}

.wp-smiley,
img.emoji {
	display: inline !important;
	width: 1em !important;
	height: 1em !important;
	vertical-align: -0.1em;
	border: 0;
	box-shadow: none;
	margin: 0 0.07em !important;
}

/* ==========================================================================
   14. Smaller screens
   ========================================================================== */
@media screen and (max-width: 782px) {
	.admin-bar .main-navigation {
		top: 46px;
	}

	.main-navigation {
		padding: 0;
	}

	.menu-toggle {
		display: block;
		width: 100%;
		min-height: var(--harmony-bar-height);
		padding: 0 1.2em;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--harmony-bar-text);
		font-size: 0.75rem;
		letter-spacing: 2px;
		text-align: left;
	}

	.menu-toggle:hover {
		background: transparent;
		color: var(--harmony-bar-text);
	}

	.main-navigation > ul,
	.main-navigation .menu {
		display: none;
		min-height: 0;
		padding: 0 0 0.8em;
	}

	.main-navigation.toggled > ul,
	.main-navigation.toggled .menu {
		display: block;
	}

	.main-navigation li {
		padding: 0.75em 1.2em;
	}

	.main-navigation ul ul {
		position: static;
		display: block;
		box-shadow: none;
		padding: 0 0 0 1em;
	}

	.card {
		font-size: 1rem;
	}

	.card-inner {
		padding: 1.8em 1.2em 1em;
	}

	.entry-title {
		font-size: 1.25em;
		letter-spacing: 1px;
	}

	.single .entry-title,
	.page .entry-title,
	.page-title {
		font-size: 1.5em;
	}

	.entry-content {
		font-size: 1.05rem;
	}
}

@media screen and (max-width: 600px) {
	/* As on the old site, the menu bar scrolls away on phones. */
	.main-navigation,
	.admin-bar .main-navigation {
		position: relative;
		top: 0;
	}

	.site-header {
		margin-top: 0;
	}

	.site-main {
		padding-top: 2.5em;
	}

	.card::before,
	.card::after,
	.card-inner::before,
	.card-inner::after {
		width: 36px;
		height: 36px;
	}

	.harmony-video {
		margin-left: -3%;
		margin-right: -3%;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* ==========================================================================
   15. Print
   ========================================================================== */
@media print {
	.main-navigation,
	.site-header,
	.harmony-video,
	.harmony-audio,
	.subscribe-links,
	.pagination,
	.post-navigation,
	.site-footer {
		display: none;
	}

	body {
		background: #fff;
	}
}
