/**
 * Fonts
 */
@font-face {
  font-family: 'Aller';
  src: url("../fonts/aller_rg-webfont.eot");
  src: url("../fonts/aller_rg-webfont.eot%3F") format("embedded-opentype"), url("../fonts/aller_rg-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aller';
  src: url("../fonts/aller_bd-webfont.eot");
  src: url("../fonts/aller_bd-webfont.eot%3F") format("embedded-opentype"), url("../fonts/aller_bd-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Aller';
  src: url("../fonts/aller_it-webfont.eot");
  src: url("../fonts/aller_it-webfont.eot%3F") format("embedded-opentype"), url("../fonts/aller_it-webfont.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Aller';
  src: url("../fonts/aller_bdit-webfont.eot");
  src: url("../fonts/aller_bdit-webfont.eot%3F") format("embedded-opentype"), url("../fonts/aller_bdit-webfont.woff") format("woff");
  font-weight: bold;
  font-style: italic;
}

/* base text site-wide */
body {
  font-family: "Aller", Arial, Helvetica, sans-serif;
  font-size: 14px;
  /* 20 / 14 */
  line-height: 1.428571429;
}

/* page titles */
#content h1 {
  font-size: 26px;
  line-height: 1.1;
}

/* page subtitles */
#content h2 {
  font-size: 15px;
  line-height: 1.1;
}

/* top navigation bar */
#primary {
  font-size: 0.9em;
  /* 20 / 14 / 0.9 */
  line-height: 1.587301587301587;
}

/* bottom navigation bar (logged-in only) */
#secondary {
  font-size: 9px;
  /* 20 / 9 */
  line-height: 2.222222222222222;
}

/* right side outer navigation menu */
#sidebar-right h3 {
  /* same as body */
  font-size: inherit;
}

#sidebar-right ul.menu li {
  font-size: inherit;
}

/* right side inner navigation menu */
#sidebar-left ul.menu li {
  font-size: inherit;
}

/* footer message */
#footer-message {
  font-size: 0.75em;
  /* 20 / 14 / 0.75 */
  line-height: 1.904761904761905;
}

/* front page featured items */
#feature p {
  /* text */
  font-size: 0.9em;
  /* 20 / 14 / 0.9 */
  line-height: 1.587301587301587;
}

body {
  margin: 0;
}

#page {
  width: 960px;
  margin: 0 auto;
}

.inner {
  padding-right: 20px;
}

/* header */
#header {
  margin: 0 0 2em;
}

#header #header-region {
  overflow: hidden;
}

/* content */
#main {
  position: relative;
  margin: 2em 0;
}

#content-header {
  padding-right: 20px;
  width: 790px;
}
#content-header h2 {
  max-width: 100%;
}

#content {
  float: left;
  width: 590px;
}
body.no-sidebars #content {
  /* no sidebars */
  width: 960px;
}
body.sidebar-right #content {
  /* right sidebar only */
  width: 810px;
}
.page-node-91 #content, .node-type-bio #content {
  /* decrease width for leadership team section */
  width: 510px;
}

/* content height: all content */
#content-area .content {
  height: 36em;
}

/* content height: page w/ slideshow */
#content-area .node-type-page .content.has_nodeimage {
  height: 17em;
}

/* sidebars */
.sidebar {
  float: right;
}

#sidebar-left {
  /* h1 line-height + margin */
  margin-top: 39px;
  width: 220px;
}
.page-node-91 #sidebar-left, .node-type-bio #sidebar-left {
  /* increase width for leadership team section */
  width: 300px;
}
.one-sidebar.sidebar-right #sidebar-left {
  /* hide if empty */
  display: none;
}

.has-subtitle #sidebar-left {
  /* h1 line-height + margin + h2 line-height + margin */
  margin-top: 64.5px;
}

#sidebar-right {
  width: 149px;
  border-left: 1px solid #00a8ad;
}

/* footer */
#footer {
  margin: 2em 0 0;
}

/**
 * Page
 */
.node-type-page .slideshow {
  /* add margins above slideshows */
  margin: 10px 0;
  /* force height or footer will be too far up */
  height: 250px;
}

/**
 * Bio
 */
.node-type-bio .slideshow {
  float: left;
  /* don't wrap content */
  height: 36em;
  /* align with text */
  margin-top: 4px;
}
.node-type-bio .leftscrollpane {
  float: right;
  /* content width - image width */
  width: 280px;
}

.page-node-91 #sidebar-left ul.menu li,
.node-type-bio #sidebar-left ul.menu li {
  /* condense leadership sidebar menu items */
  margin-bottom: 5px;
}

/**
 * Splash
 */
.node-type-splash #splash-text {
  float: left;
  margin-left: 10px;
  width: 245px;
  height: 24em;
}
.node-type-splash #splashimage {
  float: left;
  margin: 0;
  /* force height & width to fix ie7 margin issues */
  height: 336px;
  width: 500px;
}
.node-type-splash #feature {
  float: left;
  width: 245px;
  margin: 10px 5px;
}
.node-type-splash #feature h4 {
  color: #00a8ad;
  font-weight: bold;
  margin: 0 0 5px;
}
.node-type-splash #feature p {
  margin: 0;
}
.node-type-splash #feature a {
  color: #6b6b6b;
}
.node-type-splash #feature a b {
  color: #00a8ad;
}
.node-type-splash #feature a:hover {
  text-decoration: none;
}
.node-type-splash #feature a:hover p > b {
  color: #00a8ad;
  text-decoration: underline;
}
.node-type-splash #feature.feature0 {
  margin-left: 0;
}
.node-type-splash #feature.feature2 {
  margin-right: 0;
}
.node-type-splash #feature.feature0, .node-type-splash #feature.feature1, .node-type-splash #feature.feature2 {
  position: relative;
  z-index: 1;
}

/* press releases page */
.view-news th {
  white-space: nowrap;
}
.view-news .views-field-field-date-value {
  white-space: nowrap;
  vertical-align: text-top;
}
.view-news thead th,
.view-news tbody,
.view-news tr {
  border: none;
}
.view-news td {
  background-color: #ffffff;
  padding: 5px 5px 5px 0;
}

/**
 * Header Region
 */
#logo {
  float: right;
  margin-top: 2em;
  /* line up HAECO Americas text w/ right navigation menu */
  margin-right: 31px;
}

/**
 * Content Region
 */
div.tabs {
  position: absolute;
  top: -2em;
}

/**
 * Sidebar Regions
 */
#sidebar-right ul {
  margin-bottom: 4em;
}

#sidebar-right li {
  border-left: 4px solid white;
}
#sidebar-right li.active-trail {
  border-color: #00a8ad;
}

/**
 * Footer Region
 */
#footer-message {
  color: #b7b7b7;
  margin: 10px 0;
}
#footer-message div {
  float: left;
}
#footer-message #copy {
  float: right;
  /* line up with right side of HAECO logo */
  margin-right: 31px;
}

/**
 * Navigation
 */
/* primary (top) and secondary (bottom) navigation bars */
ul.links li {
  float: left;
}

ul.links li.active > a,
ul.links li.active-trail > a,
ul.menu li.active > a,
ul.menu li.active-trail > a {
  color: #00a8ad;
}

ul.links a,
ul.menu a {
  color: #777472;
}

ul.links a:hover,
ul.menu a:hover {
  text-decoration: none;
}

ul li.hide {
  display: none;
}

#primary {
  background: white url("../images/nav-bg.png") repeat-x;
  float: left;
  /* line up with page headers */
  margin-left: -13px;
}
#primary a {
  background-color: white;
  display: block;
  margin-right: 2px;
  padding: 45px 10px 15px;
  text-transform: uppercase;
}
#primary li {
  padding: 0;
}
#primary li.first a {
  margin-left: 2px;
}

#secondary {
  float: right;
  height: 20px;
}
#secondary li {
  padding: 0;
  margin: 0 10px;
}
#secondary li.last {
  margin-right: 0;
}

/* sidebar menus */
ul.menu {
  padding: 0;
}
ul.menu li {
  list-style: none;
  /* ie fix */
  list-style-image: none;
  margin: 0;
  margin-bottom: 10px;
  padding: 0;
}
ul.menu li.last {
  margin-bottom: 0;
}
ul.menu ul.menu {
  /* nested menus */
  margin: 10px 0 0 20px;
}

#sidebar-right h3.block-title {
  margin: 0;
  padding-left: 8px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

#sidebar-right ul {
  padding: 0;
}

#sidebar-right ul.menu li {
  margin-left: 0;
  padding-left: 4px;
}

/**
 * HTML Elements
 */
body {
  color: #6b6b6b;
}

a {
  color: #00a8ad;
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: #00a8ad;
  margin: 0 0 10px;
}

h2 {
  font-weight: normal;
}

p {
  margin: 0 0 10px;
}

ul, ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

ul ul {
  margin-bottom: 0;
}
