/**
 * Pulser Theme Core Stylesheet
 * High-performance, modern CSS refactored for Apps Script Pulse
 *
 * @package Pulser
 */

/* ==========================================================================
   1. CSS Variables & Theme Foundation
   ========================================================================== */
:root {
	--pulser-font-sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--pulser-font-headings: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--pulser-font-mono: Consolas, Menlo, Monaco, "Courier New", monospace;

	/* Google Identity Palette */
	--pulser-blue: #4285F4;
	--pulser-red: #EA4335;
	--pulser-yellow: #FBBC05;
	--pulser-green: #34A853;

	/* Neutral / Content Colors */
	--pulser-bg-body: #EEEEEE;
	--pulser-bg-card: #FFFFFF;
	--pulser-bg-sidebar: #FFFFFF;
	--pulser-text-main: #333333;
	--pulser-text-heading: #222222;
	--pulser-text-meta: #757575;
	--pulser-border: #E0E0E0;

	/* Card Dimensions */
	--pulser-card-width: 380px;
	--pulser-lead-width: 770px;

	/* Card Shadow (Constant clean drop shadow, zero hover jumping) */
	--pulser-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.20);
	--pulser-sidebar-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--pulser-font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--pulser-text-main);
	background-color: var(--pulser-bg-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Screen Reader Text */
.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 {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--pulser-font-headings);
	color: var(--pulser-text-heading);
	margin-top: 0;
	margin-bottom: 0.5rem;
	line-height: 1.25;
	font-weight: 700;
	word-break: break-word;
	overflow-wrap: break-word;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
	word-break: break-word;
	overflow-wrap: break-word;
}

a {
	color: var(--pulser-blue);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover, a:focus {
	color: #0f8fce;
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

pre, code, kbd, samp {
	font-family: var(--pulser-font-mono);
	font-size: 0.9em;
}

pre {
	background-color: #f6f8fa;
	padding: 12px;
	border-radius: 4px;
	overflow-x: auto;
	border: 1px solid #e1e4e8;
	max-width: 100%;
	box-sizing: border-box;
}

blockquote {
	margin: 0 0 1rem;
	padding: 0.5rem 1rem;
	border-left: 4px solid var(--pulser-blue);
	background-color: #f9f9f9;
	color: #555;
}

/* Strict Responsive Bounds for Images, Tables, and Embeds */
iframe, object, embed, video, table {
	max-width: 100% !important;
	box-sizing: border-box;
}

/* ==========================================================================
   3. Main Page Layout (Responsive Architecture)
   ========================================================================== */
.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow-x: hidden;
}

.site-main-layout {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	flex-grow: 1;
	min-width: 0;
}

/* Desktop Sidebar */
.site-sidebar {
	width: 280px;
	flex-shrink: 0;
	background-color: var(--pulser-bg-sidebar);
	box-shadow: var(--pulser-sidebar-shadow);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	z-index: 10;
	box-sizing: border-box;
}

/* Desktop Content Area */
#primary,
.site-content,
.site-main,
.content-area {
	flex-grow: 1;
	width: calc(100% - 280px);
	max-width: none;
	padding: 24px 30px;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: hidden;
}

.single-post-area,
.single-page-area,
.single #primary,
.single .site-content,
.page #primary,
.page .site-content {
	max-width: 1500px;
}

/* ==========================================================================
   4. Header & Branding (Logo & Title)
   ========================================================================== */
.site-header {
	width: 100%;
}

.header-wrap {
	border-bottom: 1px solid var(--pulser-border);
	padding-bottom: 12px;
	margin-bottom: 15px;
}

#site-title {
	background-image: url(https://pulse.appsscript.info/files/2019/08/cropped-pulse-flat.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
	height: 48px;
	margin: 0 0 8px 0;
}

#site-title a {
	display: none;
}

.site-logo-wrap img {
	max-height: 50px;
	width: auto;
}

.site-description {
	font-family: var(--pulser-font-headings);
	font-size: 13px;
	color: var(--pulser-text-meta);
	line-height: 1.3;
	margin: 0;
}

/* Header image */
.header-image-wrap {
	margin-bottom: 15px;
}

.custom-header-image {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   5. Main Navigation (Arrow Bullets, Clean Text)
   ========================================================================== */
.main-navigation {
	margin-bottom: 10px;
}

.main-navigation ul {
	list-style: none;
	padding-left: 14px;
	margin: 0;
}

.main-navigation ul li {
	padding: 4px 0;
	position: relative;
	font-size: 14px;
	line-height: 1.3;
}

.main-navigation ul li:before {
	content: "";
	border-color: transparent #888;
	border-style: solid;
	border-width: 0.32em 0 0.32em 0.42em;
	display: inline-block;
	margin-right: 8px;
	vertical-align: middle;
}

.main-navigation ul li a {
	color: #555555;
	font-weight: 500;
	text-decoration: none;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
	color: var(--pulser-blue);
	text-decoration: underline;
}

.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
	color: #222222;
	font-weight: 700;
	background: transparent;
}

/* Sub-menus */
.main-navigation ul .sub-menu {
	padding-left: 16px;
	margin-top: 4px;
}

/* ==========================================================================
   6. Sidebar Widgets & Hierarchical Filter Lists
   ========================================================================== */
.site-sidebar .widget {
	width: 100%;
	font-size: 13.5px;
}

.site-sidebar .widget-title {
	font-family: var(--pulser-font-headings);
	font-size: 15px;
	font-weight: 700;
	color: #222;
	border-bottom: 1px solid var(--pulser-border);
	padding-bottom: 8px;
	margin-bottom: 10px;
}

/* Hierarchical Category / Taxonomy Filter Lists */
.site-sidebar .widget ul {
	list-style: none;
	padding-left: 0;
	margin: 6px 0;
}

.site-sidebar .widget ul li {
	padding: 3px 0;
	color: #555555;
	font-size: 13.5px;
	line-height: 1.4;
	border-bottom: none;
}

.site-sidebar .widget ul li a {
	color: #555555;
	text-decoration: none;
}

.site-sidebar .widget ul li a:hover {
	color: var(--pulser-blue);
	text-decoration: underline;
}

/* Nested Sub-categories / Level / Solutions (Indented Hierarchical Data) */
.site-sidebar .widget ul.children,
.site-sidebar .widget ul ul {
	padding-left: 16px;
	margin-top: 3px;
	margin-bottom: 3px;
}

.site-sidebar .widget ul.children li:before,
.site-sidebar .widget ul ul li:before {
	content: "";
	border-color: transparent #aaa;
	border-style: solid;
	border-width: 0.3em 0 0.3em 0.4em;
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
}

/* Sidebar Neutral Form Buttons (Search & Subscribe) */
.site-sidebar .search-form {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 10px;
}

.site-sidebar .search-form .search-field {
	flex-grow: 1;
	width: 150px;
	padding: 5px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
	color: #444;
	background: #fff;
}

.site-sidebar .search-form .search-submit,
.site-sidebar .widget input[type="submit"],
.site-sidebar .widget button {
	background: #f7f7f7;
	border: 1px solid #ccc;
	color: #444;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-sidebar .search-form .search-submit:hover,
.site-sidebar .widget input[type="submit"]:hover,
.site-sidebar .widget button:hover {
	background: #eaeaea;
	border-color: #bbb;
}

/* Tag Cloud */
.widget .tagcloud a {
	background: #f0f0f0;
	border: 1px solid #ddd;
	color: #555;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px !important;
	display: inline-block;
	margin: 0 3px 4px 0;
	text-decoration: none;
}

.widget .tagcloud a:hover {
	background: #e0e0e0;
	color: #222;
}

/* ==========================================================================
   7. Post Card Grid & Dynamic Masonry Sizing
   ========================================================================== */
.pulser-card-grid {
	position: relative;
	width: 100%;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}

.pulser-card,
article.masonry {
	background-color: var(--pulser-bg-card);
	border: 1px solid var(--pulser-border);
	border-top-width: 4px;
	border-top-style: solid;
	border-top-color: var(--pulser-blue);
	border-radius: 0 0 4px 4px;
	box-shadow: var(--pulser-card-shadow);
	padding: 20px;
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Multi-Column Desktop Masonry Layout (> 780px) */
@media screen and (min-width: 781px) {
	.pulser-card-grid {
		display: block;
		width: 100%;
		max-width: none;
		position: relative;
	}

	.pulser-card-grid > .pulser-card,
	.pulser-card-grid > article.masonry {
		width: var(--pulser-card-width);
		max-width: var(--pulser-card-width);
		margin: 0 10px 10px 0;
		float: left;
	}

	.pulser-card-grid > .pulser-card:first-of-type,
	.pulser-card-grid > article.masonry:first-child {
		width: var(--pulser-lead-width);
		max-width: var(--pulser-lead-width);
		margin: 0 10px 10px 0;
	}
}

/* Single-post, Page, and 404 views override */
.single-post-area .pulser-card,
.single-page-area .pulser-card,
.single .pulser-card,
.page .pulser-card,
.error-404.pulser-card {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-bottom: 0;
}

/* ==========================================================================
   8. Post Card Design (Google 4-Color Order & Typography)
   ========================================================================== */
/* Google 4-Color Border Rotations: Blue, Red, Yellow, Green */
.pulser-card:nth-of-type(4n+1),
article.masonry:nth-of-type(4n+1) {
	border-top-color: var(--pulser-blue);
}

.pulser-card:nth-of-type(4n+2),
article.masonry:nth-of-type(4n+2) {
	border-top-color: var(--pulser-red);
}

.pulser-card:nth-of-type(4n+3),
article.masonry:nth-of-type(4n+3) {
	border-top-color: var(--pulser-yellow);
}

.pulser-card:nth-of-type(4n+4),
article.masonry:nth-of-type(4n+4) {
	border-top-color: var(--pulser-green);
}

/* Category Badges */
.post-category-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.post-category-badges a {
	background-color: var(--pulser-blue);
	color: #ffffff !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 0;
	text-decoration: none;
	letter-spacing: 0.5px;
	display: inline-block;
}

.post-category-badges a:hover {
	background-color: #0f8fce;
}

/* Post Titles */
.pulser-card .entry-title,
article.masonry .entry-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px 0;
	word-break: break-word;
	overflow-wrap: break-word;
}

.single .pulser-card .entry-title,
.single article.masonry .entry-title,
.page .pulser-card .entry-title {
	font-size: 32px;
	font-weight: 900;
	line-height: 1.1;
	color: #333333;
}

.pulser-card .entry-title a,
article.masonry .entry-title a {
	color: var(--pulser-text-heading);
	text-decoration: none;
}

.pulser-card .entry-title a:hover,
article.masonry .entry-title a:hover {
	color: var(--pulser-blue);
}

/* Post Metadata Line */
.entry-meta {
	font-size: 13px;
	color: var(--pulser-text-meta);
	margin-bottom: 12px;
	line-height: 1.6;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.entry-meta a {
	color: var(--pulser-text-meta);
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--pulser-blue);
	text-decoration: underline;
}

.entry-meta .meta-sep {
	color: #aaa;
	margin: 0 2px;
}

.entry-meta .tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.entry-meta .tags span {
	color: var(--pulser-text-meta);
}

.entry-meta .tags a {
	background: transparent;
	padding: 0;
	border: none;
	color: var(--pulser-text-meta);
}

.entry-meta .tags a:hover {
	color: var(--pulser-blue);
}

/* Bare Brand-Colored Social Sharing Icons */
.social-share-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.social-share-list li {
	display: inline-flex;
	align-items: center;
}

.social-share-list .share-sep {
	color: #aaa;
	font-size: 11px;
}

.social-share-list .share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.social-share-list .share-icon:hover {
	opacity: 0.65;
}

.social-share-list .share-twitter .icon-twitter {
	color: #00acee;
	fill: #00acee;
}

.social-share-list .share-facebook .icon-facebook {
	color: #3b5998;
	fill: #3b5998;
}

.social-share-list .share-linkedin .icon-linkedin {
	color: #0e76a8;
	fill: #0e76a8;
}

.social-share-list .share-reddit .icon-reddit {
	color: #000000;
	fill: #000000;
}

/* Post Content & Read More Button */
.entry-content {
	color: #444444;
	font-size: 15px;
	line-height: 1.6;
	flex-grow: 1;
	min-width: 0;
	max-width: 100%;
	word-break: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.entry-content img,
.entry-content figure,
.entry-content picture,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content table {
	max-width: 100% !important;
	height: auto;
	box-sizing: border-box;
}

.entry-content pre {
	max-width: 100%;
	overflow-x: auto;
	box-sizing: border-box;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* =WordPress Core & Gutenberg Block Alignments
-------------------------------------------------------------- */
.entry-content figure {
	margin: 1.5em 0;
}

/* Base Image & Block Styles */
.wp-block-image {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
}

.wp-block-image picture {
	display: inline-block;
	max-width: 100%;
}

/* Align Center */
.aligncenter,
div.aligncenter,
figure.aligncenter,
p.aligncenter,
.wp-block-image.aligncenter,
.wp-block-embed.aligncenter {
	display: table;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	clear: both;
}

.aligncenter > a,
.aligncenter > img,
.aligncenter > picture,
.aligncenter picture,
.aligncenter picture img,
.aligncenter img,
.wp-block-image.aligncenter > a,
.wp-block-image.aligncenter > picture,
.wp-block-image.aligncenter > img,
.wp-block-image.aligncenter picture,
.wp-block-image.aligncenter picture img,
.wp-block-image.aligncenter img,
figure.aligncenter > a,
figure.aligncenter > picture,
figure.aligncenter > img,
figure.aligncenter picture,
figure.aligncenter img,
a img.aligncenter,
a picture.aligncenter,
img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Align Left */
.alignleft,
div.alignleft,
figure.alignleft,
img.alignleft,
.wp-block-image.alignleft,
.wp-block-embed.alignleft {
	display: inline;
	float: left;
	margin: 0.5em 1.5em 1em 0;
	max-width: calc(100% - 1.5em);
}

.wp-block-image.alignleft,
figure.alignleft {
	display: table;
}

a img.alignleft,
a picture.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

/* Align Right */
.alignright,
div.alignright,
figure.alignright,
img.alignright,
.wp-block-image.alignright,
.wp-block-embed.alignright {
	display: inline;
	float: right;
	margin: 0.5em 0 1em 1.5em;
	max-width: calc(100% - 1.5em);
}

.wp-block-image.alignright,
figure.alignright {
	display: table;
}

a img.alignright,
a picture.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

/* Align None */
.alignnone,
div.alignnone,
figure.alignnone,
img.alignnone,
.wp-block-image.alignnone {
	display: block;
	margin: 0.5em 0 1em 0;
}

/* Align Wide & Full */
.wp-block-image.alignwide,
.alignwide {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-image.alignfull,
.alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Captions */
.wp-caption,
figure.wp-block-image figcaption,
.entry-content figcaption,
.wp-element-caption,
.wp-caption p.wp-caption-text {
	font-size: 13px;
	color: #666666;
	margin-top: 8px;
	margin-bottom: 4px;
	text-align: center;
	font-style: italic;
	line-height: 1.4;
}

.wp-caption {
	background: #f9f9f9;
	border: 1px solid #e6e6e6;
	max-width: 100%;
	padding: 8px;
	margin-bottom: 1.5em;
	box-sizing: border-box;
}

.wp-caption img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
}

/* Mobile responsive resets for floated images */
@media (max-width: 600px) {
	.alignleft,
	.alignright,
	div.alignleft,
	div.alignright,
	figure.alignleft,
	figure.alignright,
	img.alignleft,
	img.alignright,
	.wp-block-image.alignleft,
	.wp-block-image.alignright,
	a img.alignleft,
	a img.alignright,
	a picture.alignleft,
	a picture.alignright {
		float: none;
		display: table;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
}

.entry-content .more-link,
.entry-content .button {
	display: inline-block;
	background-color: var(--pulser-blue);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	margin-top: 10px;
	transition: background-color 0.15s ease;
}

.entry-content .more-link:hover,
.entry-content .button:hover {
	background-color: #0f8fce;
	color: #ffffff;
	text-decoration: none;
}

/* Code Links */
a code, code a {
	color: #1a73e8 !important;
}

/* Single Post Content Enhancements */
.single .entry-content p,
.page .entry-content p {
	font-size: 16px;
	line-height: 1.6;
	color: #555555;
	margin: 16px 0;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding-left: 16px;
	border-left: 10px solid #cccccc;
	font-style: italic;
	color: #555555;
}

.entry-content code {
	font-family: 'Andale Mono', 'Lucida Console', Monaco, monospace;
	font-size: 13px;
	background: #f2f2f2;
	border: 1px solid #e6e6e6;
	border-radius: 3px;
	padding: 2px 5px;
	color: #1a73e8;
}

.entry-content pre code {
	background: transparent;
	border: none;
	padding: 0;
	color: inherit;
}

/* Post Navigation (Previous / Next) */
.post-navigation {
	margin: 24px 0;
	clear: both;
	width: 100%;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 16px;
	flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1 1 280px;
	max-width: 49%;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	display: block;
	padding: 14px 18px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	text-decoration: none;
	height: 100%;
	box-sizing: border-box;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.post-navigation a:hover {
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #888888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.post-navigation .nav-title {
	font-size: 15px;
	font-weight: 600;
	color: #333333;
	line-height: 1.4;
	display: block;
}

.post-navigation a:hover .nav-title {
	color: var(--pulser-blue);
}

/* ==========================================================================
   Comments Section & Hierarchy
   ========================================================================== */
#comments,
.comments-area {
	float: left;
	width: 100%;
	margin: 24px 0 0;
	clear: both;
	box-sizing: border-box;
}

#comments-title,
#reply-title,
.comments-title,
.comment-reply-title {
	font-family: var(--pulser-font-headings);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
	color: #333333;
	margin: 20px 0 16px;
}

.commentlist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.commentlist .comment,
.commentlist .pingback {
	list-style: none;
}

.commentlist .comment-body {
	background: #ffffff;
	padding: 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 100;
	margin-bottom: 10px;
	min-height: 60px;
	box-sizing: border-box;
}

.commentlist .comment-avatar {
	float: left;
	width: 60px;
	height: 60px;
}

.commentlist .comment-avatar img,
.commentlist .comment-avatar .avatar {
	width: 60px;
	height: 60px;
	display: block;
	border-radius: 0;
}

.commentlist .comment-content {
	padding-left: 75px;
}

.commentlist .comment-author {
	font-size: 18px;
	font-weight: 700;
	color: #333333;
	line-height: 1.4;
	margin-bottom: 4px;
}

.commentlist .comment-author a {
	color: #333333;
	text-decoration: none;
}

.commentlist .comment-author a:hover {
	color: var(--pulser-blue);
}

.commentlist .comment-meta {
	font-size: 13px;
	color: #888888;
	font-style: italic;
	margin-bottom: 12px;
	line-height: 1.5;
}

.commentlist .comment-meta a {
	color: #888888;
	text-decoration: none;
}

.commentlist .comment-meta a:hover {
	color: var(--pulser-blue);
}

.commentlist .comment-meta .comment-edit-link {
	margin-left: 8px;
	font-style: normal;
	color: var(--pulser-blue);
}

.commentlist .comment-text {
	font-size: 15px;
	line-height: 1.6;
	color: #555555;
}

.commentlist .comment-text p {
	margin: 12px 0;
}

.commentlist .comment-text p:first-child {
	margin-top: 0;
}

.commentlist .comment-text p:last-child {
	margin-bottom: 0;
}

.commentlist .reply {
	margin-top: 12px;
	text-align: right;
}

.commentlist .comment-reply-link {
	display: inline-block;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff !important;
	background: #bbbbbb;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.commentlist .comment-reply-link:hover {
	background: #888888;
}

/* Threaded Comments & Tree Connectors */
.commentlist .children {
	padding-left: 10px;
	list-style: none;
}

.commentlist .children > .comment {
	border-left: 1px solid #cccccc;
	position: relative;
	padding-left: 23px !important;
	padding-bottom: 10px;
}

.commentlist .children > .comment:before {
	content: "";
	position: absolute;
	top: 30px;
	left: -7px;
	width: 12px;
	height: 12px;
	background: #ffffff;
	border-radius: 50%;
	border: 1px solid #cccccc;
	z-index: 60;
}

.commentlist .children > .comment:after {
	content: "";
	position: absolute;
	top: 36px;
	left: -5px;
	width: 100px;
	height: 1px;
	border-top: 1px solid #cccccc;
	z-index: 50;
}

/* Post Author Highlight */
.commentlist .bypostauthor > .comment-body {
	border-left: 6px solid var(--pulser-blue);
}

/* Comment Form Card */
#respond {
	background: #ffffff;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	margin-top: 24px;
	clear: both;
	box-sizing: border-box;
}

#respond #reply-title {
	margin-top: 0;
	margin-bottom: 16px;
}

#cancel-comment-reply-link {
	font-size: 13px;
	font-weight: normal;
	float: right;
	color: #d93025;
	text-decoration: none;
}

#cancel-comment-reply-link:hover {
	text-decoration: underline;
}

.logged-in-as,
.comment-notes {
	font-size: 14px;
	color: #666666;
	margin-bottom: 16px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #555555;
	margin-bottom: 6px;
}

.comment-form textarea#comment {
	width: 100%;
	min-height: 140px;
	padding: 10px 12px;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	color: #333333;
	background: #ffffff;
	box-sizing: border-box;
	resize: vertical;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 280px;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
	font-size: 14px;
	color: #333333;
	background: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
	border-color: #aaaaaa;
	outline: none;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.comment-form .form-submit {
	margin-top: 16px;
	margin-bottom: 0;
}

.comment-form .form-submit input#submit,
.comment-form .form-submit input[type="submit"] {
	background: #888888;
	color: #ffffff;
	border: 0;
	border-radius: 6px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
	transition: background 0.2s ease;
}

.comment-form .form-submit input#submit:hover,
.comment-form .form-submit input[type="submit"]:hover {
	background: #444444;
}

/* Comment navigation links */
.comment-navigation {
	display: flex;
	justify-content: space-between;
	margin: 16px 0;
}

.comment-navigation a {
	color: var(--pulser-blue);
	font-weight: 500;
	text-decoration: none;
}

.comment-navigation a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   9. Archive Headers & Pagination
   ========================================================================== */
.archive-header {
	background: #ffffff;
	padding: 16px 20px;
	margin-bottom: 20px;
	border-left: 4px solid var(--pulser-blue);
	box-shadow: var(--pulser-card-shadow);
	max-width: 100%;
}

.archive-title {
	font-size: 22px;
	margin-bottom: 6px;
}

.archive-description {
	color: var(--pulser-text-meta);
	font-size: 14px;
	margin: 0;
}

/* Pagination */
.navigation.pagination {
	margin: 30px 0 10px;
	text-align: center;
	clear: both;
	width: 100%;
}

.navigation.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	padding: 6px 12px;
	background: #ffffff;
	border: 1px solid var(--pulser-border);
	color: #444;
	font-size: 14px;
	border-radius: 3px;
	text-decoration: none;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
	background: var(--pulser-blue);
	color: #ffffff;
	border-color: var(--pulser-blue);
}

/* ==========================================================================
   10. Mobile & Tablet Responsive Rules
   ========================================================================== */
.mobile-header-bar {
	display: none;
}

.drop-down-search {
	display: none;
}

.mobile-drawer-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.4);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

/* Tablet / Medium Screen Breakpoint (<= 1080px) */
@media screen and (max-width: 1080px) {
	.mobile-header-bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 52px;
		padding: 0 16px;
		background-color: #ffffff;
		border-bottom: 1px solid var(--pulser-border);
		position: sticky;
		top: 0;
		z-index: 100;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	}

	.mobile-header-btn {
		background: none;
		border: none;
		padding: 8px;
		cursor: pointer;
		color: #444;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.menu-toggle-btn .icon-close {
		display: none;
	}

	body.menu-open .menu-toggle-btn .icon-menu {
		display: none;
	}

	body.menu-open .menu-toggle-btn .icon-close {
		display: inline-block;
	}

	.mobile-branding .mobile-logo-img {
		height: 36px;
		width: auto;
	}

	/* Search Dropdown */
	.drop-down-search {
		display: none;
		background: #ffffff;
		padding: 12px 16px;
		border-bottom: 1px solid var(--pulser-border);
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		position: sticky;
		top: 52px;
		z-index: 99;
	}

	.drop-down-search.is-open {
		display: block;
	}

	.drop-down-search .search-form {
		display: flex;
		gap: 8px;
	}

	.drop-down-search .search-field {
		flex-grow: 1;
		padding: 8px 12px;
		border: 1px solid #ccc;
		border-radius: 4px;
	}

	.drop-down-search .search-submit {
		background: var(--pulser-blue);
		color: #fff;
		border: none;
		padding: 8px 16px;
		border-radius: 4px;
		cursor: pointer;
	}

	/* Main Layout */
	.site-main-layout {
		display: block;
		width: 100%;
	}

	/* Off-canvas Sidebar Drawer */
	.site-sidebar {
		position: fixed;
		top: 0;
		left: -320px;
		width: 300px;
		height: 100vh;
		background: #ffffff;
		z-index: 999;
		overflow-y: auto;
		padding: 24px 20px;
		box-shadow: 3px 0 12px rgba(0, 0, 0, 0.25);
		transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	body.menu-open .site-sidebar {
		left: 0;
	}

	body.menu-open .mobile-drawer-backdrop {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}

	/* Content Area */
	#primary,
	.site-content,
	.site-main,
	.content-area {
		width: 100%;
		padding: 20px 16px;
	}
}

/* Tablet Portrait & Mobile Breakpoint (<= 780px) */
@media screen and (max-width: 780px) {
	.pulser-card-grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 16px !important;
	}

	.pulser-card-grid > .pulser-card,
	.pulser-card-grid > article.masonry {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		margin: 0 0 16px 0 !important;
		transform: none !important;
	}
}

/* Mobile Phone Breakpoint (< 600px) */
@media screen and (max-width: 600px) {
	.mobile-header-bar {
		height: 48px;
		padding: 0 12px;
	}

	.mobile-branding .mobile-logo-img {
		height: 32px;
	}

	.drop-down-search {
		top: 48px;
	}

	.site-sidebar {
		left: -300px;
		width: 280px;
	}

	#primary,
	.site-content,
	.site-main,
	.content-area {
		padding: 14px 10px;
	}

	.pulser-card,
	article.masonry {
		padding: 16px;
		max-width: 100%;
	}

	.pulser-card .entry-title,
	article.masonry .entry-title {
		font-size: 20px;
	}

	.entry-meta {
		font-size: 12px;
	}

	/* Mobile Post Navigation */
	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	/* Mobile Comments */
	.commentlist .comment-content {
		padding-left: 0;
		clear: both;
		padding-top: 10px;
	}

	.commentlist .children {
		margin-left: 0;
		padding-left: 0;
	}

	.commentlist .children > .comment {
		padding-left: 12px !important;
		border-left-width: 2px;
	}

	.commentlist .children > .comment:before,
	.commentlist .children > .comment:after {
		display: none;
	}

	.comment-form input[type="text"],
	.comment-form input[type="email"],
	.comment-form input[type="url"] {
		width: 100%;
	}
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
	background-color: #333333;
	color: #eeeeee;
	padding: 18px 24px;
	font-size: 13px;
	margin-top: auto;
	width: 100%;
	clear: both;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 1400px;
	margin: 0 auto;
}

.footer-content a {
	color: #ffffff;
	text-decoration: underline;
}

.footer-content a:hover {
	color: var(--pulser-blue);
}

@media screen and (max-width: 600px) {
	.footer-content {
		flex-direction: column;
		text-align: center;
	}
}
