/*
Theme Name:   Nedvedtech 27
Theme URI:    https://www.nedvedtech.com/
Description:  Child theme of Twenty Fourteen for nedvedtech.com: full-width workshop banner with a live-text title, centered layout that scales to large monitors, copper accent, and a magazine-style home page. Deactivate to return to Twenty Fourteen unchanged.
Author:       Bob
Template:     twentyfourteen
Version:      1.9.1
Requires at least: 6.0
Tested up to: 6.9
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:  nedvedtech27
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--nt27-accent: #c8743a;        /* copper: buttons, rules, tags on dark */
	--nt27-accent-hi: #e0915a;     /* hover on dark */
	--nt27-on-accent: #141414;     /* text on copper */
	--nt27-ink: #9a4f1e;           /* copper text on white (passes AA) */
	--nt27-ink-hi: #7a3d15;        /* hover on white */
	--nt27-grid: rgba(200, 116, 58, .08);
	--nt27-tagline: #f0a63a;
	--nt27-max: 1480px;
	--nt27-gutter: clamp(16px, 2.5vw, 40px);
}

@font-face {
	font-family: "Russo One";
	src: url("fonts/russo-one-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Share Tech Mono";
	src: url("fonts/share-tech-mono-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* ==========================================================================
   Page frame: drop the 1260px left-pinned box
   ========================================================================== */
body {
	background-color: #000;
	background-image:
		linear-gradient(var(--nt27-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--nt27-grid) 1px, transparent 1px);
	background-size: 22px 22px;
}
.site {
	max-width: none;
	background: transparent;
}
.site:before {
	display: none !important; /* Twenty Fourteen's fake black sidebar column */
}

/* ==========================================================================
   Banner
   ========================================================================== */
#site-header.nt27-banner {
	position: relative;
	height: clamp(180px, 16vw, 340px);
	overflow: hidden;
	background: #000;
	max-width: none;
}
.nt27-banner picture,
.nt27-banner-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}
/* Twenty Fourteen's "#site-header img { height: auto }" outranks a class
   selector; without this the banner shrinks to 59px tall on phones. */
#site-header .nt27-banner-img {
	width: 100%;
	height: 100%;
	max-width: none;
}
.nt27-banner:after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse clamp(180px, 19vw, 400px) clamp(40px, 4.2vw, 90px) at calc(50% + 3vw) 16%, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 80%);
}
/* The whole banner links home; the title stays the one link keyboard and
   screen-reader users get. */
.nt27-banner-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.nt27-brand {
	position: absolute;
	z-index: 2;
	left: calc(50% + 3vw);
	top: clamp(6px, .55vw, 14px);
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	white-space: nowrap;
	text-decoration: none;
}
.nt27-title {
	margin: 0;
	padding: 0;
	font-family: "Russo One", "Lato", sans-serif;
	font-weight: 400;
	font-size: clamp(30px, 2.95vw, 64px);
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: #f4f1ea;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}
.nt27-tagline {
	font-family: "Share Tech Mono", monospace;
	font-size: clamp(10px, .8vw, 17px);
	line-height: 1.3;
	letter-spacing: .38em;
	padding-left: .38em;
	text-transform: uppercase;
	color: var(--nt27-tagline);
	text-shadow: 0 1px 10px rgba(0, 0, 0, .9);
}
.nt27-brand:hover .nt27-title,
.nt27-brand:focus .nt27-title {
	color: #fff;
}

/* ==========================================================================
   Nav bar (Twenty Fourteen masthead, full width, content centered)
   ========================================================================== */
.site-header {
	max-width: none;
	background-color: #0b0b0b;
	border-top: 3px solid var(--nt27-accent);
	border-bottom: 1px solid #1c1c1c;
}
.header-main {
	max-width: var(--nt27-max);
	margin: 0 auto;
	padding: 0 var(--nt27-gutter);
}
.primary-navigation {
	float: left;
	margin: 0;
}
.primary-navigation a {
	font-weight: 900;
	letter-spacing: .12em;
}
/* Search: quiet icon button in the nav bar, dark drop-down field */
.search-toggle,
.search-toggle.active {
	width: 52px;
	margin-right: 0;
	background: transparent;
	border-left: 1px solid #262626;
	border-right: 1px solid #262626;
}
.search-toggle:before {
	color: var(--nt27-accent);
}
.search-toggle:hover {
	background: #1a1a1a;
}
.search-toggle:hover:before,
.search-toggle.active:before {
	color: var(--nt27-accent-hi);
}
.search-toggle.active {
	background: #141414;
}
.search-box-wrapper {
	left: 0;
	right: 0;
	width: auto;
	max-width: none;
	padding: 0;
}
.search-box {
	margin: 0;
	padding: 14px var(--nt27-gutter);
	background: #141414;
	border-bottom: 3px solid var(--nt27-accent);
}
.search-box .search-field {
	display: block;
	float: none;
	width: 100%;
	max-width: calc(var(--nt27-max) - 2 * var(--nt27-gutter));
	margin: 0 auto;
	padding: 10px 14px;
	background: #0b0b0b;
	border: 1px solid #333;
	color: #f4f1ea;
	font-size: 16px;
}
.search-box .search-field:focus {
	border-color: var(--nt27-accent);
	outline: none;
}
.search-box .search-field::placeholder {
	color: #8a8a8a;
}
.menu-toggle,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:hover {
	background-color: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
.primary-navigation li:hover > a,
.primary-navigation li.focus > a,
.primary-navigation ul ul,
.primary-navigation ul ul a:hover,
.primary-navigation ul ul li.focus > a {
	background-color: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
.primary-navigation .current_page_item > a,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_ancestor > a,
.primary-navigation .current-menu-ancestor > a {
	color: var(--nt27-accent-hi);
}

/* Phones and small tablets (Twenty Fourteen's menu button shows below 783px) */
@media screen and (max-width: 782px) {
	.search-toggle,
	.search-toggle.active {
		margin-right: 32px; /* room for the menu button */
	}
	.menu-toggle,
	.menu-toggle:active,
	.menu-toggle:focus,
	.menu-toggle:hover {
		background: transparent;
		color: #f4f1ea;
		border-left: 1px solid #262626;
	}
	.menu-toggle:hover {
		background: #1a1a1a;
	}
	.primary-navigation.toggled-on {
		float: none;
		width: 100%;
		border-top: 1px solid #262626;
	}
	.primary-navigation.toggled-on .nav-menu {
		width: 100%;
	}
	.primary-navigation.toggled-on a {
		padding: 12px 0;
	}
}

/* ==========================================================================
   Main grid: content + sidebar on the right, centered
   ========================================================================== */
.site-main {
	max-width: var(--nt27-max);
	margin: 0 auto;
	padding: clamp(16px, 2vw, 36px) var(--nt27-gutter) 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.site-main:before,
.site-main:after {
	display: none;
}
#main-content,
#secondary,
.content-area,
.site-content {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	min-height: 0 !important;
	position: static;
}
.content-area {
	padding-top: 0;
}
#secondary {
	padding: 0;
	background: transparent;
	border: 0;
	clear: both;
}
@media screen and (min-width: 1008px) {
	.site-main {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
	#secondary {
		clear: none;
	}
}

/* White reading panel for single posts, pages and archives */
.single .content-area,
.page .content-area,
.error404 .content-area,
.attachment .content-area {
	background: #fff;
}
.site-content .has-post-thumbnail .post-thumbnail,
.full-width .site-content .has-post-thumbnail .post-thumbnail {
	max-width: none;
}
.post-thumbnail img,
.full-width .post-thumbnail img {
	width: 100%;
	height: auto;
}

/* Wider reading column than Twenty Fourteen's 474px, still a comfortable line length */
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.page-content,
.post-navigation,
.image-navigation,
.comments-area,
.full-width .site-content .entry-header,
.full-width .site-content .entry-content,
.full-width .site-content .entry-summary,
.full-width .site-content .entry-meta,
.full-width .post-navigation,
.full-width .comments-area {
	max-width: 720px;
}
.site-content .entry-content {
	font-size: 17px;
	line-height: 1.7;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
#secondary .site-description {
	display: none; /* tagline lives in the banner now */
}
.primary-sidebar .widget {
	margin-bottom: 32px;
	font-size: 14px;
}
.primary-sidebar .widget .widget-title,
.primary-sidebar .widget h2 {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	border-bottom: 3px solid var(--nt27-accent);
	padding-bottom: 8px;
	margin-bottom: 14px;
}
.primary-sidebar .widget a {
	color: #e8e8e8;
}
.primary-sidebar .widget a:hover,
.primary-sidebar .widget a:focus {
	color: var(--nt27-accent-hi);
}
.primary-sidebar .widget li {
	padding: 5px 0;
}
.primary-sidebar .widget_recent_entries .post-date {
	display: block;
	color: #9a9a9a;
	font-size: 12px;
}
.primary-sidebar .widget_categories ul ul {
	margin-left: 14px;
}

/* ==========================================================================
   Copper in place of Twenty Fourteen green
   ========================================================================== */
a {
	color: var(--nt27-ink);
}
a:hover,
a:focus,
a:active {
	color: var(--nt27-ink-hi);
}
::selection {
	background: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.contributor-posts-link,
.widget_calendar tbody a,
.wp-block-button__link:not(.has-background) {
	background-color: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
button:hover,
button: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,
.contributor-posts-link:hover,
.widget_calendar tbody a:hover,
.widget_calendar tbody a:focus {
	background-color: var(--nt27-accent-hi);
	color: var(--nt27-on-accent);
}
.entry-title a:hover,
.entry-meta a:hover,
.cat-links a:hover,
.tag-links a:hover,
.site-content .entry-meta a:hover,
.post-navigation a:hover,
.image-navigation a:hover,
.comment-author a:hover,
.comment-metadata a:hover,
.comment-list .reply a:hover,
.comment-list .pingback a:hover,
.comment-list .trackback a:hover {
	color: var(--nt27-ink);
}
.tag-links a:hover {
	background-color: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
.tag-links a:hover:before {
	border-right-color: var(--nt27-accent);
}
.paging-navigation .page-numbers.current {
	border-top-color: var(--nt27-accent);
}
.paging-navigation a:hover {
	border-top-color: var(--nt27-accent-hi);
	color: #fff;
}
.paging-navigation {
	border-top-color: #2a2a2a;
	margin-top: 32px;
}
.paging-navigation .page-numbers {
	color: #ddd;
}
.page-links a:hover {
	background: var(--nt27-accent);
	border-color: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
.site-info a:hover,
.footer-sidebar .widget a:hover {
	color: var(--nt27-accent-hi);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	max-width: none;
	margin-top: 40px;
	background: #0b0b0b;
	border-top: 1px solid #1c1c1c;
}
.site-info,
.footer-sidebar {
	max-width: var(--nt27-max);
	margin: 0 auto;
}

/* ==========================================================================
   Home page: hero + card grid
   ========================================================================== */
.nt27-home {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
/* Twenty Fourteen's clearfix pseudo-elements would become grid/flex cells,
   and its "first post with thumbnail" rule pulls the first card up 48px. */
.nt27-hero:before,
.nt27-hero:after,
.nt27-card:before,
.nt27-card:after,
.nt27-home:before,
.nt27-home:after,
.nt27-grid:before,
.nt27-grid:after {
	display: none !important;
	content: none !important;
}
.nt27-home .hentry,
.full-width .site-content .nt27-home .hentry.has-post-thumbnail:first-child {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important; /* Twenty Fourteen adds 48px top padding to posts without a featured image */
}
.nt27-home .nt27-card {
	border-top: 1px solid #222 !important;
}
.nt27-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	background: #fff;
	color: #2b2b2b;
	margin: 0;
	padding: 0;
	max-width: none;
}
.nt27-hero-media,
.nt27-card-media {
	display: block;
	overflow: hidden;
	background: #111;
}
.nt27-hero-media img,
.nt27-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.nt27-hero-media img {
	aspect-ratio: 1038 / 576;
}
.nt27-hero:hover .nt27-hero-media img,
.nt27-card:hover .nt27-card-media img {
	transform: scale(1.03);
}
.nt27-hero-body {
	padding: clamp(20px, 2.4vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.nt27-hero-cats,
.nt27-hero-cats a {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--nt27-ink);
}
.nt27-hero-title {
	margin: 0;
	font-weight: 300;
	font-size: clamp(24px, 2vw, 38px);
	line-height: 1.12;
	text-transform: uppercase;
}
.nt27-hero-title a {
	color: #2b2b2b;
}
.nt27-hero-title a:hover {
	color: var(--nt27-ink);
}
.nt27-hero-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #444;
}
.nt27-hero-excerpt p {
	margin: 0;
}
.nt27-meta {
	margin-top: auto;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #767676;
}

.nt27-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.nt27-card {
	display: flex;
	flex-direction: column;
	min-height: 180px;
	margin: 0;
	padding: 0;
	max-width: none;
	background-color: #0e0e0e;
	background-image:
		linear-gradient(var(--nt27-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--nt27-grid) 1px, transparent 1px);
	background-size: 22px 22px;
	border: 1px solid #222;
	border-bottom: 3px solid var(--nt27-accent);
	transition: border-color .2s ease;
}
.nt27-card:hover {
	border-color: #3a3a3a;
	border-bottom-color: var(--nt27-accent-hi);
}
.nt27-card-media img {
	aspect-ratio: 672 / 372;
}
.nt27-tile {
	display: block;
	aspect-ratio: 672 / 372;
	background-color: #0e0e0e;
	background-image:
		linear-gradient(var(--nt27-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--nt27-grid) 1px, transparent 1px),
		radial-gradient(ellipse at 15% 0%, rgba(200, 116, 58, .3), transparent 60%);
	background-size: 22px 22px, 22px 22px, 100% 100%;
}
.nt27-hero-media .nt27-tile {
	height: 100%;
	aspect-ratio: 1038 / 576;
}
.nt27-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
}
.nt27-label {
	align-self: flex-start;
	background: var(--nt27-accent);
	color: var(--nt27-on-accent);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 3px 8px;
}
a.nt27-label:hover,
a.nt27-label:focus {
	background: var(--nt27-accent-hi);
	color: var(--nt27-on-accent);
}
.nt27-card-title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}
.nt27-card-title a {
	color: #fff;
}
.nt27-card-title a:hover,
.nt27-card-title a:focus-visible {
	color: var(--nt27-accent-hi);
}
.nt27-card .nt27-meta {
	color: #9a9a9a;
}

@media screen and (max-width: 1200px) {
	.nt27-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media screen and (max-width: 800px) {
	.nt27-hero {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media screen and (max-width: 560px) {
	.nt27-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Carried over from your Additional CSS (Twenty Fourteen), recolored copper.
   Additional CSS is saved per theme, so it would not follow you here.
   ========================================================================== */

/* Archive & search headers: dark banner flush with the first post */
.archive #primary,
.search #primary { padding-top: 0; }

.archive-header,
.page-header {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 34px 30px 30px;
	background-color: #0b0b0b;
	background-image:
		linear-gradient(rgba(200,116,58,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(200,116,58,.07) 1px, transparent 1px),
		radial-gradient(ellipse at 15% 0%, rgba(200,116,58,.35), transparent 60%),
		linear-gradient(135deg, #141414 0%, #000 70%);
	background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%;
	border-bottom: 4px solid var(--nt27-accent);
	overflow: hidden;
}

.archive-header::before,
.page-header::before {
	content: "Browsing";
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 10px;
	background: var(--nt27-accent);
	color: var(--nt27-on-accent);
	font: 900 11px/1.6 Lato, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.search .page-header::before { content: "Search"; }

.archive-title,
.page-title {
	margin: 0;
	color: #fff;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: .01em;
	text-transform: none;
}

.taxonomy-description,
.author-description {
	max-width: 640px;
	margin-top: 10px;
	color: #bbb;
	font-size: 15px;
}
.taxonomy-description p:last-child { margin-bottom: 0; }

@media screen and (max-width: 673px) {
	.archive-header, .page-header { padding: 24px 15px 20px; }
	.archive-title, .page-title { font-size: 22px; }
}

/* Whole card clickable: the title link stretches over its card;
   category links and the button sit above it. */
.nt27-hero,
.nt27-card {
	position: relative;
}
.nt27-hero-title a::after,
.nt27-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.nt27-hero-cats a,
.nt27-label,
.nt27-readmore {
	position: relative;
	z-index: 2;
}
.nt27-hero:hover .nt27-hero-title a {
	color: var(--nt27-ink);
}
.nt27-card:hover .nt27-card-title a {
	color: var(--nt27-accent-hi);
}

/* "Read the full story" button on the newest post */
.nt27-readmore {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	margin-top: 4px;
	background: var(--nt27-accent);
	color: var(--nt27-on-accent) !important;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}
.nt27-readmore span {
	transition: transform .2s ease;
}
.nt27-hero:hover .nt27-readmore,
.nt27-readmore:focus-visible {
	background: var(--nt27-accent-hi);
}
.nt27-hero:hover .nt27-readmore span {
	transform: translateX(4px);
}

/* Load more */
.nt27-loadmore-wrap {
	display: flex;
	justify-content: center;
	padding: 8px 0 16px;
}
.nt27-loadmore {
	min-width: 220px;
	min-height: 48px;
	padding: 12px 28px;
	border: 2px solid var(--nt27-accent);
	background: transparent;
	color: #f4f1ea;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.nt27-loadmore:hover,
.nt27-loadmore:focus-visible {
	background: var(--nt27-accent);
	color: var(--nt27-on-accent);
}
.nt27-loadmore[disabled] {
	opacity: .6;
	cursor: progress;
}
.nt27-loadmore[hidden] {
	display: none;
}

/* ==========================================================================
   Archive & search lists, page numbers, previous/next post links
   ========================================================================== */
/* Twenty Fourteen gives the archive header an auto right margin, which
   shrinks it to the title's width inside the card list. Stretch it. */
.nt27-home > .archive-header,
.nt27-home > .page-header {
	align-self: stretch;
	width: auto;
	max-width: none;
	margin: 0 !important;
	box-sizing: border-box;
}
.nt27-archive-count {
	margin: 8px 0 0;
	font-family: "Share Tech Mono", monospace;
	font-size: 13px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--nt27-tagline);
}
.archive-header .taxonomy-description + .nt27-archive-count,
.archive-title + .nt27-archive-count + .taxonomy-description {
	margin-top: 10px;
}
.nt27-empty {
	background: #fff;
	padding: 30px;
}
.nt27-empty .page-header {
	display: none;
}
.paging-navigation .page-numbers.current {
	color: #fff;
}
.paging-navigation a.page-numbers:hover {
	color: var(--nt27-accent-hi);
}

.post-navigation {
	margin: 48px auto 40px;
	padding: 0;
	border-top: 0;
}
.nt27-nav-category:empty {
	display: none;
}
.nt27-nav-category:not(:empty) + .nt27-nav-group {
	margin-top: 28px;
}
.nt27-nav-heading {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #767676;
}
.post-navigation .nt27-nav-heading a {
	text-transform: uppercase;
	letter-spacing: inherit;
	font-size: inherit;
	display: inline;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--nt27-ink);
}
.post-navigation .nt27-nav-heading .nt27-nav-all {
	margin-left: auto;
	font-weight: 700;
	letter-spacing: .08em;
}
.post-navigation .nav-links {
	border: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.post-navigation .nav-links a {
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	overflow-wrap: anywhere;
	display: block;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #e2e2e2;
	border-top: 3px solid var(--nt27-accent);
	color: #2b2b2b;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
	transition: border-color .2s ease;
}
.post-navigation .nav-links .nt27-next {
	grid-column: 2;
	text-align: right;
}
.post-navigation .nav-links a:hover,
.post-navigation .nav-links a:focus-visible {
	border-color: var(--nt27-accent);
	color: var(--nt27-ink);
}
.post-navigation .meta-nav {
	display: block;
	margin-bottom: 6px;
	color: var(--nt27-ink);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}
/* Site-wide row: quieter than the category row */
.nt27-nav-site .nav-links a {
	padding: 12px 14px;
	border-top: 1px solid #e2e2e2;
	font-size: 14px;
	font-weight: 400;
}
.nt27-nav-site .meta-nav {
	color: #767676;
}
@media screen and (max-width: 673px) {
	.post-navigation {
		padding: 0 10px; /* line up with the post text */
	}
}
@media screen and (max-width: 600px) {
	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}
	.post-navigation .nav-links .nt27-next {
		grid-column: auto;
	}
}

/* ==========================================================================
   Post header: no white box overlapping the featured image; categories as
   copper tags (single posts, pages and archive listings)
   ========================================================================== */
.site-content .has-post-thumbnail .entry-header,
.full-width .site-content .has-post-thumbnail .entry-header {
	margin-top: 0 !important;
	padding-top: 32px;
	background: transparent;
}
.site-content .entry-header .cat-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0; /* hides the commas between tags */
	line-height: 1;
	margin-bottom: 6px;
}
.site-content .entry-header .cat-links a {
	display: inline-block;
	background: var(--nt27-accent);
	color: var(--nt27-on-accent) !important;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.6;
	padding: 3px 9px;
}
.site-content .entry-header .cat-links a:hover,
.site-content .entry-header .cat-links a:focus-visible {
	background: var(--nt27-accent-hi);
}
