/* News — the dropdown under Repair in the menu, the News section of the Repair
   page, and a News item's own page (single-post_news.php). Type and colour
   follow style.css and episodes.css: AvenirNextCondensed for headings,
   #d8973c for accents, #4f4f4f for secondary text. The theme styles almost no
   prose, so the page brings its own rules, scoped to #single-news. */

/* ---- The menu under Repair (desktop) ------------------------------------ */

#main-menu li.menu-item-has-children {position: relative;}

/* Opens on hover, and on the button beside the parent (news.js sets .is-open),
   which is the way in from the keyboard. Not on focus inside it: Escape puts
   focus back on that button, and the menu has to close. Hidden by visibility,
   not display, so it can fade and its links leave the tab order. */
#main-menu .sub-menu {
	position: absolute; left: -22px; top: 100%; z-index: 10001;
	min-width: 250px; padding: 10px 0 14px 0;
	background: #000; border-top: solid 2px #d8973c;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
	text-align: left;
	opacity: 0; visibility: hidden; -webkit-transform: translateY(6px); transform: translateY(6px);
	-webkit-transition: opacity .2s ease, transform .2s ease, visibility .2s; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#main-menu li.menu-item-has-children:hover > .sub-menu,
#main-menu li.menu-item-has-children.is-open > .sub-menu {
	opacity: 1; visibility: visible; -webkit-transform: none; transform: none;
}
/* Shut after a click in it, while the next page loads under the pointer, until
   the pointer leaves (news.js) */
#main-menu li.menu-item-has-children.is-suppressed > .sub-menu {
	opacity: 0; visibility: hidden;
}

/* The top-level rules reach these items too: undo their spacing, height and
   entrance animation */
#main-menu .sub-menu li {
	display: block; line-height: 125%; margin: 0; opacity: 1; top: 0;
	-webkit-transition: none; transition: none;
}
#main-menu .sub-menu li + li {margin: 0;}
#main-menu .sub-menu li:not(.icon) a,
.theme-dark #main-menu .sub-menu li:not(.icon) a {
	display: block; padding: 9px 22px; font-size: 17px; color: #fff; white-space: nowrap;
}
#main-menu .sub-menu li:not(.icon) a:hover,
#main-menu .sub-menu li:not(.icon) a:focus,
.theme-dark #main-menu .sub-menu li:not(.icon) a:hover,
.theme-dark #main-menu .sub-menu li.current-menu-item:not(.icon) > a {color: #d8973c;}

/* Repair stays orange on its own pages and the pages under it */
.theme-dark #main-menu li.current-menu-ancestor:not(.icon) > a {color: #d8973c;}

/* The button beside Repair: a small chevron, for a tap or the keyboard */
#main-menu .submenu-toggle {
	display: inline-block; vertical-align: middle; width: 22px; height: 22px; margin: 0 0 0 4px; padding: 0;
	background: none; border: 0; cursor: pointer; position: relative; color: #d8973c;
}
#main-menu .submenu-toggle:before {
	content: " "; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
	border-right: solid 2px currentColor; border-bottom: solid 2px currentColor;
	-webkit-transform: translate(-50%, -70%) rotate(45deg); transform: translate(-50%, -70%) rotate(45deg);
	-webkit-transition: transform .2s ease; transition: transform .2s ease;
}
#main-menu li.is-open > .submenu-toggle:before {-webkit-transform: translate(-50%, -30%) rotate(-135deg); transform: translate(-50%, -30%) rotate(-135deg);}
#main-menu .submenu-toggle:hover {color: #fff;}
#main-menu .submenu-toggle:focus-visible {outline: solid 2px #d8973c; outline-offset: 2px;}

/* ---- The menu under Repair (phone menu) --------------------------------- */

/* Listed outright under Repair, smaller and indented; no button needed */
#mobile-menu .submenu-toggle {display: none;}
#mobile-menu .sub-menu {display: block; padding: 0 0 18px 0; margin: -16px 0 0 0;}
#mobile-menu .level-1 > a {
	display: block; padding: 10px 20px; font-size: 18px; color: #000;
	-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
/* White, the current one orange: style.css colours every link under the
   current top-level item, which on /repair/ made both entries read as current */
.theme-dark #mobile-menu .level-0 .sub-menu .level-1:not(.icon) > a {color: #fff;}
#mobile-menu .level-1 > a:hover,
#mobile-menu .level-1.current-menu-item > a,
.theme-dark #mobile-menu .level-0 .sub-menu .level-1:not(.icon) > a:hover,
.theme-dark #mobile-menu .level-0 .sub-menu .level-1.current-menu-item:not(.icon) > a {color: #d8973c;}

/* ---- News on the Repair page -------------------------------------------- */

.repair-news {
	border-top: solid 1px #e8e8e8;
	padding: 80px 0 70px;
}

.repair-news .episodes-heading {
	max-width: 900px;
	margin: 0 auto 30px;
}

.news-list {
	max-width: 900px;
	margin: 0 auto;
}

.news-card + .news-card {margin-top: 30px;}

.news-card-link {
	display: flex;
	align-items: center;
	gap: 30px;
	color: #000;
}

.news-card-art {
	flex: 0 0 340px;
	position: relative;
	font-size: 0;
	line-height: 0;
	border: solid 4px #d8973c;
}

.news-card-art img {
	width: 100%;
	height: auto;
	display: block;
}

/* A play mark, the hero film's in miniature, so the card reads as a video */
.news-card-play {
	position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
	border-radius: 100%; background: rgba(255, 255, 255, 0.92);
	-webkit-transition: background .2s ease; transition: background .2s ease;
}
.news-card-play:before {
	content: " "; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -6px;
	border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #000;
}
.news-card-link:hover .news-card-play {background: #d8973c;}

.news-card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

.news-meta,
.news-card-body .news-meta {
	display: block;
	font-family: AvenirNextCondensed, sans-serif;
	font-weight: 700;
	font-size: 0.938em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #d8973c;
	margin: 0 0 10px 0;
}

.news-card-title {
	display: block;
	font-size: 1.5em;
	line-height: 115%;
	margin: 0 0 10px 0;
}

.news-card-link:hover .news-card-title {color: #d8973c;}

.news-card-byline {
	display: block;
	font-size: 1.063em;
	line-height: 140%;
	margin: 0 0 10px 0;
}

.news-card-text {
	display: block;
	font-size: 1em;
	line-height: 155%;
	color: #4f4f4f;
}

/* ---- A News item's page -------------------------------------------------- */

/* The headline and the player take the site's full 1200px column, so the title
   wraps less, the player starts higher and is as wide as the page allows (Tim,
   2026-11-15: it was 1000px, with 80px above) */
#single-news .news-hero {
	padding: 50px 0 60px;
}

#single-news .news-title {
	font-size: 2.25em;
	line-height: 110%;
	margin: 0 0 14px 0;
	color: #fff;
}

#single-news .news-byline {
	font-size: 1.188em;
	line-height: 140%;
	margin: 0 0 24px 0;
	color: #fff;
}

/* 16:9, the shape of the publisher's own embed */
#single-news .news-player,
#single-news .news-poster {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	background: #111;
}

#single-news .news-player iframe,
#single-news .news-poster img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

#single-news .news-source {
	margin: 24px 0 0 0;
	font-size: 16px;
}

/* The podcast's "Listen on" button, for the original page */
#single-news .news-source a {
	display: inline-block;
	padding: 8px 16px;
	border: solid 2px #d8973c;
	color: #d8973c;
	font-family: AvenirNextCondensed, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.938em;
	line-height: 100%;
}

#single-news .news-source a:after {content: " \2197";}

#single-news .news-source a:hover {
	background: #d8973c;
	color: #fff;
}

#single-news .news-about,
#single-news .news-more {
	padding: 70px 0;
}

#single-news .news-about .wrapper,
#single-news .news-more .wrapper {
	max-width: 860px;
}

#single-news .news-more {
	border-top: solid 1px #e8e8e8;
}

#single-news .news-about .entry-content p {
	font-size: 1.125em;
	line-height: 160%;
	margin: 0 0 20px 0;
}

#single-news .news-about .entry-content p:last-child {margin-bottom: 0;}

#single-news .news-about .entry-content a,
#single-news .news-links a {
	color: #d8973c;
	border-bottom: solid 1px rgba(216, 151, 60, 0.4);
}

#single-news .news-about .entry-content a:hover,
#single-news .news-links a:hover {
	color: #000;
	border-bottom-color: #000;
}

#single-news .news-about .entry-content strong,
#single-news .news-about .entry-content b {font-weight: 700;}

#single-news .news-about .entry-content em,
#single-news .news-about .entry-content i {font-style: italic;}

#single-news .news-links {
	margin: 30px 0 0 0;
	padding: 24px 0 0 0;
	border-top: solid 1px #e8e8e8;
}

#single-news .news-links li {
	font-size: 1.063em;
	line-height: 150%;
	margin: 0 0 8px 0;
}

#single-news .news-links a:after {content: " \2197";}

/* The wrapper already pads it on narrow screens; episodes.css's own padding
   for the list would indent it twice */
#single-news .news-more .episodes-list {margin: 0 0 30px 0; padding: 0;}
#single-news .news-more .episode:first-child {padding-top: 0;}

#single-news .news-back a {
	color: #d8973c;
	font-family: AvenirNextCondensed, sans-serif;
	text-transform: uppercase;
	font-size: 1.188em;
}

#single-news .news-back a:hover {color: #000;}

@media screen and (max-width: 1240px) {
	.news-list,
	.repair-news .episodes-heading {padding: 0 20px;}
}

@media screen and (max-width: 860px) {
	.news-card-link {flex-direction: column; align-items: stretch; gap: 18px;}
	.news-card-art {flex: none;}
	#single-news .news-hero {padding: 36px 0 44px;}
	#single-news .news-title {font-size: 1.75em;}
	#single-news .news-about,
	#single-news .news-more {padding: 50px 0;}
}
