/* Shared look for Gutenberg core blocks and theme content.
   Designed for EArk Digital Marketing Agency: crisp square geometry, var(--eark-primary, #1677ff) primary blue,
   var(--eark-secondary, #00c4b4) accent teal, subtle card elevation, and modern intuitive hierarchy.
*/

.entry-content,
.product-content,
.eark-tab-panel,
.editor-styles-wrapper {
	color: #1d2129;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.75;
}

/* Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.product-content h1,
.product-content h2,
.product-content h3,
.product-content h4,
.wp-block-heading,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
	color: #1d2129;
	letter-spacing: -0.02em;
	line-height: 1.3;
	font-weight: 650;
}

.entry-content > h2,
.product-content > h2,
.editor-styles-wrapper > h2,
.editor-styles-wrapper .wp-block-heading:is(h2) {
	font-size: 28px;
	margin-block: 40px 14px;
}

.entry-content > h3,
.product-content > h3,
.editor-styles-wrapper > h3,
.editor-styles-wrapper .wp-block-heading:is(h3) {
	font-size: 20px;
	margin-block: 28px 10px;
}

.entry-content > h4,
.product-content > h4,
.editor-styles-wrapper > h4,
.editor-styles-wrapper .wp-block-heading:is(h4) {
	font-size: 16px;
	margin-block: 22px 8px;
}

/* Paragraphs & Inline Elements */
.entry-content p,
.product-content p,
.wp-block-paragraph {
	margin: 0 0 16px;
	color: #4e5969;
}

.entry-content a:not(.eark-btn):not(.wp-block-button__link):not(.wp-block-file__button),
.product-content a:not(.eark-btn):not(.wp-block-button__link):not(.wp-block-file__button),
.editor-styles-wrapper a:not(.eark-btn):not(.wp-block-button__link):not(.wp-block-file__button) {
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.entry-content a:not(.eark-btn):not(.wp-block-button__link):not(.wp-block-file__button):hover,
.product-content a:not(.eark-btn):not(.wp-block-button__link):not(.wp-block-file__button):hover,
.editor-styles-wrapper a:not(.eark-btn):not(.wp-block-button__link):not(.wp-block-file__button):hover {
	color: var(--eark-primary-dark, #0e5fe0);
	text-decoration: underline;
}

.entry-content code:not(pre code),
.product-content code:not(pre code) {
	background: #f2f7ff;
	color: var(--eark-primary-dark, #0e5fe0);
	border: 1px solid #d6e4ff;
	padding: 2px 6px;
	font-size: 0.88em;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.entry-content mark,
.product-content mark {
	background: rgba(22, 119, 255, 0.12);
	color: #1d2129;
	padding: 1px 4px;
}

/* Post Excerpt / Lead Summary Block */
.wp-block-post-excerpt {
	margin-block: 0 28px;
	padding: 16px 20px;
	background: #f7f9fc;
	border: 1px solid #eef0f4;
	border-left: 3px solid var(--eark-primary, #1677ff);
}

.wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #4e5969;
}

.wp-block-post-excerpt__more-text {
	margin: 10px 0 0;
}

.wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
}

.wp-block-post-excerpt__more-link::after {
	content: "92";
	transition: transform 0.15s ease;
}

.wp-block-post-excerpt__more-link:hover::after {
	transform: translateX(3px);
}

/* ==========================================================================
   Accordion Block (WordPress Core `core/accordion` + `core/details`)
   ========================================================================== */
.wp-block-accordion,
.editor-styles-wrapper .wp-block-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-block: 24px 32px;
}

.wp-block-accordion-item,
.editor-styles-wrapper .wp-block-accordion-item,
.wp-block-details,
.entry-content details,
.product-content details,
.editor-styles-wrapper details {
	margin: 0;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-left: 3px solid #e7ebf3;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 20px rgba(16, 24, 40, 0.03);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wp-block-details,
.entry-content details,
.product-content details,
.editor-styles-wrapper details {
	margin-block: 12px;
}

.wp-block-accordion-item:hover,
.editor-styles-wrapper .wp-block-accordion-item:hover,
.wp-block-details:hover,
.entry-content details:hover,
.product-content details:hover,
.editor-styles-wrapper details:hover {
	border-color: #cfe0ff;
	border-left-color: var(--eark-primary, #1677ff);
	box-shadow: 0 8px 24px rgba(22, 119, 255, 0.07);
}

.wp-block-accordion-item.is-open,
.wp-block-accordion-item:has(.wp-block-accordion-heading__toggle[aria-expanded="true"]),
.editor-styles-wrapper .wp-block-accordion-item.is-open,
.wp-block-details[open],
.entry-content details[open],
.product-content details[open],
.editor-styles-wrapper details[open] {
	border-color: #cfe0ff;
	border-left-color: var(--eark-primary, #1677ff);
	box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

/* Accordion Heading Reset */
.wp-block-accordion-heading,
.editor-styles-wrapper .wp-block-accordion-heading {
	margin: 0 !important;
	padding: 0 !important;
	font-size: inherit;
	line-height: 1.4;
}

.editor-styles-wrapper .wp-block-accordion-heading__toggle {
	user-select: text;
	cursor: text;
}

/* Accordion Toggle Button & Details Summary */
.wp-block-accordion-heading__toggle,
.editor-styles-wrapper .wp-block-accordion-heading__toggle,
.wp-block-details > summary,
.entry-content details > summary,
.product-content details > summary,
.editor-styles-wrapper details > summary {
	list-style: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 18px 22px;
	background: transparent;
	border: 0;
	text-align: left;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 650;
	line-height: 1.45;
	color: #1d2129;
	cursor: pointer;
	user-select: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.wp-block-details > summary::-webkit-details-marker,
.entry-content details > summary::-webkit-details-marker,
.product-content details > summary::-webkit-details-marker,
.editor-styles-wrapper details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-accordion-heading__toggle-title,
.editor-styles-wrapper .wp-block-accordion-heading__toggle-title {
	display: block;
	flex: 1;
	min-width: 0;
	min-height: 1.45em;
	color: #1d2129;
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle,
.wp-block-accordion-heading__toggle[aria-expanded="true"],
.wp-block-details[open] > summary,
.entry-content details[open] > summary,
.product-content details[open] > summary,
.editor-styles-wrapper details[open] > summary {
	background: #f4f8ff;
	color: var(--eark-primary, #1677ff);
}

/* Accordion Icon Badge (+ -> x) */
.wp-block-accordion-heading__toggle-icon,
.wp-block-details > summary::after,
.entry-content details > summary::after,
.product-content details > summary::after,
.editor-styles-wrapper details > summary::after {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	background: #f2f7ff;
	color: var(--eark-primary, #1677ff);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.18s ease, color 0.18s ease;
}

.wp-block-details > summary::after,
.entry-content details > summary::after,
.product-content details > summary::after,
.editor-styles-wrapper details > summary::after {
	content: "B";
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon,
.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon,
.wp-block-details[open] > summary::after,
.entry-content details[open] > summary::after,
.product-content details[open] > summary::after,
.editor-styles-wrapper details[open] > summary::after {
	transform: rotate(45deg);
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
}

/* Accordion Panel Content */
.wp-block-accordion-panel,
.editor-styles-wrapper .wp-block-accordion-panel,
.wp-block-details > *:not(summary),
.entry-content details > *:not(summary),
.product-content details > *:not(summary),
.editor-styles-wrapper details > *:not(summary) {
	padding: 18px 22px 20px;
	margin: 0;
	border-top: 1px solid #eef0f4;
	background: #ffffff;
	color: #4e5969;
	font-size: 14.5px;
	line-height: 1.75;
	animation: eark-details-fade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-accordion-panel > *:first-child {
	margin-top: 0;
}

.wp-block-accordion-panel > *:last-child {
	margin-bottom: 0;
}

.wp-block-details > *:not(summary) + *:not(summary),
.entry-content details > *:not(summary) + *:not(summary),
.editor-styles-wrapper details > *:not(summary) + *:not(summary) {
	border-top: 0;
	padding-top: 0;
}

@keyframes eark-details-fade {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Unordered & Ordered Lists
   ========================================================================== */
.entry-content ul:not(.eark-pricing-col ul):not(.eark-sidebar-nav-list),
.product-content ul:not(.eark-pricing-col ul):not(.eark-sidebar-nav-list),
.editor-styles-wrapper ul.wp-block-list:not(ol),
.wp-block-list:not(ol) {
	list-style: none !important;
	margin-block: 16px 20px;
	padding-left: 0 !important;
	color: #4e5969;
}

.entry-content ul:not(.eark-pricing-col ul):not(.eark-sidebar-nav-list) > li,
.product-content ul:not(.eark-pricing-col ul):not(.eark-sidebar-nav-list) > li,
.editor-styles-wrapper ul.wp-block-list:not(ol) > li,
.wp-block-list:not(ol) > li {
	position: relative;
	list-style: none !important;
	padding-left: 20px !important;
	margin: 8px 0;
}

.entry-content ul:not(.eark-pricing-col ul):not(.eark-sidebar-nav-list) > li::before,
.product-content ul:not(.eark-pricing-col ul):not(.eark-sidebar-nav-list) > li::before,
.editor-styles-wrapper ul.wp-block-list:not(ol) > li::before,
.wp-block-list:not(ol) > li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.72em;
	width: 6px;
	height: 6px;
	background: var(--eark-primary, #1677ff);
}

/* Level 2 Nested List */
.entry-content ul ul,
.product-content ul ul,
.wp-block-list ul,
.editor-styles-wrapper ul ul {
	margin: 8px 0 8px 3px;
	padding-left: 18px !important;
	border-left: 1px solid #e7ebf3;
}

.entry-content ul ul > li::before,
.product-content ul ul > li::before,
.wp-block-list ul > li::before,
.editor-styles-wrapper ul ul > li::before {
	width: 5px;
	height: 5px;
	background: #ffffff;
	border: 1.5px solid var(--eark-secondary, #00c4b4);
	left: -2px;
}

/* Level 3+ Nested List */
.entry-content ul ul ul,
.product-content ul ul ul,
.wp-block-list ul ul,
.editor-styles-wrapper ul ul ul {
	border-left-style: dashed;
	border-left-color: #d6e4ff;
}

.entry-content ul ul ul > li::before,
.product-content ul ul ul > li::before,
.wp-block-list ul ul > li::before,
.editor-styles-wrapper ul ul ul > li::before {
	width: 5px;
	height: 5px;
	background: #94a3b8;
	border: 0;
}

/* Ordered Lists */
.entry-content ol,
.product-content ol,
ol.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
	margin-block: 16px 20px;
	padding-left: 1.5rem;
	color: #4e5969;
}

.entry-content ol > li,
.product-content ol > li,
ol.wp-block-list > li,
.editor-styles-wrapper ol.wp-block-list > li {
	margin: 8px 0;
	padding-left: 4px;
}

.entry-content ol > li::marker,
.product-content ol > li::marker,
ol.wp-block-list > li::marker,
.editor-styles-wrapper ol.wp-block-list > li::marker {
	color: var(--eark-primary, #1677ff);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.entry-content ol ol,
.product-content ol ol,
.editor-styles-wrapper ol ol {
	margin: 8px 0;
}

/* ==========================================================================
   Tables — EArk Tech-Agency Data Grid (Matches EArk square & navy/blue aesthetic)
   ========================================================================== */
.wp-block-table,
.editor-styles-wrapper .wp-block-table {
	display: block;
	width: 100%;
	margin-block: 28px 36px;
	overflow-x: auto;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
}

.wp-block-table table,
.entry-content table,
.product-content table,
.editor-styles-wrapper .wp-block-table table,
.editor-styles-wrapper table {
	display: table;
	width: 100%;
	min-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	background: #ffffff;
}

.entry-content > table,
.product-content > table {
	margin-block: 28px 36px;
	border: 1px solid #e7ebf3;
	border-top: 2px solid var(--eark-primary, #1677ff);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
}

/* Table Header (`thead` enabled in Gutenberg) */
.wp-block-table thead,
.entry-content thead,
.product-content thead,
.editor-styles-wrapper .wp-block-table thead,
.editor-styles-wrapper thead {
	background: linear-gradient(180deg, #f4f7fb 0%, #fdfdfd 100%);
}

.wp-block-table thead th,
.entry-content thead th,
.product-content thead th,
.editor-styles-wrapper .wp-block-table thead th,
.editor-styles-wrapper thead th {
	background: #f4f7fb;
	color: #1d2129;
	font-weight: 650;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 15px 20px;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-bottom: 2px solid var(--eark-primary, #1677ff);
	border-right: 1px solid #eef0f4;
}

.wp-block-table thead th:last-child,
.entry-content thead th:last-child,
.product-content thead th:last-child,
.editor-styles-wrapper .wp-block-table thead th:last-child,
.editor-styles-wrapper thead th:last-child {
	border-right: none;
}

/* Row Header Cells (`th` inside `tbody`) */
.wp-block-table tbody th,
.entry-content tbody th,
.product-content tbody th,
.editor-styles-wrapper tbody th {
	background: #f4f8ff;
	color: #1d2129;
	font-weight: 650;
	font-size: 14px;
	padding: 15px 20px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid #e7ebf3;
	border-right: 1px solid #e7ebf3;
}

/* Table Body Cells */
.wp-block-table td,
.entry-content td,
.product-content td,
.editor-styles-wrapper .wp-block-table td,
.editor-styles-wrapper td {
	border: 0;
	border-bottom: 1px solid #eef0f4;
	border-right: 1px solid #f2f4f8;
	padding: 15px 20px;
	text-align: left;
	vertical-align: middle;
	color: #4e5969;
	line-height: 1.65;
	transition: background 0.15s ease, color 0.15s ease;
}

.wp-block-table td:last-child,
.entry-content td:last-child,
.product-content td:last-child,
.editor-styles-wrapper .wp-block-table td:last-child,
.editor-styles-wrapper td:last-child {
	border-right: none;
}

/* Emphasize Primary Label Column */
.wp-block-table tbody td:first-child,
.entry-content tbody td:first-child,
.product-content tbody td:first-child,
.editor-styles-wrapper .wp-block-table tbody td:first-child {
	font-weight: 600;
	color: #1d2129;
}

.wp-block-table tbody tr:last-child td,
.wp-block-table tbody tr:last-child th,
.entry-content tbody tr:last-child td,
.product-content tbody tr:last-child td,
.editor-styles-wrapper .wp-block-table tbody tr:last-child td {
	border-bottom: none;
}

/* Subtle Alternating Rows & Crisp Blue Row Hover */
.wp-block-table tbody tr:nth-child(even) td,
.entry-content tbody tr:nth-child(even) td,
.product-content tbody tr:nth-child(even) td,
.editor-styles-wrapper .wp-block-table tbody tr:nth-child(even) td {
	background: #fafbfe;
}

.wp-block-table tbody tr:hover td,
.entry-content tbody tr:hover td,
.product-content tbody tr:hover td,
.editor-styles-wrapper .wp-block-table tbody tr:hover td {
	background: #f2f7ff;
	color: #1d2129;
}

/* Stripes Style Variation */
.wp-block-table.is-style-stripes {
	border: 1px solid #e7ebf3;
	border-top: 2px solid var(--eark-primary, #1677ff);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
	background: #f4f8ff;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
	background: #ffffff;
}

/* Table Footer (`tfoot` enabled in Gutenberg) */
.wp-block-table tfoot,
.entry-content tfoot,
.editor-styles-wrapper .wp-block-table tfoot {
	border-top: 2px solid #cfe0ff !important;
}

.wp-block-table tfoot td,
.wp-block-table tfoot th,
.entry-content tfoot td,
.entry-content tfoot th,
.editor-styles-wrapper .wp-block-table tfoot td,
.editor-styles-wrapper tfoot td {
	background: #f4f8ff;
	font-weight: 650;
	color: #1d2129;
	border: 0;
	border-top: 0;
	padding: 14px 20px;
}

.wp-block-table figcaption,
.editor-styles-wrapper .wp-block-table figcaption {
	padding: 10px 20px;
	margin: 0;
	background: #f7f9fc;
	border-top: 1px solid #eef0f4;
	font-size: 12.5px;
	color: #64748b;
	text-align: left;
}

/* ==========================================================================
   Core / Gutenberg Tabs Block (.wp-block-tabs)
   ========================================================================== */
.wp-block-tabs,
.editor-styles-wrapper .wp-block-tabs {
	margin-block: 28px;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
	overflow: hidden;
}

.wp-block-tabs-menu,
.wp-block-tabs > [role="tablist"],
.editor-styles-wrapper .wp-block-tabs-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px 12px 0;
	background: #f7f9fc;
	border-bottom: 1px solid #e7ebf3;
}

.wp-block-tabs-menu-item,
.wp-block-tabs [role="tab"],
.editor-styles-wrapper .wp-block-tabs-menu-item {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 12px 18px;
	margin-bottom: -1px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #4e5969;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wp-block-tabs-menu-item:hover,
.wp-block-tabs [role="tab"]:hover {
	color: var(--eark-primary, #1677ff);
	background: rgba(22, 119, 255, 0.04);
}

.wp-block-tabs-menu-item.is-active,
.wp-block-tabs-menu-item[aria-selected="true"],
.wp-block-tabs [role="tab"][aria-selected="true"] {
	color: var(--eark-primary, #1677ff);
	font-weight: 650;
	background: #ffffff;
	border-bottom-color: var(--eark-primary, #1677ff);
}

.wp-block-tab-panel,
.wp-block-tabs [role="tabpanel"],
.editor-styles-wrapper .wp-block-tab-panel {
	padding: 24px;
	color: #4e5969;
	font-size: 14.5px;
	line-height: 1.75;
}

/* ==========================================================================
   Blockquotes & Pullquotes — Modern Editorial Tech Card Redesign
   ========================================================================== */
.wp-block-quote,
.entry-content blockquote,
.product-content blockquote,
.editor-styles-wrapper .wp-block-quote {
	position: relative;
	margin-block: 32px;
	margin-inline: 0;
	padding: 28px 32px;
	border: 1px solid #e7ebf3;
	border-top: 2px solid var(--eark-primary, #1677ff);
	border-left: 1px solid #e7ebf3;
	border-radius: 0;
	background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.05);
	color: #1d2129;
	font-style: normal;
}

/* Modern Geometric Quote Badge */
.wp-block-quote::before,
.entry-content blockquote::before,
.product-content blockquote::before,
.editor-styles-wrapper .wp-block-quote::before {
	content: "";
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 16px;
	background-color: #f2f7ff;
	border: 1px solid #d6e4ff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231677ff'%3E%3Cpath d='M9.983 3v7.391c0 5.704-3.731 9.57-8.983 10.609l-.995-2.151c2.432-.917 3.995-3.638 3.995-5.849h-4v-10h9.983zm14.017 0v7.391c0 5.704-3.748 9.571-9 10.609l-.996-2.151c2.433-.917 3.996-3.638 3.996-5.849h-3.983v-10h9.983z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}

.wp-block-quote p,
.entry-content blockquote p,
.product-content blockquote p,
.editor-styles-wrapper .wp-block-quote p {
	color: #1d2129;
	font-style: normal;
	font-size: 18px;
	font-weight: 550;
	letter-spacing: -0.015em;
	line-height: 1.65;
	margin: 0 0 12px;
}

.wp-block-quote p:last-of-type,
.entry-content blockquote p:last-of-type,
.product-content blockquote p:last-of-type,
.editor-styles-wrapper .wp-block-quote p:last-of-type {
	margin-bottom: 0;
}

.wp-block-quote cite,
.wp-block-quote__citation,
.entry-content blockquote cite,
.product-content blockquote cite,
.editor-styles-wrapper .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote__citation {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e7ebf3;
	font-size: 13.5px;
	font-style: normal;
	font-weight: 600;
	color: #4e5969;
}

.wp-block-quote cite::before,
.wp-block-quote__citation::before,
.entry-content blockquote cite::before,
.product-content blockquote cite::before,
.editor-styles-wrapper .wp-block-quote cite::before,
.editor-styles-wrapper .wp-block-quote__citation::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 2px;
	background: var(--eark-secondary, #00c4b4);
	flex-shrink: 0;
}

/* Plain Quote Variation (`is-style-plain`) */
.wp-block-quote.is-style-plain,
.editor-styles-wrapper .wp-block-quote.is-style-plain {
	padding: 8px 0 8px 24px;
	border: 0;
	border-left: 2px solid var(--eark-primary, #1677ff);
	background: transparent;
	box-shadow: none;
}

.wp-block-quote.is-style-plain::before,
.editor-styles-wrapper .wp-block-quote.is-style-plain::before {
	display: none;
}

.wp-block-quote.is-style-plain cite,
.wp-block-quote.is-style-plain .wp-block-quote__citation,
.editor-styles-wrapper .wp-block-quote.is-style-plain cite,
.editor-styles-wrapper .wp-block-quote.is-style-plain .wp-block-quote__citation {
	border-top: 0;
	padding-top: 0;
	margin-top: 12px;
}

/* Pullquote Block — Immersive Editorial Typography */
.wp-block-pullquote,
.editor-styles-wrapper .wp-block-pullquote,
.editor-styles-wrapper .wp-block-pullquote [role="textbox"] {
	position: relative;
	margin-block: 48px;
	padding: 40px 0;
	border: 0;
	border-top: 2px solid var(--eark-primary, #1677ff);
	border-bottom: 2px solid var(--eark-primary, #1677ff);
	background: transparent;
	box-shadow: none;
	text-align: center;
	color: #1d2129;
}

.editor-styles-wrapper .wp-block-pullquote [role="textbox"] {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wp-block-pullquote blockquote,
.editor-styles-wrapper .wp-block-pullquote blockquote {
	position: relative;
	margin: 0 auto;
	padding: 0 40px;
	border: 0;
	background: transparent;
	box-shadow: none;
	max-width: 840px;
	z-index: 1;
}

/* Elegant huge quote marks behind text */
.wp-block-pullquote blockquote::before,
.editor-styles-wrapper .wp-block-pullquote blockquote::before {
	content: "\201C" !important;
	position: absolute;
	top: -30px;
	left: 0;
	font-family: Georgia, serif;
	font-size: 120px;
	line-height: 1;
	font-weight: 700;
	color: rgba(22, 119, 255, 0.08);
	z-index: -1;
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	background: transparent;
	border: 0;
}

.wp-block-pullquote blockquote p,
.editor-styles-wrapper .wp-block-pullquote blockquote p {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.4;
	color: #1d2129;
}

.wp-block-pullquote cite,
.editor-styles-wrapper .wp-block-pullquote cite {
	display: block;
	margin-top: 24px;
	color: #4e5969;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 13px;
}

.wp-block-pullquote cite::before,
.editor-styles-wrapper .wp-block-pullquote cite::before {
	content: "—";
	display: inline;
	background: transparent;
	width: auto;
	height: auto;
	margin-right: 8px;
	color: var(--eark-primary, #1677ff);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-block-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-block: 20px;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 0;
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
	padding: 0 22px;
	height: 42px;
	line-height: 42px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1px solid var(--eark-primary, #1677ff);
	box-shadow: 0 2px 6px rgba(22, 119, 255, 0.2);
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.wp-block-button__link:hover {
	background: var(--eark-primary-dark, #0e5fe0);
	border-color: var(--eark-primary-dark, #0e5fe0);
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(22, 119, 255, 0.28);
	transform: translateY(-1px);
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: #ffffff;
	color: var(--eark-primary, #1677ff);
	border: 1px solid #d6e4ff;
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #f2f7ff;
	border-color: var(--eark-primary, #1677ff);
	color: var(--eark-primary, #1677ff);
}

/* ==========================================================================
   Images, Galleries, Media & Text, Cover
   ========================================================================== */
.wp-block-image,
.entry-content img:not(.eark-sol-media img):not(.eark-adv-media img),
.product-content img:not(.eark-sol-media img):not(.eark-adv-media img) {
	max-width: 100%;
	height: auto;
}

.wp-block-image {
	margin-block: 20px 24px;
}

.wp-block-image img,
.entry-content figure img {
	display: block;
	border: 1px solid #eef0f4;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-block-embed figcaption {
	font-size: 12.5px;
	color: #86909c;
	margin-top: 8px;
	text-align: left;
}

.wp-block-gallery {
	gap: 16px;
	margin-block: 20px 24px;
}

/* Media & Text Block */
.wp-block-media-text,
.editor-styles-wrapper .wp-block-media-text {
	gap: 0;
	margin-block: 36px;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 36px rgba(16, 24, 40, 0.05);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.wp-block-media-text:hover {
	border-color: #cfe0ff;
	box-shadow: 0 20px 48px rgba(16, 24, 40, 0.08);
}

.wp-block-media-text .wp-block-media-text__media {
	position: relative;
	margin: 0;
	height: 100%;
}

.wp-block-media-text .wp-block-media-text__media img,
.wp-block-media-text .wp-block-media-text__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}

.wp-block-media-text .wp-block-media-text__content {
	padding: 40px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Cover Block */
.wp-block-cover,
.editor-styles-wrapper .wp-block-cover {
	margin-block: 32px;
	padding: 56px 44px;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 16px 44px rgba(16, 24, 40, 0.08);
}

.wp-block-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.wp-block-cover-image-text,
.wp-block-cover-text,
.wp-block-cover h2 {
	font-weight: 750;
	letter-spacing: -0.02em;
}

/* Columns & Group Containers */
.wp-block-columns {
	gap: 24px;
	margin-block: 24px;
}

.wp-block-column {
	min-width: 0;
}

.wp-block-column.has-background,
.wp-block-group.has-background {
	padding: 24px;
	border: 1px solid #e7ebf3;
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.wp-block-group {
	margin-block: 20px;
}

/* File Download Block */
.wp-block-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-block: 20px;
	padding: 14px 18px;
	background: #f7f9fc;
	border: 1px solid #e7ebf3;
}

.wp-block-file a:first-child {
	font-weight: 600;
	color: #1d2129;
	font-size: 14.5px;
}

.wp-block-file .wp-block-file__button {
	display: inline-flex;
	align-items: center;
	height: 36px;
	line-height: 36px;
	padding: 0 16px;
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.wp-block-file .wp-block-file__button:hover {
	background: var(--eark-primary-dark, #0e5fe0);
	color: #ffffff;
	text-decoration: none;
}

/* Search Block */
.wp-block-search {
	margin-block: 20px;
}

.wp-block-search .wp-block-search__inside-wrapper {
	border: 1px solid #d6e4ff;
	background: #ffffff;
	padding: 0;
}

.wp-block-search .wp-block-search__input {
	border: 0;
	padding: 0 14px;
	height: 42px;
	font-size: 14px;
	color: #1d2129;
	outline: none;
}

.wp-block-search .wp-block-search__button {
	margin: 0;
	height: 42px;
	padding: 0 20px;
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
	border: 0;
	border-radius: 0;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wp-block-search .wp-block-search__button:hover {
	background: var(--eark-primary-dark, #0e5fe0);
}

/* Code, Preformatted & Separator */
.wp-block-code,
.entry-content pre,
.wp-block-preformatted {
	background: #0f172a;
	color: #e2e8f0;
	border: 1px solid #1e293b;
	padding: 16px 20px;
	overflow-x: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.65;
	margin-block: 20px 24px;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid #e7ebf3;
	margin-block: 32px;
}

.wp-block-separator.is-style-dots {
	border: 0;
	color: var(--eark-primary, #1677ff);
}

@media (max-width: 768px) {
	.wp-block-media-text .wp-block-media-text__content {
		padding: 24px 20px;
	}
	.wp-block-cover {
		padding: 36px 24px;
	}
	.wp-block-quote,
	.wp-block-pullquote {
		padding: 24px 20px;
	}
	.wp-block-column.has-background,
	.wp-block-group.has-background {
		padding: 18px;
	}
}


/* 
 * Force Gutenberg Editor to maintain its layout constraints for the Quote block
 * even though we reset margin-inline: 0 on the block itself for frontend alignment.
 */
.editor-styles-wrapper .is-layout-flow > .wp-block-quote,
.editor-styles-wrapper .is-layout-constrained > .wp-block-quote {
	margin-inline: auto;
}
