/*!
Theme Name: MSM SEO
Theme URI: https://mdsakibmia.com/
Author: Md Sakib Mia
Author URI: https://mdsakibmia.com/
Description: A fully dynamic SEO consultancy theme. Every string on the front end is editable from the WordPress admin through the MSM Section Builder meta box, custom post types and the Kirki-powered Customizer. Ships with a one-click demo importer that seeds the complete reference site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: msmseo
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks

This theme, like WordPress, is licensed under the GPL.

The compiled utility stylesheet lives in assets/css/app.css and is enqueued as the
main front-end stylesheet. This file exists to carry the theme header and the
WordPress-core overrides that the static build never needed (alignments, captions,
galleries, comment list, widgets, pagination, block editor output).
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.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: hsl(var(--card));
	border-radius: var(--radius);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--msm-accent);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Directional neon borders

# app.css compiles `.neon-border` to `border-width: 1px` on all four sides, so
# `border-t neon-border` (a divider) rendered as a full box: the later
# `.border-t` rule only resets the top width and the other three stayed at 1px.
# Pairing the two classes now means "this side only", which is how every
# template already uses them.
--------------------------------------------------------------*/
/* Drop every side first, then let each utility add back only its own, so that
   combinations such as `border-t border-b neon-border` still resolve to both. */
.neon-border.border-t,
.neon-border.border-r,
.neon-border.border-b,
.neon-border.border-l,
.neon-border.border-x,
.neon-border.border-y { border-width: 0; }

.neon-border.border-t { border-top-width: 1px; }
.neon-border.border-r { border-right-width: 1px; }
.neon-border.border-b { border-bottom-width: 1px; }
.neon-border.border-l { border-left-width: 1px; }
.neon-border.border-x { border-left-width: 1px; border-right-width: 1px; }
.neon-border.border-y { border-top-width: 1px; border-bottom-width: 1px; }

/*--------------------------------------------------------------
# Editor / post content
--------------------------------------------------------------*/
.msm-prose {
	color: hsl(var(--muted-foreground));
	font-size: 1.0625rem;
	line-height: 1.8;
}

.msm-prose > * + * {
	margin-top: 1.35em;
}

.msm-prose h1,
.msm-prose h2,
.msm-prose h3,
.msm-prose h4,
.msm-prose h5,
.msm-prose h6 {
	color: hsl(var(--foreground));
	font-family: Sora, sans-serif;
	font-weight: 700;
	line-height: 1.25;
	margin-top: 2em;
	margin-bottom: 0.6em;
}

.msm-prose h2 { font-size: 1.875rem; }
.msm-prose h3 { font-size: 1.5rem; }
.msm-prose h4 { font-size: 1.25rem; }
.msm-prose h5 { font-size: 1.125rem; }
.msm-prose h6 { font-size: 1rem; }

.msm-prose a {
	color: var(--msm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.msm-prose a:hover { color: var(--msm-accent-hover); }
.msm-prose strong { color: hsl(var(--foreground)); font-weight: 700; }

.msm-prose ul,
.msm-prose ol { padding-left: 1.35rem; }

.msm-prose ul { list-style: disc; }
.msm-prose ol { list-style: decimal; }
.msm-prose li + li { margin-top: 0.5em; }
.msm-prose li::marker { color: var(--msm-accent); }

.msm-prose blockquote {
	background: hsl(var(--card) / 0.5);
	border-left: 3px solid var(--msm-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: italic;
	padding: 1.25rem 1.5rem;
}

.msm-prose blockquote cite {
	color: var(--msm-accent);
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	margin-top: 0.75rem;
}

.msm-prose code {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 4px;
	color: var(--msm-accent);
	font-size: 0.875em;
	padding: 0.15em 0.4em;
}

.msm-prose pre {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow-x: auto;
	padding: 1.25rem;
}

.msm-prose pre code { background: none; border: 0; color: inherit; padding: 0; }

.msm-prose img,
.msm-prose iframe,
.msm-prose video {
	border-radius: var(--radius);
	height: auto;
	max-width: 100%;
}

.msm-prose hr {
	border: 0;
	border-top: 1px solid var(--msm-accent-30);
	margin: 2.5em 0;
}

.msm-prose table {
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
	width: 100%;
}

.msm-prose th,
.msm-prose td {
	border: 1px solid hsl(var(--border));
	padding: 0.65rem 0.9rem;
	text-align: left;
}

.msm-prose th {
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-family: Sora, sans-serif;
}

/*--------------------------------------------------------------
# Core alignment & media classes
--------------------------------------------------------------*/
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.wp-caption { max-width: 100%; }

.wp-caption-text,
.wp-block-image figcaption,
.msm-prose figcaption {
	color: hsl(var(--muted-foreground));
	font-size: 0.8125rem;
	margin-top: 0.6rem;
	text-align: center;
}

.gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gallery-item { margin: 0; }
.gallery-item img { border-radius: var(--radius); width: 100%; }

/*--------------------------------------------------------------
# Forms (search form, comment form, widgets, section forms)
--------------------------------------------------------------*/
.msm-field,
.msm-prose input[type="text"],
.msm-prose input[type="email"],
.msm-prose input[type="url"],
.msm-prose input[type="search"],
.msm-prose input[type="tel"],
.msm-prose textarea,
.msm-prose select,
.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.msm-widget input[type="search"],
.msm-widget input[type="text"] {
	background: hsl(var(--background) / 0.5);
	border: 1px solid var(--msm-accent-30);
	border-radius: var(--radius);
	color: hsl(var(--foreground));
	padding: 0.75rem 1rem;
	width: 100%;
}

.msm-field:focus,
.search-form input[type="search"]:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--msm-accent);
	outline: none;
}

.msm-field::placeholder { color: hsl(var(--muted-foreground)); }

.search-form,
.wp-block-search__inside-wrapper { display: flex; gap: 0.5rem; }

.search-form .search-submit,
.wp-block-search__button {
	background: var(--msm-accent);
	border: 0;
	border-radius: var(--radius);
	color: #000;
	cursor: pointer;
	font-family: Sora, sans-serif;
	font-weight: 700;
	padding: 0.75rem 1.5rem;
	white-space: nowrap;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 1.5rem 0 0 1.5rem; padding: 0; }

.comment-body {
	background: hsl(var(--card) / 0.5);
	border: 1px solid var(--msm-accent-30);
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
	padding: 1.5rem;
}

.comment-author { align-items: center; display: flex; gap: 0.75rem; }
.comment-author img { border-radius: 9999px; }
.comment-author .fn { font-family: Sora, sans-serif; font-style: normal; font-weight: 700; }
.comment-metadata { color: hsl(var(--muted-foreground)); font-size: 0.8125rem; margin: 0.35rem 0 0.9rem; }
.comment-metadata a { color: inherit; }
.reply a { color: var(--msm-accent); font-size: 0.875rem; font-weight: 600; }

.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 2.5rem;
}

.comment-navigation a { color: var(--msm-accent); font-size: 0.875rem; font-weight: 600; }

/* The reply form is a card, like every other panel in the theme. */
.comment-respond {
	background: hsl(var(--card) / 0.5);
	border: 1px solid var(--msm-accent-30);
	border-radius: var(--radius);
	padding: 1.5rem;
}

@media (min-width: 640px) {
	.comment-respond { padding: 2rem; }
}

/* Nested reply forms sit inside a comment, so they need room above. */
.comment-list .comment-respond { margin: 1.5rem 0; }

.comment-respond .comment-reply-title {
	color: hsl(var(--foreground));
	font-family: Sora, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.comment-respond .comment-reply-title small { font-size: 0.8125rem; font-weight: 400; margin-left: 0.5rem; }
.comment-respond .comment-reply-title small a { color: var(--msm-accent); }

.comment-form p { margin: 0 0 1.25rem; }
.comment-form > :last-child { margin-bottom: 0; }
.comment-form label { display: block; font-size: 0.875rem; margin-bottom: 0.4rem; }
.comment-form .required { color: var(--msm-accent); }
.comment-form textarea { min-height: 9rem; resize: vertical; }

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent { color: hsl(var(--muted-foreground)); font-size: 0.8125rem; }

.comment-notes,
.logged-in-as { margin-bottom: 1.5rem; }

.comment-notes a,
.logged-in-as a { color: var(--msm-accent); }

.comment-form-cookies-consent { align-items: flex-start; display: flex; gap: 0.5rem; }
.comment-form-cookies-consent input { flex: none; margin: 0.2rem 0 0; width: auto; }
.comment-form-cookies-consent label { margin: 0; }

.comment-form .form-submit { margin-top: 1.75rem; }

.comment-form .submit {
	background: var(--msm-accent);
	border: 0;
	border-radius: var(--radius);
	color: #000;
	cursor: pointer;
	font-family: Sora, sans-serif;
	font-weight: 700;
	padding: 0.75rem 1.5rem;
}

/* Name and email share a row once there is width for it. */
@media (min-width: 640px) {
	.comment-form {
		column-gap: 1.25rem;
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.comment-form > * { grid-column: 1 / -1; }

	.comment-form > .comment-form-author,
	.comment-form > .comment-form-email { grid-column: span 1; }
}

.bypostauthor > .comment-body { border-color: var(--msm-accent); }

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.msm-widget + .msm-widget { margin-top: 2rem; }

.msm-widget .widget-title,
.msm-widget h2 {
	font-family: Sora, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.msm-widget ul { list-style: none; margin: 0; padding: 0; }
.msm-widget li + li { margin-top: 0.6rem; }
.msm-widget a { color: hsl(var(--muted-foreground)); }
.msm-widget a:hover { color: var(--msm-accent); }

/*--------------------------------------------------------------
# Admin bar offset for the sticky header
--------------------------------------------------------------*/
.admin-bar .msm-header { top: 32px; }

@media screen and (max-width: 782px) {
	.admin-bar .msm-header { top: 46px; }
}

/*--------------------------------------------------------------
# Utilities the static export never emitted

# assets/css/app.css is a fixed build compiled from the reference HTML, so any
# class the templates use that no page in that export used has no rule. These
# fill the gap with Tailwind's own values; drop one as soon as a rebuilt
# app.css starts shipping it.
--------------------------------------------------------------*/
.-mt-8 { margin-top: -2rem; }
.-mx-8 { margin-left: -2rem; margin-right: -2rem; }
.mt-10 { margin-top: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.top-24 { top: 6rem; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

.rounded-t-xl {
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
}

.hover\:bg-green-400:hover {
	--tw-bg-opacity: 1;
	background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));
}

@media (min-width: 768px) {
	.md\:pb-16 { padding-bottom: 4rem; }
	.md\:text-right { text-align: right; }
	.md\:justify-end { justify-content: flex-end; }
}

