/*
Theme Name: NY Blog Child
Description: A reusable child theme for Twenty Twenty-Five. Adds category sections, post page options, a table of contents, share buttons, sidebar switches, hero versions and more. Colors, fonts and wording are set for each site. See docs/THEME-GUIDE.md.
Author: NY Blog
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
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: nyblog-child
*/

/* Brand colors, fonts and spacing live in theme.json.
   Use this file only for small extras that theme.json cannot do. */

/* Header: if a logo image is uploaded (Appearance > Editor > Header > Site Logo),
   hide the text site title visually but keep it for screen readers.
   With no logo uploaded, the text title shows as the logo. */
.nyb-brand:has(.wp-block-site-logo img) .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Logo: keep it a sensible height, and smaller on phones */
.nyb-brand .wp-block-site-logo img {
	max-height: 56px;
	width: auto;
	height: auto;
}
@media (max-width: 600px) {
	.nyb-brand .wp-block-site-logo img {
		max-height: 40px;
	}
}

/* Site title link: no underline */
.wp-block-site-title a {
	text-decoration: none;
}

/* Hero photo: rounded corners, never taller than the 4:5 portrait shape.
   If no photo is added, the text fills the whole width. */
.nyb-hero-media .wp-block-media-text__media img {
	border-radius: 2px;
	max-height: 640px;
	object-fit: cover;
}
.nyb-hero-media:not(:has(img)) {
	grid-template-columns: 1fr !important;
}

/* Smooth jump when clicking "Start here" (respects reduced-motion settings) */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
/* Leave room for the sticky header when jumping to an anchor */
#start-here {
	scroll-margin-top: 90px;
}

/* Category tiles: the whole tile is clickable, with a gentle hover */
.nyb-tile {
	position: relative;
	transition: background-color 0.2s ease;
}
.nyb-tile a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.nyb-tile:hover {
	background-color: var(--wp--preset--color--accent-6);
}

/* Tiles sit in a centered row. Fewer tiles stay centered; many tiles wrap to new rows. */
.nyb-tiles > .nyb-tile {
	flex: 0 1 13rem;
	min-width: 10rem;
}

/* Tile icons (built-in SVG, or an image you upload in the editor) */
.nyb-tile-icon {
	margin: 0 auto;
}
.nyb-tile-icon img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* Post cards on the homepage */
.nyb-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
}
.nyb-card .wp-block-post-terms a {
	text-decoration: none;
}
.nyb-card .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

/* Single post: byline, tags and category links */
.nyb-byline p {
	margin: 0;
}
.wp-block-post-terms a {
	text-decoration: none;
}
.nyb-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 2px;
	color: var(--wp--preset--color--contrast);
}
.nyb-tags a:hover {
	background-color: var(--wp--preset--color--accent-2);
}

/* Cards and tiles in a row all get the same height (WordPress centers them by default) */
.wp-block-group.nyb-start-cards,
.wp-block-group.nyb-tiles {
	align-items: stretch;
}

/* Start here cards: a centered row, like the topic tiles */
.nyb-start-cards > .nyb-start-card {
	flex: 0 1 18rem;
	min-width: 14rem;
	text-align: center;
}
.nyb-start-card a {
	font-weight: 600;
	text-decoration: none;
}
.nyb-start-card a:hover {
	text-decoration: underline;
}

/* ============ Single post page ============ */

/* Three columns: share buttons | article | sidebar */
.nyb-single {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
	max-width: 1240px;
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
}
/* Share buttons: the rail is as tall as the article, the buttons stay in the middle of the screen */
.nyb-single__rail {
	align-self: stretch;
}
.nyb-single__rail .nyb-share {
	position: sticky;
	top: calc(50vh - 100px);
}
/* The row version (under the details row) is only for tablets and phones */
.nyb-share-inline {
	display: none;
}
.nyb-single__side {
	position: sticky;
	top: 100px;
}
.admin-bar .nyb-single__side {
	top: 132px;
}
.nyb-single__main > * + * {
	margin-block-start: 1rem;
}

/* Breadcrumb */
.nyb-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: #6B645C;
}
.nyb-breadcrumb li + li::before {
	content: "\203A";
	margin-right: 0.5rem;
}
.nyb-breadcrumb a {
	text-decoration: none;
}
.nyb-breadcrumb a:hover {
	text-decoration: underline;
}

/* Category pill, intro line */
.nyb-single__pill a {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}
.nyb-single__lede {
	color: #4A453F;
	max-width: 36rem;
}
.nyb-single__lede p {
	margin: 0;
}

/* Byline */
.nyb-byline p,
.nyb-byline .wp-block-post-author-name {
	margin: 0;
}
.nyb-byline .wp-block-avatar img {
	display: block;
}
.nyb-dates,
.nyb-byline .wp-block-post-time-to-read {
	color: #6B645C;
}
.nyb-dates__dot {
	margin: 0 0.4rem;
}

/* Share buttons: a vertical column on desktop */
.nyb-share {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.nyb-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-4);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.nyb-share__link:hover {
	background: var(--wp--preset--color--accent-1);
	color: #fff;
}
.nyb-share__link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.nyb-share__link svg[fill="none"] {
	fill: none;
	stroke: currentColor;
}

/* Previous / next box */
.nyb-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--wp--preset--color--accent-6);
	margin-top: 2rem;
}
.nyb-postnav > * {
	margin: 0;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
}
.nyb-postnav > * + * {
	border-left: 1px solid var(--wp--preset--color--accent-6);
}
.nyb-postnav a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-postnav a:hover {
	color: var(--wp--preset--color--accent-1);
}
.nyb-postnav .post-navigation-link__label {
	display: block;
	font-size: 0.8125rem;
	color: #6B645C;
}

/* Sidebar */
.nyb-widget h3 {
	margin: 0 0 1rem;
}
.nyb-recent {
	margin: 0;
	padding: 0;
	list-style: none;
}
.nyb-recent li {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 0.25rem 1rem;
	align-items: center;
	margin-bottom: 1.25rem;
}
.nyb-recent .wp-block-latest-posts__featured-image {
	grid-row: 1 / span 2;
	margin: 0;
}
.nyb-recent .wp-block-latest-posts__featured-image img {
	display: block;
	width: 80px;
	height: 100px;
	object-fit: cover;
	border-radius: 2px;
}
.nyb-recent a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9375rem;
	line-height: 1.3;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-recent a:hover {
	color: var(--wp--preset--color--accent-1);
}
.nyb-recent .wp-block-latest-posts__post-date {
	font-size: 0.8125rem;
	color: #6B645C;
}
.nyb-cats {
	margin: 0;
	padding: 0;
	list-style: none;
}
.nyb-cats li {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	font-size: 0.9375rem;
}
.nyb-cats a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-cats a:hover {
	color: var(--wp--preset--color--accent-1);
}

/* Tablet: sidebar stays, share buttons become a row above the article */
@media (max-width: 1100px) {
	.nyb-single {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
	/* No room for the side column: hide it and show the row under the details row */
	.nyb-single__rail {
		display: none;
	}
	.nyb-single {
		gap: 2rem;
	}
	.nyb-share-inline {
		display: block;
	}
	.nyb-share-inline .nyb-share {
		flex-direction: row;
	}
}
/* Phone: one column, sidebar goes under the article */
@media (max-width: 820px) {
	.nyb-single {
		grid-template-columns: minmax(0, 1fr);
	}
	.nyb-single__side {
		position: static;
	}
}

/* ============ Header: menu never moves when the search opens ============ */

/* One row: logo on the left, menu and search on the right (never drops under the logo) */
.nyb-header > .wp-block-group.alignwide {
	flex-wrap: nowrap;
	gap: 1.5rem;
}
.nyb-header .nyb-brand {
	flex: 0 0 auto;
}
.nyb-header > .wp-block-group.alignwide > :last-child {
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
}
/* Many menu items: let them wrap inside their own space instead of moving */
.nyb-header .wp-block-navigation {
	flex-wrap: wrap;
	justify-content: flex-end;
	row-gap: 0.25rem;
}

/* Search: a round brick button. Clicking it opens the search box in a small panel UNDER the button. */
.nyb-header .wp-block-search {
	position: relative;
	flex: 0 0 auto;
}
.nyb-header .wp-block-search.wp-block-search__button-only,
.nyb-header .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper {
	overflow: visible !important;
}
.nyb-header .wp-block-search .wp-block-search__inside-wrapper {
	width: auto !important;
	min-width: 0;
}
.nyb-header .wp-block-search .wp-block-search__button {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	margin: 0;
}
.nyb-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: min(340px, 85vw);
	padding: 0.75rem 1rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 2px;
	box-shadow: 0 8px 24px rgba(31, 31, 31, 0.12);
	z-index: 10;
}
.nyb-header .wp-block-search .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.nyb-header .wp-block-search .wp-block-search__button svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	vertical-align: middle;
}

/* No jump when the search closes: the input never takes space in the header row,
   and the open/close animation is switched off. */
.nyb-header .wp-block-search .wp-block-search__input {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	transition: none !important;
}
.nyb-header .wp-block-search .wp-block-search__inside-wrapper {
	transition: none !important;
}

/* ============ Category page ============ */

.nyb-archive {
	max-width: 1240px;
	margin: 0 auto;
	padding: 1.5rem 1.5rem 3rem;
}
.nyb-archive > * + * {
	margin-block-start: 1.5rem;
}

/* Banner: label, title, description on the left, big article count on the right */
.nyb-cat-banner {
	padding: 2rem 2.5rem;
	border-radius: 4px;
	gap: 1.5rem;
}
.nyb-cat-banner__text > * {
	margin: 0;
}
.nyb-cat-banner__text > * + * {
	margin-top: 0.5rem;
}
.nyb-cat-banner .wp-block-term-description {
	max-width: 34rem;
	color: #4A453F;
}
.nyb-cat-banner .wp-block-term-description p {
	margin: 0;
}
.nyb-count {
	text-align: center;
	line-height: 1;
}
.nyb-count__num {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 600;
}
.nyb-count__label {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--wp--preset--color--accent-1);
}

/* Filter chips and sort */
.nyb-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}
.nyb-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.nyb-filters__chip {
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	background: #fff;
	font-size: 0.8125rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-filters__chip:hover {
	border-color: var(--wp--preset--color--accent-1);
}
.nyb-filters__chip.is-active {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: #fff;
}
.nyb-filters__sort {
	margin-left: auto;
}
.nyb-filters__sort select {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 2px;
	background: #fff;
	font-family: inherit;
	font-size: 0.8125rem;
}

/* Main column + sidebar */
.nyb-archive__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
}
.nyb-archive__side {
	position: sticky;
	top: 100px;
}

/* Post grid: the first post on page 1 is big and spans both columns */
.nyb-archive-grid {
	padding: 0;
}
body:not(.paged) .nyb-layout-magazine .nyb-archive-grid > li:first-child {
	grid-column: 1 / -1;
}
body:not(.paged) .nyb-layout-magazine .nyb-archive-grid > li:first-child .wp-block-post-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
}
/* Big first post image: the 2:1 shape is set on the image itself (!important beats the editor's inline 3:2) */
body:not(.paged) .nyb-layout-magazine .nyb-archive-grid > li:first-child .wp-block-post-featured-image img {
	aspect-ratio: 2 / 1 !important;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.nyb-acard .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-acard .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
}
.nyb-acard .wp-block-post-excerpt {
	color: #4A453F;
}
.nyb-acard .wp-block-post-excerpt p {
	margin: 0;
}
.nyb-pill a {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}
.nyb-acard__meta {
	color: #6B645C;
}
.nyb-acard__meta > * {
	margin: 0;
}
/* Author and reading time only on the big first post */
.nyb-acard__extra {
	display: none;
}
body:not(.paged) .nyb-layout-magazine .nyb-archive-grid > li:first-child .nyb-acard__extra {
	display: block;
}

/* Page numbers as round buttons */
.nyb-pagination {
	gap: 0.5rem;
}
.nyb-pagination .page-numbers,
.nyb-pagination a {
	text-decoration: none;
}
.nyb-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.5rem;
}
.nyb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 50%;
	background: #fff;
	font-size: 0.875rem;
}
.nyb-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: #fff;
}

/* Sidebar: highlight the category being viewed */
.nyb-cats .current-cat > a {
	color: var(--wp--preset--color--accent-1);
	font-weight: 600;
}

@media (max-width: 900px) {
	.nyb-archive__layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.nyb-archive__side {
		position: static;
	}
	.nyb-cat-banner {
		padding: 1.5rem;
	}
}
@media (max-width: 600px) {
	.nyb-archive-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ---- Category page layouts (chosen in Settings > Reading) ---- */

/* Cards: 3 columns, portrait image on top */
.nyb-layout-cards .nyb-archive-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nyb-layout-cards .nyb-acard .wp-block-post-featured-image img {
	aspect-ratio: 4 / 5 !important;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.nyb-layout-cards .nyb-acard .wp-block-post-excerpt {
	display: none;
}

/* List: 2 columns, portrait image on the left, text on the right */
.nyb-layout-list .nyb-acard {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	column-gap: 1.5rem;
	align-items: center;
}
.nyb-layout-list .nyb-acard > * {
	grid-column: 2;
	margin: 0;
}
.nyb-layout-list .nyb-acard > .wp-block-post-featured-image {
	grid-column: 1;
	grid-row: 1 / span 5;
}
.nyb-layout-list .nyb-acard .wp-block-post-featured-image img {
	aspect-ratio: 4 / 5 !important;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.nyb-layout-list .nyb-acard > * + * {
	margin-top: 0.4rem;
}

@media (max-width: 900px) {
	.nyb-layout-cards .nyb-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.nyb-layout-cards .nyb-archive-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.nyb-layout-list .nyb-acard {
		grid-template-columns: 110px minmax(0, 1fr);
	}
	.nyb-layout-list .nyb-archive-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
@media (max-width: 1100px) {
	.nyb-layout-list .nyb-archive-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ============ Table of contents ============ */
.nyb-toc {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--accent-2);
	border-left: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 2px;
}
.nyb-toc__title {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 600;
}
.nyb-toc__list {
	margin: 0.75rem 0 0;
	padding-left: 0;
	list-style: none;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.nyb-toc__item {
	margin: 0.35rem 0;
}
.nyb-toc__item--h3 {
	margin-left: 1rem;
	font-size: 0.875rem;
}
.nyb-toc a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.nyb-toc a:hover {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}
/* Headings jumped to by the table of contents stay clear of the sticky header */
.entry-content h2[id],
.entry-content h3[id] {
	scroll-margin-top: 100px;
}

/* ============ Pages (About, Contact, legal pages) ============ */
.nyb-page-banner .nyb-breadcrumb ol {
	justify-content: center;
}
.nyb-page .wp-block-post-content > * + * {
	margin-block-start: 1.25rem;
}
.nyb-page .wp-block-post-content h2 {
	margin-top: 2.5rem;
}
.nyb-page .wp-block-post-content h3 {
	margin-top: 2rem;
}

/* ============ Sidebar on/off (Settings > Reading) ============ */
/* PHP adds the class nyb-sb-off to the page when the sidebar is switched off for that page type. */

/* Homepage: category sections with an optional sidebar */
.nyb-home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.nyb-home-layout .nyb-cat-section {
	padding-left: 0;
	padding-right: 0;
}
.nyb-home-layout__side,
.nyb-page-layout__side {
	position: sticky;
	top: 100px;
	margin-top: 3rem;
}

/* Pages: content with an optional sidebar */
.nyb-page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
	max-width: 1240px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

/* Sidebar OFF: one column */
body.nyb-sb-off .nyb-home-layout,
body.nyb-sb-off .nyb-archive__layout {
	grid-template-columns: minmax(0, 1fr);
}
body.nyb-sb-off .nyb-page-layout {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}
body.nyb-sb-off .nyb-single {
	grid-template-columns: 56px minmax(0, 1fr);
}

@media (max-width: 900px) {
	.nyb-home-layout,
	.nyb-page-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.nyb-home-layout__side,
	.nyb-page-layout__side {
		position: static;
		margin-top: 0;
	}
}
@media (max-width: 1100px) {
	body.nyb-sb-off .nyb-single {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 820px) {
	body.nyb-sb-off .nyb-page-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ============ Mobile menu (the full-screen panel that opens on phones) ============ */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem 1.5rem 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 1rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	text-align: left;
}

/* Author box at the end of a post */
.nyb-author-box {
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: var(--wp--preset--color--accent-2);
	border-radius: 2px;
	align-items: flex-start;
}
.nyb-author-box .wp-block-avatar {
	flex: 0 0 auto;
	margin: 0;
}
.nyb-author-box__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
}
.nyb-author-box__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-weight: 700;
	line-height: 1.2;
}
.nyb-author-box .wp-block-post-author-biography {
	margin: 0.25rem 0 0;
	line-height: 1.6;
}
.nyb-author-box p {
	margin-block: 0;
}
.nyb-author-box a {
	font-weight: 600;
}
@media (max-width: 600px) {
	.nyb-author-box {
		flex-direction: column;
		padding: 1.25rem;
	}
}
