
.mobile{ display: block; }
.mobile_i{ display: inline; }
.mobile_ib{ display: inline-block; }

html{
	background: #dddddd;
}

body{
	width: 360px;
	margin: 0 auto 0 auto;
}

#page{
	min-width: 0;
	max-width: none;
	padding: 0;
	border: 0;
}

#main > #content,
#main > aside{
	width: auto;
	float: none;
	margin: 0;
}

#main > aside{
	border-top: 1px solid #dddddd;
	padding: 15px 15px 0 15px;
}

/* HEADER */

#page > header{
	height: 56px;
}

header #logo{
	width: auto;
	margin: 10px 0 0 10px;
}

header #logo img{
	width: 212px;
}

header nav{
	position: absolute;
	top: 0;
	right: 0;
	z-index: 10;
}

header nav.active{
	width: 100%;
	background-color: #0091d2;
}

/* Alert */

div.alert div.inset{
	height: auto;
	padding: 0 10px 0 10px;
	max-width: 338px;
	min-width: 338px;
}

div.alert div.inset:before{
	width: 32px;
	height: 27px;
	margin: 12px 0 0 0;
	background-position: right -650px;
}

div.alert div.inset div.text{
	margin: 0 0 8px 45px;
	font-size: 14px;
	line-height: 1em;
}

div.alert div.inset div.text div.heading{
	margin-top: 10px;
}

div.alert div.inset div.text div.message{
}

/* button.hambuger */

button.hamburger{
	width: 40px;
	height: 38px;
	padding: 5px;
	margin: 8px 8px 0 0;
	display: inline-block;
	position: relative;
	overflow: visible;
	border: none;
	background: none;
}

button.hamburger span,
button.hamburger:before,
button.hamburger:after{
	content: '';
	height: 3px;
	width: 28px;
	overflow: visible;
	display: inline-block;
	border-radius: 2px;
	background: #696767;
	position: absolute;
	left: 7px;
	transition: 0.4s;
}

button.hamburger span{ top: 17px; }
button.hamburger:before{ top: 7px; }
button.hamburger:after{ bottom: 7px; }

nav.active button.hamburger:before,
nav.active button.hamburger:after{
	top: 17px;
	bottom: auto;
	background: white;
	transform: rotate(45deg);
	transform-origin: 50% 50%;
}

nav.active button.hamburger:after{ transform: rotate(-45deg); }
nav.active button.hamburger span{ opacity: 0; }

/* hamburger */

header nav a.hamburger{
	width: 40px;
	height: 40px;
	display: block;
	margin: 8px 8px 0 0;
	position: relative;
	float: right;
	background: center -300px no-repeat url(_img/sprites1.png);	
}

header nav a.hamburger span{
	position: absolute;
	left: -800px;	
}

header nav.active a.hamburger{
	background-position: center -500px;
}


header nav > div{
	width: 100%;
	min-height: 360px;
	display: none;
	position: absolute;
	top: 48px;
	right: 0;
	padding-top: 13px;
	padding-bottom: 50px;
	overflow: hidden;
	clear: both;
	background: #0091d2;
	background: linear-gradient(to bottom, #0091d2 0%,#0076bf 100%);
}

header nav > div.selected{
	display: block;
}

header nav ul.menu div.dropdown{
	position: static;
	display: none;
}

header nav ul.menu li.show div.dropdown,
header nav ul.menu li.current-menu-parent div.dropdown{
	display: block;
}

header nav ul.menu li.current-menu-parent.hide div.dropdown{
	display: none;
}

header nav #menu-item-53.current-menu-item,
header nav ul.sub-menu li.current-menu-item{
	background: #006eaf;
}

header nav div.dropdown ul{
	background: none;
	box-shadow: none;
}

header nav div.dropdown > span{
	display: none;
}

header ul.menu{
	margin-top: 0;
}

header nav ul.menu li{
	float: none;
	display: block;
}

header ul.menu > li{
	margin-left: 0;
}

header ul.menu > li > a{
	display: block;
	padding: 13px 0 13px 18px;
	font-weight: 600;
	text-align: left;
	color: white;
}

header ul.menu li.lang-item{
	top: auto;
	right: 0;
	bottom: 0;
	left: 18px;
	text-align: left;
}

header ul.menu li.lang-item a{
	width: 50%;
	display: inline-block;
	padding: 10px 0 20px 0;
	border-top: 1px solid rgba( 255, 255, 255, 0.4 );
	font-size: 14px;
	text-align: left;
	background: none;
}

header ul.sub-menu{
	margin-bottom: 0;
}

header ul.sub-menu li a{
	padding-left: 36px;
	font-weight: 300;
}


#pg_home #subheader{
	position: static;
	z-index: 1;
}

#pg_home #subheader #vis_tabs a{
	padding-left: 36px;
	padding-right: 36px;
}
#pg_home #subheader #vis_tabs a.map{
	width: 33px;
	padding-left: 38px;
	padding-right: 38px;
	background-position: 32px 10px;
}

#pg_home #subheader #vis_tabs #tab_chart_change{
	height: 22px;
	padding-top: 13px;
}

#subheader div.share{
	display: none;
}


/* FOOTER */
footer div.links{
	width: 100%;
	margin-bottom: 40px;
}

#page > footer{
	padding: 25px 5px 10px 15px;
}

#page > footer a.button{
	margin: 0 0 0 20px;
}


footer nav,
footer ul.primary-menu{
	float: none;
	clear: both;
	overflow: hidden;
}

footer a.hpi_logo{
	margin: 0 60px 30px 20px;
}

.footer_social{
	width: 50%;
	float: left;
	margin-top: 0;
}

.footer_social .follow_header{
	margin-top: 0;
}

footer ul.primary-menu > li{
	width: 135px;
	height: auto;
	margin-left: 0;
	margin-bottom: 50px;
}

footer ul.primary-menu > li:nth-child(even){
	clear: left;
}

footer ul.primary-menu > li:last-child{
	height: 45px;
}

footer ul.primary-menu > li.lang-item{
	left: 177px;
	top: 220px;
}

footer ul.primary-menu ul.sub-menu{
	margin-bottom: 0;
}


header ul.menu #sub_newsroom,
header ul.menu #sub_solutions,
header ul.menu div.dropdown{
	width: auto;
}

#founding_partners{
	padding: 0 15px 0 15px;
	height: auto;
	overflow: hidden;
	line-height: normal;
}

#founding_partners span{
	display: block;
	margin-top: 20px;
	margin-bottom: 30px;
}

#founding_partners div.icons{
	position: static;
}

#founding_partners a.teranet,
#founding_partners a.national_bank{
	margin: 0 40px 30px 0;
}

#founding_partners a.national_bank{
	margin-right: 0;
}

#subfooter{
	text-align: center;
}

#subfooter a{
	display: block;
}

#legal{
	margin: 10px 0 0 0;
	text-align: center;
	float: none;
}


/* Promo Dialog */

#promo_dialog{
	width: 350px;
	height: auto;
	padding: 50px 10px 30px 10px;
	margin-top: 10px
}

#promo_dialog button.close{
	right: 10px;
	top: 10px;
}

/* VISUALIZER */

#visualizer header{
	width: 94%;
	left: 3%;
	top: 55px;
}

#visualizer header h1{
	font-size: 26px;
}

#visualizer div.donut{
	display: none;
}

#visualizer #vis_map_c11{
	padding: 15px;
}

#visualizer div.map_frame{
	width: 100%;
	margin: 175px 0 0 0;
}

#vis_indx_summary{
	width: 97%;
	display: block;
	top: 195px;
	right: auto;
	left: 3%;
}

#visualizer.chart_compare #vis_indx_summary{
	display: none;
}

#vis_indx_summary div.comp{ display: block; }

#vis_compare_legend{
	width: 93%;
	left: 3%;
	top: 50px;
	overflow: hidden;
	text-align: left;
}

#vis_compare_legend > div{
	float: left;
}

#vis_compare_legend > div span.label{
	width: 110px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#visualizer.chart_change #vis_indx_summary,
#visualizer.maps #vis_content.city_indx #vis_indx_summary{
	top: 50px;
}

#vis_indx_summary > div{
	margin-left: 0;
	padding-left: 22px;
	background-position: -102px 4px;
}

#vis_indx_summary > #sum_indx_value{
	padding-left: 0;
	background: no-repeat;
}

#vis_indx_summary span.label{
	font-size: 13px;
}

#visualizer.maps #vis_content.city_indx #vis_indx_summary span.change, #visualizer.maps #vis_content.city_indx #vis_indx_summary span.value,
#vis_indx_summary span.change, 
#vis_indx_summary span.value{
	font-size: 13px;
}

#vis_content > div.section,
#vis_content > div.section > div.screen{
	min-height: 0;
}

#vis_indx_select,
#visualizer.chart_change #vis_indx_select,
#visualizer.maps #vis_content.comp_indx #vis_indx_select,
#visualizer.chart_compare #vis_indx_select{
	width: 94%;
	left: 3%;
	right: auto;
	margin: 0;
	top: 10px;
}

/*
#vis_indx_select.active div.select{ display: none; }
#vis_indx_select.active select{ display: block; }
*/

#vis_indx_select div.current_value div{
	padding: 4px 20px 4px 2px;
	background-position: right 2px;
}

#vis_indx_select.active div.current_value div{
	background-position: right -31px;
}

#vis_indx_select div.select{
	width: 93%;
	height: 270px;
	overflow-y: scroll;
}

#vis_indx_select div.select > ul{
	width: 100%;
	float: none;
}

#vis_indx_select div.annotation{
	top: 904px;
}

#indx_mc.show{ display: none; }

#vis_maps img{
	position: relative;
	top: 5px;
}

#vis_maps div.map a.city{
	padding: 4px;
	border-radius: 4px;
	cursor: default;
}

#visualizer.maps #map_indx_date{
	width: 94%;
	height: 25px;
	margin: 0;
	right: auto;
	left: 3%;
	top: 155px;
}

#sum_indx_date{ display: none; }

#vis_indx_base{
	max-width: none;
	bottom: 15px;
	left: 10px;
	font-size: 12px;
	line-height: 1.2em;
}

/* Change Chart */

#vis_chart_compare div.chart,
#vis_chart_change div.chart{
	height: 400px;
	margin-top: 125px;
	padding-top: 0;
}

#vis_chart_compare div.chart{
	margin-top: 115px;
}

/* PAGE SPECIFIC */

/* Home */

#pg_home div.panel-grid-cell,
#pg_home div.panel-grid-cell:first-child,
#pg_home #promo_tiles div.panel-grid-cell,
#pg_home #promo_tiles div.panel-grid-cell:first-child,
#pg_home #promo_tiles div.panel-grid-cell:last-child,
#pg_home #row1 div.panel-grid-cell:first-child,
#pg_home div.monthly_report_feed .post div.text,
#pg_home #recent_indx_changes,
#pg_home .post div.text,
#vis_map_city div.map,
#vis_map_city div.text,
#vis_map_city div.table{
	width: auto;
	padding: 0;
	float: none;
}

#vis_map_city div.map{
	margin-top: 100px;
	margin-bottom: 15px;
}

#vis_map_city div.text,
#vis_map_city div.table{
	margin: 0 15px 15px 15px;
}

#vis_map_city div.callout{
	width: auto;
	position: static;
	padding: 15px 15px 15px 15px;
}

#vis_map_city div.callout div.body,
#vis_map_city div.callout div.action{
	line-height: 1.3em;
}

#vis_map_city div.callout div.body{
	margin-bottom: 15px;
}

#pg_home div.row,
.panel-grid.panel-no-style,
.panel-grid.panel-has-style{
	display: block;
	padding-bottom: 0;
}

#pg_home div.panel-grid-cell{
	margin-bottom: 0;
}

#pg_home #row1 > div.panel-grid-cell:first-child{
	height: auto;
}

#pg_home #row1 > div.panel-grid-cell:first-child{
	padding: 10px 15px 10px 15px;
}

#row1 div.tile{
	position: relative;
}

.post{
	position: relative;
}

#pg_home div.panel-grid-cell{
	padding: 0 15px 0 15px;
}

#pg_home #row2 div.panel-grid-cell{
	height: auto;
	padding: 0 15px 0 15px;
	margin-bottom: 15px;
	border: none;
}

#pg_home #row2 div.panel-grid-cell div.tile{
	padding-bottom: 15px;
	border-bottom: 2px solid #dddddd;
}

#pg_home #row2 #pgc-26-row2-2 div.tile{
	padding-bottom: 0;
	border-bottom: 0;
}

#pg_home div.monthly_report_feed .post div.icon,
.post div.icon{
	width: 15%;
	margin: 0;
	float: none;
	position: absolute;
	top: 0;
	left: 0;
}

#content .post{
	margin-bottom: 0;
}

#content .post div.icon{
	position: absolute;
	top: 15px;
	left: 15px;
	margin-right: 0;
}

#next_report a.button{
	padding-left: 10px;
	padding-right: 10px;
}

#solutions_tiles div.row{
	padding: 0;
}

#pg_home #solutions_tiles div.panel-grid-cell{
	padding: 0;
	margin-bottom: 10px;
}

#pg_home #solutions_tiles div.panel-grid-cell:last-child{
	margin-bottom: 0;
}

/* Promo Tiles */

#pg_home #promo_tiles div.row{
	padding: 15px;
}

#pg_home #promo_tiles div.panel-grid-cell:first-child{
	margin-bottom: 15px;
}


/* Promo Block */

#pg_home #promo_block div.white_paper{
	background-position: right bottom;
	background-image: url(/wp-content/uploads/2021/09/HPI-Whitepaper-Banner-Mobile-330x285-1.jpg);
}

#pg_home #promo_block div.white_paper div.heading,
#pg_home #promo_block div.white_paper div.body{
	width: 100%;
	min-width: 0;
	float: none;
}

#pg_home #promo_block div.white_paper div.body{ padding-top: 0; }


/* Newsroom / Blog Listing */

div.post_nav{
	padding-bottom: 8px;
	margin-bottom: 0;
}

div.post_nav > div{ background-position: 5px -243px }
div.post_nav > div.none{ background-position: 5px -293px }
div.post_nav div.next_post{ background-position: -20px -243px }
div.post_nav div.next_post.none{ background-position: 10px -293px; cursor: default; }

div.post_nav div.heading{
	height: 24px;
	padding-top: 10px;
	background: white;
}
/*
div.post_nav div.heading span{
	display: block;
}
*/
div.post_nav a.description,
div.post_nav div.description{
	display: none;
}

article,
article.page{
	position: relative;
	padding: 15px;
}

article div.more_info div.contact{
	float: none;
}

#content footer div.more_info{
	margin: 15px;
}

#content footer div.more_info div.contact{
	width: auto;
	float: none;
	margin-bottom: 15px;
}

article footer{
	overflow: hidden;
	padding: 0 5px 20px 0;
	border-bottom: 2px solid #dddddd;
	margin-bottom: 15px;
}

article.category-reports footer{
	border-bottom: none;
}

#main nav.pagination{
	padding: 8px 0 8px 0;
	border-top: 1px solid #dddddd;
	border-bottom: 2px solid #dddddd;
	text-align: center;
}

#main nav.pagination span,
#main nav.pagination a{
	font-size: 14px;
	padding: 0 4px 0 4px;
}

#content div.teaser{
	position: relative;
	padding: 15px;
}

#content .post{
	padding: 15px;
}

.post div.text div.date{
	margin: 30px 0 0px 70px;
}

#content .post div.text,
#cat_sidebar .post div.text,
#pg_home .post div.text{
	width: auto;
	float: none;
}

article.post #vis_change_table,
article.post #vis_chart_change{
	width: 360px;
	margin-left: -15px;
}

article #vis_indx_select{
	width: 93%;
	margin-left: 0;
}

/* Solutions */

body.section-solutions article{
	padding: 15px;
}

body.section-solutions article footer{
	display: none;
}

/* About */

#about_nav{ display: none; }
#pg_national-bank-of-canada article section.intro,
article section.intro{ font-size: 16px; }
body.section-about article p.profile{ font-size: 14px; }
article table.data td{ font-size: 11px; }
article table.data td:first-child{ white-space: normal; }
article table.data thead td{ font-weight: 600; }

#pg_our-mission div.panel-grid-cell,
#pg_teranet-inc div.panel-grid-cell,
#pg_national-bank-of-canada div.panel-grid-cell,
#pg_our-methodology div.panel-grid-cell,
#pg_index-history div.panel-grid-cell,
#pg_contact div.panel-grid-cell,
#pg_newsletter div.panel-grid-cell,
#pg_tracking-housing-prices-in-canada-why-methodology-matters div.panel-grid-cell,
#pg_tracking-housing-prices-in-canada-why-methodology-matters-download div.panel-grid-cell
{ width: auto; }

#pg_tracking-housing-prices-in-canada-why-methodology-matters-download div.panel-grid-cell:first-child{
	display: none;
}

#communities_served{ background: none; }
#communities_served ul.tabs{ display: none; }
#communities_served > div.contents,
body.fr #communities_served > div.contents{ width: auto; }
#communities_served div.tab_content{ margin: 0; }
#communities_served > div.contents div.tab{
	display: block;
	cursor: pointer;
	font-size: 18px;
}

#communities_served > div.contents div.tab:before{
	content: "▲";
	display: inline-block;
	float: left;
	margin-right: 8px;
	font-size: 14px;
	font-family: Arial, sans-serif;
	transition: 0.4s;
	transform: rotate(90deg);
}

#communities_served > div.contents div.tab.selected:before{ transform: rotate(180deg); }
#communities_served > div.contents div.tab_content{
	padding-left: 24px;
	display: none;
}
#communities_served > div.contents div.tab_content.selected{
	padding-top: 10px;
	padding-bottom: 25px;
	margin-bottom: 10px;
}

#communities_served div.three_up div.service,
#communities_served div.service{ width: 100%; }



#value_added_solutions{
	width: 330px;
	background: #eeeeee;
	position: relative;
	left: -15px;
	padding: 5px 15px 0 15px;
}

#value_added_solutions a{
	width: 100%;
	margin: 0;
}

#value_added_solutions a img.hover{
	top: 0;
}

#vas_communifi:after{ top: 74px;` color: white; }

/* contact */

#pg_contact div.contact_name,
#pg_nous-contacter div.contact_name{
	width: auto;
	float: none;
}

/* Create an <abbr> tooltip for mobile */
abbr{ position: relative; }
abbr[title]:after
{
	content: attr(title);
	min-width: 150px;
	position: absolute;
	display: none;
	top: -40px;
	left: -132px;
	padding: 5px 8px 5px 8px;
	border-radius: 4px;
	text-align: center;
	background: #0076BF;
	color: white;
}

abbr[title]:active:after,
abbr[title]:focus:after,
abbr[title]:hover:after{
	display: block;
}


table.data thead td{
	-moz-user-select: -moz-none;
	-khtml-user-select: none;
	-webkit-user-select: none;
}
/*
table.data thead abbr[title]:after{
	font-weight: normal;
	background: #e8e8e8;
	color: #5a5a5a;
}
*/
table.data thead abbr[title]:after{ top: 25px; }

