/*
Theme Name: The Network Bits Theme
Theme URI: https://thenetworkbits.com
Author: The Network Bits Team
Author URI: https://thenetworkbits.com
Description: The Network Bits Theme emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thenetworkbits
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* 
This file is primarily for WordPress theme identification.
Main styles are located in assets/css/main.css 
*/
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


/* =============================================================================
   TNB Home Template Styles
   ============================================================================= */

/* Section headings ---------------------------------------------------------- */

.tnb-section-heading {
	font-weight: 700;
	font-size: 1.125rem;
	/* ~text-lg */
	line-height: 1.4;
}

.tnb-section-heading--featured {
	color: #fc7510;
}

.tnb-section-heading--latest {
	color: #fc5710;
	margin-left: 4.5rem;
	margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
	.tnb-section-heading--latest {
		color: #fc5710;
		margin-left: 1.5rem;
		margin-bottom: 0.5rem;
	}

	.tnb-input{
		height: 60px;
	}
}

/* Featured section wrapper -------------------------------------------------- */

.tnb-featured-section {
	/* Inherits background color from block attributes; 
	   add any extra overrides here if needed. */
}

/* Post card ----------------------------------------------------------------- */

.post-card {
	padding-bottom: 1.25rem;
	/* ~pb-5 */
	padding-left: 1.25rem;
}

.post-card .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.post-card__title {
	margin-top: 1rem;
	/* ~mt-4 */
	margin-left: 1.25rem;
	/* ~mx-5 */
	margin-right: 1.25rem;
}

.wp-block-post-template {
	max-width: 100%;
	width: 100%;
}

.content-grid .wp-block-query {
	max-width: 100%;
}

/* Post card meta row (date + author) ---------------------------------------- */

.post-card__meta {
	display: flex;
	gap: 0.25em;
	align-items: center;
	margin: 1rem 1.25rem;
	/* ~my-4 mx-5 */
}

.post-card__meta .wp-block-post-date,
.post-card__meta .wp-block-post-author-name {
	font-size: 0.875rem;
	color: var(--wp--preset--color--secondary, #666);
}

/* Separate date and author with a middot */
.post-card__meta .wp-block-post-date::after {
	content: "\00B7";
	/* · */
	margin-left: 0.25em;
}

/* Post card categories ------------------------------------------------------ */

.post-card__categories {
	margin-left: 1.25rem;
	/* ~mx-5 */
	margin-right: 1.25rem;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}