/*
 * Blog — article typography, table of contents and the /blog/ listing.
 * Values measured on old prod (www.imagunet.com, Elementor 465 / page 384) at 1440 and 390px,
 * 2026-09-22. Block styles live in the blocks themselves; this file only styles what editors
 * type into a post (core paragraphs, headings, lists, images, embeds) and the two behaviours.
 */

/* ------------------------------------------------------------------ single post */
body.single-post {
	background-color: #fafafa;
}
.single-post .site-main .inside-article {
	padding: 0;
	background: transparent;
}
.single-post .entry-content {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 70px;
	box-sizing: content-box;
	font-family: 'Inter', sans-serif;
	color: #212424;
}
@media (max-width: 1199px) {
	.single-post .entry-content { padding: 0 20px; }
}
@media (max-width: 767px) {
	.single-post .entry-content { padding: 0 12px; }
}

.single-post .entry-content > p,
.single-post .entry-content li {
	font-size: 18px;
	line-height: 1.5;
}
.single-post .entry-content > p {
	margin: 20px 0;
}
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 400;
	line-height: 1.4;
	color: #033350;
	margin: 12px 0 16px;
}
.single-post .entry-content h2 { font-size: 30px; }
.single-post .entry-content h3 { font-size: 24px; }
.single-post .entry-content h4 { font-size: 20px; }
.single-post .entry-content h5,
.single-post .entry-content h6 { font-size: 18px; }
@media (max-width: 767px) {
	.single-post .entry-content > p,
	.single-post .entry-content li { font-size: 16px; }
	.single-post .entry-content h2 { font-size: 22px; }
	.single-post .entry-content h3 { font-size: 20px; }
}
.single-post .entry-content a {
	color: #000;
	text-decoration: none;
}
.single-post .entry-content a:hover {
	text-decoration: underline;
}
.single-post .entry-content img {
	border-radius: 12px;
	height: auto;
}
.single-post .entry-content figure {
	margin: 20px 0;
}
.single-post .entry-content .wp-block-embed iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
}

/* ------------------------------------------------------------------ table of contents */
.imagunet-toc {
	display: table;
	max-width: 752px;
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 10px 20px 10px 10px;
	background: #f9f9f9;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.imagunet-toc summary {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	list-style: none;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.45;
	color: #212424;
}
.imagunet-toc summary::-webkit-details-marker { display: none; }
.imagunet-toc-toggle {
	width: 35px;
	height: 30px;
	margin-left: auto;
	border: 1px solid #ddd;
	border-radius: 3px;
	background:
		linear-gradient(#999, #999) 12px 9px / 14px 2px no-repeat,
		linear-gradient(#999, #999) 12px 14px / 14px 2px no-repeat,
		linear-gradient(#999, #999) 12px 19px / 14px 2px no-repeat;
}
.imagunet-toc ol {
	counter-reset: toc;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}
.imagunet-toc ol ol {
	margin: 0 0 0 18px;
}
.imagunet-toc li {
	counter-increment: toc;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	margin: 0;
}
.imagunet-toc li::before {
	content: counters(toc, ".") ". ";
}
.imagunet-toc a {
	color: #212424;
	text-decoration: none;
}
.imagunet-toc a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ /blog/ listing */
.imagunet-blog-buscar .wp-block-search__inside-wrapper {
	border: 2px solid #000;
	border-radius: 100px;
	padding: 0;
	overflow: hidden;
}
.imagunet-blog-buscar .wp-block-search__input {
	height: 54px;
	border: 0;
	border-radius: 100px;
	padding: 16px 30px;
	background: rgba(0, 0, 0, .12);
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 1.44px;
	text-transform: uppercase;
	color: #00050c;
}
.imagunet-blog-buscar .wp-block-search__input::placeholder {
	color: #00050c;
	opacity: 1;
}
[data-blog-rejilla] > [hidden],
[data-blog-mas-fila][hidden] {
	display: none !important;
}
@media (max-width: 767px) {
	.imagunet-toc summary,
	.imagunet-toc li { font-size: 16px; font-weight: 400; }
}
@media (max-width: 767px) {
	.imagunet-blog-buscar .wp-block-search__input { font-size: 15px; padding: 14px 20px; }
}

/* Newsletter card on posts, phones: old prod's post template pads it 120px top/bottom
   (the /blog/ page keeps 12px), post-465.css. */
@media (max-width: 767px) {
	.single-post .imagunet-boletin-tarjeta { padding-top: 120px !important; padding-bottom: 120px !important; }
}
