/*!
Theme Name: Desarrollo Geek Rebuild
Theme URI: https://desarrollo-geek.net/
Author: Desarrollo Geek Recovery
Description: Rebuild theme for Desarrollo Geek based on the latest Wayback snapshot and available Ascendoor News assets.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: desarrollo-geek-rebuild
Tags: blog, news, right-sidebar, custom-menu, featured-images
*/

:root {
	--dg-accent: #e4212d;
	--dg-accent-hover: #a91620;
	--dg-accent-rgb: 228, 33, 45;
	--dg-header-bg: #123c3b;
	--dg-header-text: #ffffff;
	--dg-site-bg: #ffffff;
	--dg-nav-bg: #ffffff;
	--dg-nav-text: #222222;
	--dg-nav-active: #e4212d;
	--dg-tag-bg: #fce8ea;
	--dg-tag-text: #e4212d;
	--dg-tags-label: #222222;
	--dg-ticker-bg: #e4212d;
	--dg-ticker-label-bg: #c91c27;
	--dg-ticker-text: #ffffff;
	--dg-date-badge-bg: #e4212d;
	--dg-date-badge-text: #ffffff;
	--dg-category-bg: #e4212d;
	--dg-category-text: #ffffff;
	--dg-category-soft-bg: #fce8ea;
	--dg-category-soft-text: #e4212d;
	--dg-post-title: #222222;
	--dg-body-text: #222222;
	--dg-muted: #6b7280;
	--dg-border: #e5e7eb;
	--dg-card-bg: #ffffff;
	--dg-footer-bg: #111827;
	--dg-footer-text: #d1d5db;
	--dg-dark: #111827;
	--dg-bg: var(--dg-site-bg);
	--dg-card: var(--dg-card-bg);
}

body {
	background: var(--dg-site-bg);
	color: var(--dg-body-text);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	color: var(--dg-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--dg-accent-hover);
	text-decoration: underline;
}

.ascendoor-wrapper,
.dg-wrapper {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1320px;
	padding: 0 20px;
}

.dg-site-header {
	background: var(--dg-nav-bg);
	box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
	position: relative;
	z-index: 10;
}

.top-middle-header-wrapper {
	background-color: var(--dg-header-bg);
	background-position: center;
	background-size: cover;
	color: var(--dg-header-text);
}

.top-header-wrapper,
.middle-header-wrapper,
.bottom-header-wrapper {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.top-header-wrapper {
	font-size: 13px;
	min-height: 42px;
}

.site-branding {
	padding: 38px 0;
}

.site-title {
	font-family: "Roboto", Georgia, serif;
	font-size: clamp(34px, 5vw, 62px);
	line-height: 1;
	margin: 0;
}

.site-title a {
	color: var(--dg-header-text);
	text-decoration: none;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.site-description {
	color: var(--dg-header-text);
	font-size: 15px;
	margin: 10px 0 0;
	max-width: 780px;
	opacity: 0.92;
}

body.light-theme .date-wrap {
	background: var(--dg-date-badge-bg);
	border-radius: 5px;
	color: var(--dg-date-badge-text);
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 8px 12px;
}

.mag-adver-part img {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	display: block;
	max-height: 120px;
	max-width: min(420px, 35vw);
	object-fit: cover;
}

.bottom-header-part {
	background: var(--dg-nav-bg);
	border-bottom: 1px solid var(--dg-border);
	color: var(--dg-nav-text);
}

.main-navigation {
	position: relative;
	width: 100%;
}

.menu-toggle {
	background: transparent;
	border: 0;
	cursor: pointer;
	display: none;
	padding: 14px 0;
}

.menu-toggle span {
	background: var(--dg-nav-text);
	display: block;
	height: 2px;
	margin: 5px 0;
	width: 24px;
}

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

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	color: var(--dg-nav-text);
	display: block;
	font-size: 14px;
	font-weight: 600;
	padding: 18px 14px;
	text-transform: uppercase;
}

body.light-theme .main-navigation li.current-menu-item > a,
body.light-theme .main-navigation a:focus,
body.light-theme .main-navigation a:hover {
	color: var(--dg-nav-active);
	text-decoration: none;
}

.main-navigation .sub-menu {
	background: var(--dg-card-bg);
	box-shadow: 0 12px 18px rgba(15, 23, 42, 0.18);
	display: none;
	left: 0;
	min-width: 230px;
	position: absolute;
	top: 100%;
	z-index: 20;
}

.main-navigation .sub-menu .sub-menu {
	left: 100%;
	top: 0;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	display: block;
}

.main-navigation .sub-menu a {
	font-size: 13px;
	padding: 11px 14px;
	text-transform: none;
}

.bottom-header-right-part {
	margin-left: auto;
}

.search-form {
	display: flex;
	gap: 6px;
}

.search-field {
	border: 1px solid var(--dg-border);
	border-radius: 3px;
	min-height: 38px;
	padding: 0 10px;
}

.search-submit {
	background: var(--dg-accent);
	border: 0;
	border-radius: 3px;
	color: var(--dg-date-badge-text);
	cursor: pointer;
	padding: 0 14px;
}

body.light-theme .header-search .search-form label,
body.light-theme .header-search .search-submit {
	display: none;
}

body.light-theme .header-search::before {
	background: #f3f4f6;
	border-radius: 50%;
	color: var(--dg-nav-text);
	content: "\1F50D";
	display: inline-grid;
	font-size: 12px;
	height: 28px;
	place-items: center;
	width: 28px;
}

.tag-section,
.flash-news-ticker {
	background: var(--dg-site-bg);
	border-bottom: 1px solid var(--dg-border);
}

.tag-section-wrapper,
.flash-news-ticker-wrapper {
	align-items: center;
	display: flex;
	gap: 16px;
	overflow: hidden;
	padding: 12px 0;
}

.tag-section ul,
.flash-news-part {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.tag-section li {
	list-style: none;
}

body.light-theme .tag-section strong {
	color: var(--dg-tags-label);
	font-size: 13px;
}

.tag-section a {
	background: var(--dg-tag-bg);
	border-radius: 999px;
	color: var(--dg-tag-text);
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 12px;
}

body.light-theme .flash-news-ticker {
	margin-bottom: 16px;
}

body.light-theme .flash-news-ticker-wrapper {
	background: var(--dg-ticker-bg);
	border-radius: 999px;
	overflow: hidden;
}

body.light-theme .flash-news-ticker .title-wrap {
	background: var(--dg-ticker-label-bg);
	border-radius: 999px;
	min-height: 38px;
	padding: 8px 14px;
}

body.light-theme .flash-title,
body.light-theme .flash-title a {
	color: var(--dg-ticker-text);
	font-size: 13px;
	font-weight: 800;
}

body.light-theme .flash-number {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: var(--dg-ticker-text);
	display: inline-grid;
	font-size: 12px;
	font-weight: 800;
	height: 26px;
	margin-right: 7px;
	place-items: center;
	width: 26px;
}

body.light-theme .mag-post-category a,
body.light-theme .mag-post-category.with-background a {
	background: var(--dg-category-bg);
	border-radius: 999px;
	color: var(--dg-category-text);
	font-size: 11px;
	font-weight: 800;
	padding: 6px 12px;
	text-transform: uppercase;
}

body.light-theme .mag-post-category:not(.with-background) a {
	background: var(--dg-category-soft-bg);
	color: var(--dg-category-soft-text);
}

body.light-theme .mag-post-title,
body.light-theme .entry-title,
body.light-theme .mag-post-title a,
body.light-theme .entry-title a {
	color: var(--dg-post-title);
	text-decoration: none;
}

.site-main-wrap {
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1fr) 330px;
	padding: 34px 20px;
}

body.light-theme .site-content,
body.light-theme .banner-section {
	background: var(--dg-site-bg);
}

body.light-theme .content-area,
body.light-theme .widget-area,
body.light-theme .dg-card {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.content-area,
.widget-area,
.dg-card {
	background: var(--dg-card-bg);
	border: 1px solid var(--dg-border);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.content-area {
	min-width: 0;
	padding: 24px;
}

.post-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dg-post-card {
	border: 1px solid var(--dg-border);
	border-radius: 8px;
	overflow: hidden;
}

.dg-post-card .post-thumbnail {
	aspect-ratio: 16 / 9;
	background: #e5e7eb;
	display: block;
	overflow: hidden;
}

.dg-post-card img,
.single-featured img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.dg-post-card-content {
	padding: 18px;
}

.entry-title {
	color: var(--dg-post-title);
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.15;
	margin: 0 0 14px;
}

.dg-post-card .entry-title {
	font-size: 22px;
}

.entry-title a {
	color: inherit;
}

.entry-meta,
.entry-footer,
.archive-description {
	color: var(--dg-muted);
	font-size: 14px;
}

.entry-content {
	font-size: 17px;
	line-height: 1.75;
}

.entry-content img {
	height: auto;
	max-width: 100%;
}

.entry-content pre,
.entry-content code {
	background: #f3f4f6;
	border-radius: 4px;
}

.entry-content pre {
	overflow-x: auto;
	padding: 16px;
}

.widget-area {
	padding: 20px;
}

.widget {
	margin: 0 0 24px;
}

.widget-title {
	border-bottom: 2px solid var(--dg-border);
	color: var(--dg-post-title);
	font-size: 18px;
	margin: 0 0 14px;
	padding-bottom: 10px;
}

.site-footer {
	background: var(--dg-footer-bg);
	color: var(--dg-footer-text);
	padding: 30px 0;
	text-align: center;
}

.site-footer .site-footer-bottom {
	display: none;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
}

@media (max-width: 960px) {
	.middle-header-wrapper,
	.bottom-header-wrapper,
	.site-main-wrap {
		display: block;
	}

	.mag-adver-part {
		margin-bottom: 24px;
	}

	.mag-adver-part img {
		max-width: 100%;
	}

	.site-main-wrap {
		padding: 24px 16px;
	}

	.widget-area {
		margin-top: 24px;
	}
}

@media (max-width: 760px) {
	.menu-toggle {
		display: inline-block;
	}

	.main-navigation .menu {
		display: none;
	}

	.main-navigation.toggled .menu {
		display: block;
	}

	.main-navigation .sub-menu {
		box-shadow: none;
		display: block;
		left: auto;
		margin-left: 16px;
		position: static;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	.tag-section-wrapper,
	.flash-news-ticker-wrapper {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* Snapshot-matched Ascendoor News overrides.
 *
 * The recovered home page uses the original Ascendoor magazine classes
 * (`banner-section`, `mag-post-single`, `magazine-archive-layout`) on a dark
 * canvas. These rules intentionally sit after the early scaffold styles so the
 * archived CSS/markup wins over the generic rebuild grid.
 */
body.dark-theme {
	--clr-background: var(--dg-site-bg);
	--clr-sub-background: #151618;
	--clr-foreground: var(--dg-body-text);
	--light-bg-color: #151618;
	--border-color: rgba(255, 255, 255, 0.08);
	--alpha-bg: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.5) 66%, rgba(0, 0, 0, 0.05) 100%);
	background: var(--dg-site-bg);
	color: var(--dg-body-text);
}

body.dark-theme a {
	color: inherit;
}

body.dark-theme .ascendoor-wrapper,
body.dark-theme .dg-wrapper {
	max-width: 1160px;
}

body.dark-theme .dg-site-header {
	background: #111;
	box-shadow: none;
}

body.dark-theme .top-middle-header-wrapper {
	background-color: var(--dg-header-bg);
	background-position: center;
	background-size: cover;
	position: relative;
}

body.dark-theme .top-middle-header-wrapper::before {
	background: rgba(0, 0, 0, 0.48);
	content: "";
	inset: 0;
	position: absolute;
}

body.dark-theme .top-middle-header-wrapper > * {
	position: relative;
	z-index: 1;
}

body.dark-theme .top-header-wrapper {
	min-height: 34px;
}

body.dark-theme .date-wrap {
	background: var(--dg-date-badge-bg);
	border-radius: 5px;
	color: var(--dg-date-badge-text);
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 8px 12px;
}

body.dark-theme .middle-header-wrapper {
	min-height: 130px;
}

body.dark-theme .site-branding {
	padding: 22px 0 28px;
}

body.dark-theme .site-title {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	margin: 0;
}

body.dark-theme .site-description {
	color: var(--dg-header-text);
	font-size: 13px;
	line-height: 1.35;
	max-width: 520px;
}

body.dark-theme .mag-adver-part img {
	background: #19c2aa;
	border-radius: 0;
	max-height: 95px;
	max-width: 430px;
	width: 430px;
}

body.dark-theme .bottom-header-part {
	background: var(--dg-nav-bg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .main-navigation a {
	color: var(--dg-nav-text);
	font-size: 12px;
	font-weight: 800;
	padding: 17px 12px;
}

body.dark-theme .main-navigation li.current-menu-item > a,
body.dark-theme .main-navigation a:focus,
body.dark-theme .main-navigation a:hover {
	color: var(--dg-nav-active);
	text-decoration: none;
}

body.dark-theme .header-search .search-form label,
body.dark-theme .header-search .search-submit {
	display: none;
}

body.dark-theme .header-search::before {
	background: #333;
	border-radius: 50%;
	color: #aaa;
	content: "\1F50D";
	display: inline-grid;
	font-size: 12px;
	height: 28px;
	place-items: center;
	width: 28px;
}

body.dark-theme .tag-section,
body.dark-theme .flash-news-ticker,
body.dark-theme .banner-section,
body.dark-theme .site-content {
	background: var(--dg-site-bg);
	border: 0;
}

body.dark-theme .tag-section {
	margin-bottom: 8px;
	padding-top: 10px;
}

body.dark-theme .tag-section-wrapper,
body.dark-theme .flash-news-ticker-wrapper {
	padding: 0;
}

body.dark-theme .tag-section strong {
	color: #fff;
	font-size: 13px;
}

body.dark-theme .tag-section a {
	background: var(--dg-tag-bg);
	border-radius: 999px;
	color: var(--dg-tag-text);
	font-size: 12px;
	font-weight: 800;
	padding: 7px 12px;
}

body.dark-theme .flash-news-ticker {
	margin-bottom: 16px;
}

body.dark-theme .flash-news-ticker-wrapper {
	background: var(--dg-ticker-bg);
	border-radius: 999px;
	overflow: hidden;
}

body.dark-theme .flash-news-ticker .title-wrap {
	background: var(--dg-ticker-label-bg);
	border-radius: 999px;
	min-height: 38px;
	padding: 8px 14px;
}

body.dark-theme .flash-news-part {
	flex-wrap: nowrap;
	gap: 0;
	overflow: hidden;
}

body.dark-theme .flash-title,
body.dark-theme .flash-title a {
	color: var(--dg-ticker-text);
	font-size: 13px;
	font-weight: 800;
}

body.dark-theme .flash-img {
	display: none;
}

body.dark-theme .flash-number {
	background: #3a3a3a;
	border-radius: 50%;
	color: #fff;
	display: inline-grid;
	font-size: 12px;
	font-weight: 800;
	height: 26px;
	margin-right: 7px;
	place-items: center;
	width: 26px;
}

body.dark-theme .banner-section {
	margin-bottom: 28px;
}

body.dark-theme .banner-section.banner-section-style-2 .banner-section-wrapper {
	display: flex;
	gap: 14px;
	margin-inline: 0;
}

body.dark-theme .banner-section.banner-section-style-2 .slider-part {
	padding: 0;
	width: 66%;
}

body.dark-theme .banner-section.banner-section-style-2 .editors-pick-part {
	padding: 0;
	width: 34%;
}

body.dark-theme .banner-section .banner-slider {
	height: 360px;
}

body.dark-theme .banner-section .banner-grid-single {
	height: 360px;
	min-height: 360px;
}

body.dark-theme .editors-pick-wrapper {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.dark-theme .editors-pick-wrapper .mag-post-img > a img {
	aspect-ratio: 1 / 0.62;
}

body.dark-theme .section-header {
	margin-bottom: 8px;
}

body.dark-theme .section-title {
	color: #fff;
	font-size: 15px;
	margin: 0;
}

body.dark-theme .mag-post-single .mag-post-img,
body.dark-theme .mag-post-single .mag-post-img > a img,
body.dark-theme .mag-post-single.tile-design {
	border-radius: 10px;
}

body.dark-theme .mag-post-single.tile-design {
	background: #151618;
	overflow: hidden;
}

body.dark-theme .mag-post-single.tile-design .mag-post-detail {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0) 100%);
}

body.dark-theme .mag-post-category a,
body.dark-theme .mag-post-category.with-background a {
	background: var(--dg-category-bg);
	border-radius: 999px;
	color: var(--dg-category-text);
	font-size: 11px;
	font-weight: 800;
	padding: 6px 12px;
	text-transform: uppercase;
}

body.dark-theme .mag-post-category:not(.with-background) a {
	background: var(--dg-category-soft-bg);
	color: var(--dg-category-soft-text);
}

body.dark-theme .mag-post-category a::after,
body.dark-theme .mag-post-category a::before {
	display: none !important;
}

body.dark-theme .mag-post-title,
body.dark-theme .entry-title,
body.dark-theme .mag-post-title a,
body.dark-theme .entry-title a {
	color: var(--dg-post-title);
	text-decoration: none;
}

body.dark-theme .banner-grid-single .mag-post-title {
	font-size: 28px;
	line-height: 1.15;
}

body.dark-theme .editors-pick-wrapper .mag-post-title {
	font-size: 14px;
	line-height: 1.25;
	margin: 6px 0 0;
}

body.dark-theme .editors-pick-wrapper .mag-post-meta,
body.dark-theme .editors-pick-wrapper .mag-post-category {
	display: none;
}

body.dark-theme .site-content {
	padding: 0 0 40px;
}

body.dark-theme .content-area,
body.dark-theme .widget-area,
body.dark-theme .dg-card {
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.dark-theme .magazine-archive-layout.grid-layout {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.dark-theme .magazine-archive-layout .mag-post-single .mag-post-img > a img {
	aspect-ratio: 1 / 0.62;
}

body.dark-theme .magazine-archive-layout .mag-post-detail {
	padding-top: 12px;
}

body.dark-theme .magazine-archive-layout .mag-post-title {
	font-size: 17px;
	line-height: 1.25;
}

body.dark-theme .mag-post-meta,
body.dark-theme .mag-post-excerpt {
	color: #aaa;
	font-size: 12px;
}

body.dark-theme .page-header .entry-title {
	font-size: 18px;
	margin: 0 0 18px;
}

@media (max-width: 991px) {
	body.dark-theme .banner-section.banner-section-style-2 .banner-section-wrapper {
		flex-direction: column;
	}

	body.dark-theme .banner-section.banner-section-style-2 .slider-part,
	body.dark-theme .banner-section.banner-section-style-2 .editors-pick-part {
		width: 100%;
	}

	body.dark-theme .magazine-archive-layout.grid-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	body.dark-theme .middle-header-wrapper,
	body.dark-theme .bottom-header-wrapper {
		display: block;
	}

	body.dark-theme .mag-adver-part img {
		max-width: 100%;
		width: 100%;
	}

	body.dark-theme .banner-section .banner-slider,
	body.dark-theme .banner-section .banner-grid-single {
		height: 300px;
		min-height: 300px;
	}

	body.dark-theme .editors-pick-wrapper,
	body.dark-theme .magazine-archive-layout.grid-layout {
		grid-template-columns: 1fr;
	}
}
