/* Additional style rules serving specific page elements */

/* The Contact Us form uses CSS rules and simple Javascript to toggle form
 * element visibility.
 * The categories are identical to the keys for the "Type of Enquiry" select
 * box.
 * In addition to the form elements themselves, a div with class
 * [category]-header is supplie to provide additional instructions for each
 * category of enquiry.
 */

/* Default form element visibility.
 * All elements are initially listed as disabled.
 */

#webform-client-form-87 #webform-component-name,
#webform-client-form-87 #webform-component-email,
#webform-client-form-87 #webform-component-phone,
#webform-client-form-87 #webform-component-street_address,
#webform-client-form-87 #webform-component-message,
#webform-client-form-87 #webform-component-available_from,
#webform-client-form-87 #webform-component-available_until,
#webform-client-form-87 #webform-component-cv,
#webform-client-form-87 #webform-component-academic_details,
#webform-client-form-87 #webform-component-preferred_project,
#webform-client-form-87 #webform-component-faculty_mentor,
#webform-client-form-87 #webform-component-instructions .general,
#webform-client-form-87 #webform-component-instructions .technical,
#webform-client-form-87 #webform-component-instructions .ai_apply,
#webform-client-form-87 #webform-component-instructions .ai_apply_group,
#webform-client-form-87 #webform-component-instructions .rc_apply,
#webform-client-form-87 #webform-component-instructions .rc_volunteer,
#webform-client-form-87 #webform-component-instructions .volunteer
  {
    display: none;
  }

/* Elements which are globally enabled. */

#webform-client-form-87 #webform-component-name,
#webform-client-form-87 #webform-component-email,
#webform-client-form-87 #webform-component-message
  {
    display: block;
  }

#webform-client-form-87.general #webform-component-instructions .general
  {
    display: block;
  }
#webform-client-form-87.technical #webform-component-instructions .technical
  {
    display: block;
  }

#webform-client-form-87.ai_apply #webform-component-phone,
#webform-client-form-87.ai_apply #webform-component-street_address,
#webform-client-form-87.ai_apply #webform-component-cv,
#webform-client-form-87.ai_apply #webform-component-academic_details,
#webform-client-form-87.ai_apply #webform-component-preferred_project,
#webform-client-form-87.ai_apply #webform-component-faculty_mentor,
#webform-client-form-87.ai_apply #webform-component-instructions .ai_apply
  {
    display: block;
  }

#webform-client-form-87.ai_apply_group #webform-component-phone,
#webform-client-form-87.ai_apply_group #webform-component-street_address,
#webform-client-form-87.ai_apply_group #webform-component-cv,
#webform-client-form-87.ai_apply_group #webform-component-instructions .ai_apply_group
  {
    display: block;
  }

#webform-client-form-87.rc_apply #webform-component-phone,
#webform-client-form-87.rc_apply #webform-component-street_address,
#webform-client-form-87.rc_apply #webform-component-available_from,
#webform-client-form-87.rc_apply #webform-component-available_until,
#webform-client-form-87.rc_apply #webform-component-cv,
#webform-client-form-87.rc_apply #webform-component-instructions .rc_apply
  {
    display: block;
  }

#webform-client-form-87.rc_volunteer #webform-component-phone,
#webform-client-form-87.rc_volunteer #webform-component-street_address,
#webform-client-form-87.rc_volunteer #webform-component-available_from,
#webform-client-form-87.rc_volunteer #webform-component-available_until,
#webform-client-form-87.rc_volunteer #webform-component-cv,
#webform-client-form-87.rc_volunteer #webform-component-instructions .rc_volunteer
  {
    display: block;
  }

#webform-client-form-87.volunteer #webform-component-phone,
/*#webform-client-form-87.volunteer #webform-component-available_from,
#webform-client-form-87.volunteer #webform-component-available_until,*/
#webform-client-form-87.volunteer #webform-component-cv,
#webform-client-form-87.volunteer #webform-component-instructions .volunteer
  {
    display: block;
  }

/* =Publications
------------------------------------------------------- */
/* From Lighthouse, but not in last site.css */

.node {
margin:0 0 2em 0;
}

.field,
.taxonomy-term-description {
margin:0 0 1em 0;
}

.terms-inline ul li {
display:inline;
background:transparent url(/inc/images/li_arrow1.gif) no-repeat 0 6px;
margin:0;
padding:0 0 0 10px;
}

.node {
padding:1em 0 0 0;
background:transparent url(/inc/images/dot_grey.gif) repeat-x scroll 0 0;
}

.field-items {
color:#666;
}

/* Hide the link to leave this group for projects */
div#block-og-0 div.content div.item-list ul li:last-child {
  display: none;
}

legend {
  font-weight: bold;
}

img.how-to {
  border: 1px solid #CCCCCC;
  margin: 0.5em;
}

/* Hide redundant substructural navigation on book pages */
div.book-navigation {
  display: none;
}

/* Fix list styling for section front page right-hand menus */
.subhome-right ul li {
  list-style-image: none;
  list-style-position: outside;
  list-style-type: circle;
  margin: 0 0 5px 25px;
}

#home-news.subhome-news {
  width: 580px;
}

/* Hide right-hand box on user pages, since there are no blocks in it */
body.page-user #content div.div-bg.right-margin {
  display: none;
}

/* Hide Drupal search form elements that we don't want */
#search #edit-search-theme-form-1-wrapper label,
#search #edit-submit,
#search #edit-submit-1,
#search #edit-submit-2,
#search #edit-submit-3 { /* 2/3 only appear on certain pages */
  display: none;
}

/* Some styles for slightly nicer table presentation */

.spacious-table td,
.spacious-table th {
  padding: 0.25em 0.5em;
}

.spacious-table .c {
  text-align: center;
}

/* Hide the "no messages" pragma on group pages */

#text-page.node-type-project #content .messages.status {
  display: none;
}

/* Hide the "Login or register to post comments" message for anons */

#text-page.not-logged-in li.comment_forbidden {
  display: none;
}

.node-type-project .node .links .comment_add,
.node-type-project-update .node .links .comment_add {
  display: none;
}

.view-external-news .views-row .views-field-body .field-content {
  display: inline;
}

#home-blurb .node {
  background: none;
}

#views-exposed-form-frontpage-news-page #edit-uid-wrapper .description {
  display: none;
}
#views-exposed-form-frontpage-news-page #edit-uid-wrapper #edit-uid {
  width: 275px;
}

#text-page #content #block-views-og_members_block_public-block_1 .view-content ul li {
  list-style-type: none;
}

.tagline {
  font-size: 1.2em;
  font-style: italic;
  margin-left: 2em;
}

/* Rules to remove the right-hand block where it's not required */
body.page-forum div.div-bg.width-320-pad.right-margin,
body.node-nid-87 div.div-bg.width-320-pad.right-margin,
body.page-search div.div-bg.width-320-pad.right-margin,
body.page-taxonomy div.div-bg.width-320-pad.right-margin,
body.node-type-forum div.div-bg.width-320-pad.right-margin,
body.node-type-publication div.div-bg.width-320-pad.right-margin,
body.node-type-abstract div.div-bg.width-320-pad.right-margin,
body.node-nid-571 div.div-bg.width-320-pad.right-margin {
  display: none;
}

/* Fix calendar page */
body.page-calendar #content .view .view-content {
  clear: both;
}

.page-publications #content .views-field-tid .field-content a.active {
  color: #82A792;
}

.page-publications .view-id-publications_library .item-list ol li {
  padding-bottom: 1em;
}

/* Forums */

#text-page #content ul.forum-links li {
  list-style-type: none;
  margin: 0;
}

.forum-post-panel-main .post-title {
  font-weight: bold;
}

.forum-post-panel-sub .author-pane-line.author-name a {
  font-size: 1.4979em;
}

#forum-comments .forum-post {
  padding-top: 0.5em;
  background: transparent url(/inc/images/dot_grey.gif) repeat-x scroll 0 0;
}

#forum td.forum-icon {
  padding-left: 1.5em;
  padding-right: 1em;
}

#forum td.container {
  padding-top: 10px;
  padding-bottom: 10px;
}

#forum div.forum-details {
  padding-top: 5px;
}

#forum td.container .forum-details .name a {
  font-weight: bold;
}

#forum table.forum-topics {
  margin-bottom: 2em;
}

.page-forum .feed-icon {
  display: none;
}

.page-forum .forum-topics td.icon {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.node-type-forum .posted-on {
  color: #999999;
}

#footer a {
  color: #FFFFFF;
  border-bottom: 1px dotted #FFFFFF;
}

/* Hide "admin" on OG pages */
.view-og-members-block-public .views-row .views-field-is-admin {
  display: none;
}

/* Tweak appearance of face gallery */
.view-og-members-faces .views-field-picture .picture a {
  border-bottom: none;
  padding: 0 0.25em;
}

.video-container .video-bg-top a {
  border-bottom: none;
}

/* Define some styling for blockquotes, since MR uses them a lot */
blockquote {
  border-left: 2px dotted #AFAFAF;
  margin: 1em 1em 1.25em;
  padding: 0.25em 0 0 1.5em;
  color: #616161;
}
/* Define the same styling for auto-quotes, which otherwise get a rather Minelli-esque theme. No - at the risk of inconsistency, I prefer the default! 
div.quote-msg {
  background-color: transparent;
  border-color: #AFAFAF;
  border-style: dotted;
  border-width: 0 0 0 2px;
  padding: 0.25em 0 0 1.5em;
  color: #616161;
}
*/

/* Restore item numbering to reference list li */
.field-field-references li.field-item {
  list-style-type: decimal;
}

.field-field-references .field-items ol {
  margin-top: 0.5em;
}

/* breaks node headers, which are h3 by default but shouldn't be bold */
/* h3 {
  font-weight: bold;
} */

/* Forum "staff" line */
.author-pane-line.author-is-staff {
  padding-left: 1px;
}

.author-pane-line.author-is-staff .staff {
  color: #DD6666;
}

.page-forum #forum td.last-reply {
  width: 190px;
  text-align: right;
}

#footer-wrapper {
  width: 960px;
  margin: 0pt auto;
}

#gt-wrapper {
  float: right;
  text-align: right;
  position: relative;
  margin-bottom: -20px;
  top: -24px;
}

.node-type-project .node .submitted,
.node-type-project-update .node .submitted {
  display: block;
  margin-bottom: 1em;
}

#forum-statistics {
  margin: 1em 0 1em 0;
}

#forum-statistics-header {
  font-weight: bold;
}

#forum-statistics-active-body,
#forum-statistics-statistics-body {
  margin-left: 1em;
}

.view-id-forum_directory .views-table {
  width: 100%;
  margin: 1em 0 2em 0;
}

.view-id-forum_directory td.views-field {
  padding: 2px 2px 2px 4px;
}

.view-id-forum_directory td.active {
  background-color: #FCFCFC;
}

.page-forums .div-bg.width-320-pad.right-margin {
  display: none;
}

.author-pane-line.author-name {
  overflow: hidden;
}

#forum-directory-link {
  margin-bottom: 1em;
}

.view-id-user_posts .view-content .views-row,
.view-id-user_all_comments .view-content .views-row {
  margin-bottom: 1em;
}

.view-id-user_posts .view-content .views-field-body,
.view-id-user_all_comments .view-content .views-field-comment {
  margin: 0.25em 0 0 1em;
}

.view-id-user_posts label.views-label-tid,
.view-id-user_all_comments label.views-label-title,
.view-id-user_all_comments label.views-label-timestamp {
  font-style: italic;
}

.view-id-user_all_comments .view-header h2 {
  margin-top: 1em;
}

.view-id-user_posts .view-header h2,
.view-id-user_all_comments .view-header h2 {
  font-size: 1.2em;
}

#logout {
  float: right;
  margin-left: 1.25em;
  position: relative;
  top: 1px;
}

#logout span {
  background: url("/inc/images/crumb_sprite.png") no-repeat scroll left top transparent;
  display: block;
  float: left;
  height: 23px;
  width: 4px;
}

#logout a {
  background: url("/inc/images/crumb_sprite.png") no-repeat scroll right top transparent;
  color: #FFFFFF;
  display: block;
  height: 16px;
  padding: 3px 8px 4px 4px;
  float: left;
}

#logout a:active, #logout a:hover {
  border: 0 none;
  text-decoration: underline;
}

/* Rules for #search revisions, implement back against site.css WTP */

#search-wrapper {
  right: 11px;
}

#search-wrapper #search-theme-form {
  width: auto;
  float: right;
}

#search-wrapper #search input.form-submit {
  display: inline; /* special consideration for integration */
  width: auto;
  height: 23px;
  padding: 2px 6px 5px; 
  background: url("/inc/images/bg_search_btn.png") no-repeat scroll right top transparent;
  color: #FFFFFF;
  cursor: pointer;
  margin-left: 0.5em;
  position: relative;
  top: 1px;
}

#search-wrapper #search input.form-submit:hover {
  text-decoration: underline; /* Doesn't work, will need JS :( */
}

#search-wrapper #edit-search-theme-form-1-wrapper {
  display: inline;
}

#search-wrapper #search {
  width: auto;
}

#sub-menu ul.six li a {
  width: 89px;
}

/* Improve appearance of photo gallery pages */

.view-founders-page .views-row, 
.view-board-page .views-row,
.view-ai-who-page .views-row,
.view-rc-who-page .views-row,
.view-em-grad-who-page .views-row,
.view-em-pi-who-page .views-row {
  margin-top: 1em;
  clear: left;
}

.view-founders-page .views-row .views-field-picture, 
.view-board-page .views-row .views-field-picture,
.view-ai-who-page .views-row .views-field-picture,
.view-rc-who-page .views-row .views-field-picture,
.view-em-grad-who-page .views-row .views-field-picture,
.view-em-pi-who-page .views-row .views-field-picture {
  float: left;
  width: 120px;
}

.view-founders-page .views-row .views-field-name, 
.view-board-page .views-row .views-field-name,
.view-ai-who-page .views-row .views-field-name,
.view-rc-who-page .views-row .views-field-name,
.view-em-grad-who-page .views-row .views-field-name,
.view-em-pi-who-page .views-row .views-field-name {
  margin-left: 135px;
  font-size: 1.3em;
}

.view-founders-page .views-row .views-field-value-1, 
.view-board-page .views-row .views-field-value-1,
.view-ai-who-page .views-row .views-field-value-1,
.view-rc-who-page .views-row .views-field-value-1,
.view-em-grad-who-page .views-row .views-field-value-1,
.view-em-pi-who-page .views-row .views-field-value-1 {
  margin-left: 135px;
  font-style: italic;
}

/*
.view-em-pi-who-page .views-row .views-field-value-1 {
  
}
*/
.view-founders-page .views-row .views-field-value, 
.view-board-page .views-row .views-field-value,
.view-ai-who-page .views-row .views-field-value,
.view-rc-who-page .views-row .views-field-value,
.view-em-grad-who-page .views-row .views-field-value,
.view-em-pi-who-page .views-row .views-field-value {
  margin-left: 145px;
  margin-top: 0.25em;
}

/* News item higlighting */
.view-frontpage-news .news-highlight {
  background-color: #F8FBFB;
  border: 1pt dotted grey;
  font-size: 14px;
  padding: 0.5em;
}

#text-page #content .view-id-frontpage_news.view-display-id-page li {
  list-style: none inside none;
  margin: 0 0 20px 0;
}
#text-page #content .view-id-frontpage_news.view-display-id-page h3 {
  margin: 0;
  font-size: 1.1em;
}
#text-page #content .view-id-frontpage_news.view-display-id-page p {
  margin: 0 0 0 1em;
}
#text-page #content .view-id-frontpage_news.view-display-id-page p.details {
  color: #7C7C7C;
  margin: 0;
}
