/*!
Theme Name: intuceo
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: intuceo
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

intuceo is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
 
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
 html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:#fff0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}*,*::before,*::after{box-sizing:inherit}html{box-sizing:border-box}body,button,input,select,optgroup,textarea{color:#404040;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:1rem;line-height:1.5}h1,h2,h3,h4,h5,h6{clear:both}p{margin-bottom:1.5em}dfn,cite,em,i{font-style:italic}blockquote{margin:0 1.5em}address{margin:0 0 1.5em}pre{background:#eee;font-family:"Courier 10 Pitch",courier,monospace;line-height:1.6;margin-bottom:1.6em;max-width:100%;overflow:auto;padding:1.6em}code,kbd,tt,var{font-family:monaco,consolas,"Andale Mono","DejaVu Sans Mono",monospace}abbr,acronym{border-bottom:1px dotted #666;cursor:help}mark,ins{background:#fff9c0;text-decoration:none}big{font-size:125%}body{background:#fff}hr{background-color:#ccc;border:0;height:1px;margin-bottom:1.5em}ul,ol{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ul,li>ol{margin-bottom:0;margin-left:1.5em}dt{font-weight:700}dd{margin:0 1.5em 1.5em}embed,iframe,object{max-width:100%}img{height:auto;max-width:100%}figure{margin:1em 0}table{margin:0 0 1.5em;width:100%}a{color:#4169e1}a:visited{color:purple}a:hover,a:focus,a:active{color:#191970}a:focus{outline:thin dotted}a:hover,a:active{outline:0}button,input[type="button"],input[type="reset"],input[type="submit"]{border:1px solid;border-color:#ccc #ccc #bbb;border-radius:3px;background:#e6e6e6;color:rgb(0 0 0 / .8);line-height:1;padding:.6em 1em .4em}button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover{border-color:#ccc #bbb #aaa}button:active,button:focus,input[type="button"]:active,input[type="button"]:focus,input[type="reset"]:active,input[type="reset"]:focus,input[type="submit"]:active,input[type="submit"]:focus{border-color:#aaa #bbb #bbb}input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],input[type="range"],input[type="date"],input[type="month"],input[type="week"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="color"],textarea{color:#666;border:1px solid #ccc;border-radius:3px;padding:3px}input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,input[type="number"]:focus,input[type="tel"]:focus,input[type="range"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="time"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="color"]:focus,textarea:focus{color:#111}select{border:1px solid #ccc}textarea{width:100%}.main-navigation{display:block;width:100%}.main-navigation ul{display:none;list-style:none;margin:0;padding-left:0}.main-navigation ul ul{box-shadow:0 3px 3px rgb(0 0 0 / .2);float:left;position:absolute;top:100%;left:-999em;z-index:99999}.main-navigation ul ul ul{left:-999em;top:0}.main-navigation ul ul li:hover>ul,.main-navigation ul ul li.focus>ul{display:block;left:auto}.main-navigation ul ul a{width:200px}.main-navigation ul li:hover>ul,.main-navigation ul li.focus>ul{left:auto}.main-navigation li{position:relative}.main-navigation a{display:block;text-decoration:none}.menu-toggle,.main-navigation.toggled ul{display:block}@media screen and (min-width:37.5em){.menu-toggle{display:none}.main-navigation ul{display:flex}}.site-main .comment-navigation,.site-main .posts-navigation,.site-main .post-navigation{margin:0 0 1.5em}.comment-navigation .nav-links,.posts-navigation .nav-links,.post-navigation .nav-links{display:flex}.comment-navigation .nav-previous,.posts-navigation .nav-previous,.post-navigation .nav-previous{flex:1 0 50%}.comment-navigation .nav-next,.posts-navigation .nav-next,.post-navigation .nav-next{text-align:end;flex:1 0 50%}.sticky{display:block}.post,.page{margin:0 0 1.5em}.updated:not(.published){display:none}.page-content,.entry-content,.entry-summary{margin:1.5em 0 0}.page-links{clear:both;margin:0 0 1.5em}.comment-content a{word-wrap:break-word}.bypostauthor{display:block}.widget{margin:0 0 1.5em}.widget select{max-width:100%}.page-content .wp-smiley,.entry-content .wp-smiley,.comment-content .wp-smiley{border:none;margin-bottom:0;margin-top:0;padding:0}.custom-logo-link{display:inline-block}.wp-caption{margin-bottom:1.5em;max-width:100%}.wp-caption img[class*="wp-image-"]{display:block;margin-left:auto;margin-right:auto}.wp-caption .wp-caption-text{margin:.8075em 0}.wp-caption-text{text-align:center}.gallery{margin-bottom:1.5em;display:grid;grid-gap:1.5em}.gallery-item{display:inline-block;text-align:center;width:100%}.gallery-columns-2{grid-template-columns:repeat(2,1fr)}.gallery-columns-3{grid-template-columns:repeat(3,1fr)}.gallery-columns-4{grid-template-columns:repeat(4,1fr)}.gallery-columns-5{grid-template-columns:repeat(5,1fr)}.gallery-columns-6{grid-template-columns:repeat(6,1fr)}.gallery-columns-7{grid-template-columns:repeat(7,1fr)}.gallery-columns-8{grid-template-columns:repeat(8,1fr)}.gallery-columns-9{grid-template-columns:repeat(9,1fr)}.gallery-caption{display:block}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.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 rgb(0 0 0 / .6);clip:auto!important;clip-path:none;color:#21759b;display:block;font-size:.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#primary[tabindex="-1"]:focus{outline:0}.alignleft{float:left;margin-right:1.5em;margin-bottom:1.5em}.alignright{float:right;margin-left:1.5em;margin-bottom:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto;margin-bottom:1.5em}add_action('admin_enqueue_scripts','enqueue_custom_profile_media_scripts');function enqueue_custom_profile_media_scripts($hook_suffix){// Only load WordPress Media Scripts on user edit/profile pages if ('profile.php'===$hook_suffix || 'user-edit.php'===$hook_suffix){wp_enqueue_media()}}add_action('show_user_profile','custom_user_profile_fields');add_action('edit_user_profile','custom_user_profile_fields');function custom_user_profile_fields($user){$profile_photo=get_user_meta($user->ID,'custom_profile_photo',true);$job_role=get_user_meta($user->ID,'job_role',true);?><h2><?php esc_html_e('Custom Profile Information','textdomain');?></h2><table class="form-table" role="presentation"><!-- Job Role Field --><tr><th><label for="job_role"><?php esc_html_e('Job Role','textdomain');?></label></th><td><input type="text" name="job_role" id="job_role" value="<?php echo esc_attr( $job_role ); ?>" class="regular-text" placeholder="<?php esc_attr_e( 'e.g. Senior Developer, Designer...', 'textdomain' ); ?>" /><p class="description"><?php esc_html_e('Enter the user\'s job role or position.','textdomain');?></p></td></tr><!-- Profile Photo Field --><tr><th><label for="custom_profile_photo"><?php esc_html_e('Profile Photo','textdomain');?></label></th><td><div id="custom-profile-photo-wrapper"><?php if ($profile_photo) :?><img id="custom-profile-photo-preview" src="<?php echo esc_url(https://intuceo.com/wp-content/themes/intuceo/$profile_photo); ?>" alt="<?php esc_attr_e( 'Profile Photo', 'textdomain' ); ?>" style="max-width:150px; max-height:150px; border-radius:50%; display:block; margin-bottom:10px; border:2px solid #ddd;" /><?php else :?><img id="custom-profile-photo-preview" src="" alt="" style="max-width:150px; max-height:150px; border-radius:50%; display:none; margin-bottom:10px; border:2px solid #ddd;" /><?php endif;?><input type="hidden" name="custom_profile_photo" id="custom_profile_photo" value="<?php echo esc_url(https://intuceo.com/wp-content/themes/intuceo/$profile_photo); ?>" /><button type="button" id="custom-profile-photo-upload" class="button button-secondary"><?php esc_html_e('Upload / Change Photo','textdomain');?></button><?php if ($profile_photo) :?><button type="button" id="custom-profile-photo-remove" class="button button-link-delete" style="margin-left:8px;"><?php esc_html_e('Remove Photo','textdomain');?></button><?php endif;?></div><p class="description"><?php esc_html_e('Upload a custom profile photo. Recommended: square image, at least 150×150px.','textdomain');?></p><script>jQuery(document).ready(function($){var mediaUploader;$('#custom-profile-photo-upload').on('click',function(e){e.preventDefault();if (mediaUploader){mediaUploader.open();return}mediaUploader=wp.media({title:'<?php echo esc_js( __( 'Choose Profile Photo', 'textdomain' ) ); ?>',button:{text:'<?php echo esc_js( __( 'Use this photo', 'textdomain' ) ); ?>'},multiple:false,library:{type:'image'}});mediaUploader.on('select',function(){var attachment=mediaUploader.state().get('selection').first().toJSON();var url=attachment.sizes && attachment.sizes.thumbnail ? attachment.sizes.thumbnail.url :attachment.url;$('#custom_profile_photo').val(attachment.url);$('#custom-profile-photo-preview').attr('src',url).show();if (! $('#custom-profile-photo-remove').length){$('<button>',{type:'button',id:'custom-profile-photo-remove',class:'button button-link-delete',text:'<?php echo esc_js( __( 'Remove Photo', 'textdomain' ) ); ?>',css:{marginLeft:'8px'}}).insertAfter('#custom-profile-photo-upload').on('click',handleRemove)}else{$('#custom-profile-photo-remove').show()}});mediaUploader.open()});function handleRemove(e){e.preventDefault();$('#custom_profile_photo').val('');$('#custom-profile-photo-preview').attr('src','').hide();$(this).hide()}$('#custom-profile-photo-remove').on('click',handleRemove)});</script></td></tr></table><?php wp_nonce_field('save_custom_profile_' . $user->ID,'custom_profile_nonce')}add_action('personal_options_update','save_custom_user_profile_fields');add_action('edit_user_profile_update','save_custom_user_profile_fields');function save_custom_user_profile_fields($user_id){if (! current_user_can('edit_user',$user_id)){return false}if (! isset($_POST['custom_profile_nonce']) || ! wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['custom_profile_nonce'])),'save_custom_profile_' . $user_id)){return false}// Save Job Role if (isset($_POST['job_role'])){update_user_meta($user_id,'job_role',sanitize_text_field(wp_unslash($_POST['job_role'])))}// Save Profile Photo URL if (isset($_POST['custom_profile_photo'])){$photo_url=esc_url_raw(wp_unslash($_POST['custom_profile_photo']));if (! empty($photo_url)){update_user_meta($user_id,'custom_profile_photo',$photo_url)}else{delete_user_meta($user_id,'custom_profile_photo')}}}add_filter('get_avatar','custom_user_avatar',10,5);function custom_user_avatar($avatar,$id_or_email,$size,$default,$alt){$user_id=0;if (is_numeric($id_or_email)){$user_id=(int) $id_or_email}elseif (is_string($id_or_email) && is_email($id_or_email)){$user=get_user_by('email',$id_or_email);if ($user){$user_id=$user->ID}}elseif ($id_or_email instanceof WP_User){$user_id=$id_or_email->ID}elseif ($id_or_email instanceof WP_Post){$user_id=(int) $id_or_email->post_author}elseif ($id_or_email instanceof WP_Comment){$user_id=(int) $id_or_email->user_id}if (! $user_id){return $avatar}$custom_photo=get_user_meta($user_id,'custom_profile_photo',true);if (! $custom_photo){return $avatar}$avatar=sprintf('<img alt="%s" src="%s" class="avatar avatar-%d photo custom-avatar" height="%d" width="%d" loading="lazy" decoding="async" />',esc_attr($alt),esc_url(https://intuceo.com/wp-content/themes/intuceo/$custom_photo),(int) $size,(int) $size,(int) $size);return $avatar}function get_custom_profile_photo($user_id){return get_user_meta($user_id,'custom_profile_photo',true)}function get_user_job_role($user_id){return get_user_meta($user_id,'job_role',true)}add_filter('manage_users_columns','add_job_role_column');function add_job_role_column($columns){$columns['job_role']=__('Job Role','textdomain');return $columns}add_filter('manage_users_custom_column','show_job_role_column_value',10,3);function show_job_role_column_value($value,$column_name,$user_id){if ('job_role'===$column_name){$job_role=get_user_meta($user_id,'job_role',true);return $job_role ? esc_html($job_role):'&mdash;'}return $value}add_action('elementor/dynamic_tags/register','register_custom_profile_dynamic_tags');function register_custom_profile_dynamic_tags($dynamic_tags_manager){$dynamic_tags_manager->register_group('custom-author',array('title'=>__('Custom Author Fields','textdomain')));$dynamic_tags_manager->register(new Custom_Author_Job_Role_Tag());$dynamic_tags_manager->register(new Custom_Author_Profile_Photo_Tag())}class Custom_Author_Job_Role_Tag extends \Elementor\Core\DynamicTags\Tag{public function get_name(){return 'custom-author-job-role'}public function get_title(){return __('Author Job Role','textdomain')}public function get_group(){return 'custom-author'}public function get_categories(){return array(\Elementor\Modules\DynamicTags\Module::TEXT_CATEGORY,\Elementor\Modules\DynamicTags\Module::POST_META_CATEGORY,)}protected function register_controls(){$this->add_control('fallback',array('label'=>__('Fallback Text','textdomain'),'type'=>\Elementor\Controls_Manager::TEXT,'default'=>'',))}public function render(){$author_id=(int) get_the_author_meta('ID');if (! $author_id && is_singular()){$author_id=(int) get_post_field('post_author',get_the_ID())}$job_role=$author_id ? get_user_meta($author_id,'job_role',true) :'';if (! $job_role){$settings=$this->get_settings();$job_role=! empty($settings['fallback']) ? $settings['fallback']:''}echo wp_kses_post($job_role)}}class Custom_Author_Profile_Photo_Tag extends \Elementor\Core\DynamicTags\Data_Tag{public function get_name(){return 'custom-author-profile-photo'}public function get_title(){return __('Author Profile Photo','textdomain')}public function get_group(){return 'custom-author'}public function get_categories(){return array(\Elementor\Modules\DynamicTags\Module::IMAGE_CATEGORY)}public function get_value(array $options=array()){$author_id=(int) get_the_author_meta('ID');if (! $author_id && is_singular()){$author_id=(int) get_post_field('post_author',get_the_ID())}$photo_url=$author_id ? get_user_meta($author_id,'custom_profile_photo',true) :'';$attachment_id=0;if ($photo_url){$cache_key='custom_photo_att_' . $author_id;$attachment_id=wp_cache_get($cache_key);if (false===$attachment_id){$attachment_id=attachment_url_to_postid($photo_url);wp_cache_set($cache_key,$attachment_id,'',HOUR_IN_SECONDS)}}if (! $photo_url && $author_id){$photo_url=get_avatar_url(https://intuceo.com/wp-content/themes/intuceo/$author_id,array('size'=>300))}return array('id'=>$attachment_id ?:null,'url'=>$photo_url,)}}add_action('elementor/widget/render_content','override_elementor_author_box',10,2);function override_elementor_author_box($content,$widget){if ('author-box' !==$widget->get_name()){return $content}$post=get_post();$author_id=$post ? (int) get_post_field('post_author',$post->ID) :0;if (! $author_id){return $content}$custom_photo=get_user_meta($author_id,'custom_profile_photo',true);$job_role=get_user_meta($author_id,'job_role',true);if ($custom_photo){$content=preg_replace('/(<div[^>]+class="[^"]*elementor-author-box__avatar[^"]*"[^>]*>)\s*<img[^>]+>/i','$1<img src="' . esc_url(https://intuceo.com/wp-content/themes/intuceo/$custom_photo) . '" alt="' . esc_attr(get_the_author_meta('display_name',$author_id)) . '" class="avatar custom-avatar" loading="lazy" />',$content)}if ($job_role){$job_role_html='<p class="elementor-author-box__job-role" style="margin:2px 0 6px; font-size:0.85em; opacity:0.75;">' . esc_html($job_role) . '</p>';$content=preg_replace('/(<[^>]+class="[^"]*elementor-author-box__name[^"]*"[^>]*>.*?<\/[^>]+>)/is','$1' . $job_role_html,$content,1)}return $content}add_shortcode('author_job_role','shortcode_author_job_role');function shortcode_author_job_role($atts){$atts=shortcode_atts(array('user_id'=>0),$atts);$user_id=$atts['user_id'] ? (int) $atts['user_id']:(int) get_the_author_meta('ID');$job_role=get_user_meta($user_id,'job_role',true);return $job_role ? '<span class="author-job-role">' . esc_html($job_role) . '</span>':''}add_shortcode('author_profile_photo','shortcode_author_profile_photo');function shortcode_author_profile_photo($atts){$atts=shortcode_atts(array('user_id'=>0,'size'=>150),$atts);$user_id=$atts['user_id'] ? (int) $atts['user_id'] :(int) get_the_author_meta('ID');$photo_url=get_user_meta($user_id,'custom_profile_photo',true);if (! $photo_url){$photo_url=get_avatar_url(https://intuceo.com/wp-content/themes/intuceo/$user_id,array('size'=>(int) $atts['size']))}$size=(int) $atts['size'];return sprintf('<img src="%s" alt="%s" class="author-profile-photo" width="%d" height="%d" loading="lazy" decoding="async" style="border-radius:50%%;object-fit:cover;" />',esc_url(https://intuceo.com/wp-content/themes/intuceo/$photo_url),esc_attr(get_the_author_meta('display_name',$user_id)),$size,$size)}add_action('wp_footer',function(){?><script>document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll('[role="listitem"]').forEach(function(el){if (el.tagName !=='LI'){el.removeAttribute('role')}})});</script><?php});