/*
 * @file
 * Print Styles
 * This probably needs work, but it's a good starting point.
 */

 /* Search for "SPG" to find sections added/edited by Shane Greene in 2016 */

/*
 * Body
 */

/* Added by SPG 3-10-16 */
 * {
  margin:0;
}

.field-item {
  width: 95% !important;
}

/* End added by SPG 3-10-16 */

body {
  width: 100% !important;
  margin: 0.5cm !important;
  padding: 0 !important;
  line-height: 1.4;
  word-spacing: 1.1pt;
  letter-spacing: 0.2pt;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  color: black;
  background: none;
  font-size: 11pt;
}

/*
 * Links
 */
a {
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  color: #0000ee;
}
a[href^="http://"]:after, a[href^="http://"]:visited:after {
  content: "(" attr(href) ")";
  font-size: 10pt;
}

/*
 * Strip background from likely candidates
 */
div[id*="wrapper"],
[class*="title"],
[class*="inner"],
header,
footer,
#branding,
#container,
#columns,
.columns-inner,
#content-column,
.content-inner,
.region,
.region-header,
.region-content,
.article,
.article-title,
.article-content,
.comment,
.comment-title,
.comment-content,
.block,
.block-inner,
.block-title,
.block-content,
table,
table * {
  background: none !important;
}

/*
 * Hide various bits of the page
 */
#block-block-4,
#block-block-5,
#block-block-6,

/* Added by SPG 3-10-16 */
#block-block-29,
.mailto,
.views-slideshow-controls-bottom,
.field-name-field-download-image,
.field-name-field-inline-image,
.overlay-displace-top,
#toolbar,
.views-field-field-download-image,
.field-name-field-video,
/* end added by SPG */

footer a[href^="http://regents"],
footer a[href^="http://www.policy"],
footer a[href*="web-accessibility"],
footer a[href="mailto:oceanographics@msi.ucsb.edu"],
#block-views-tweet-feed-block-1,
#block-search-form,
#block-views-main-category-title-block-1,
#tertiary-content-wrapper,
.field-name-field-download-image,
.rate-widget,
.sidebar,
#breadcrumb,
.nav,
.field-type-taxonomy-term-reference,
ul.links,
.feed-icon,
.poll .bar,
.poll .foreground,
.comment-form,
#comment-form,
.book-navigation,
.tabs,
.action-links,
.pager,
.messages,
.help {
  display: none;
  margin:0;
}

/*
 * Ensure the display the main content region
 */
#content {
  display: block !important;
}

/*
 * Layout
 */
#header {
  margin-bottom: 20px;
}

.content-inner {
  margin: 0 !important;
  padding: 0 !important;
}

/* Added by SPG 3-10-16 */
.field-name-body {
  z-index: 5;
}

#block-block-3 {
  background-color: #18335d !important;
  color: #fff !important;
  padding: 15px 15px 15px 25px;
}

#block-block-3 a {
  color: #18335d !important;
}

.statistics_counter {
  color:#fff;
}

/* End added by SPG 3-10-16 */

/*
 * HTML elements
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333333;
  margin: 0;
  padding: 0;
  line-height: 1;
}

h1 {
  font-size: 14pt;
}

h2 {
  font-size: 13pt;
}

h3 {
  font-size: 12pt;
}

h4,
h5,
h6 {
  font-size: 11pt;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
#site-name a,
#site-slogan {
  text-decoration: none !important;
  color: #333333;
}

hgroup a:link, hgroup a:visited {
  text-decoration: none;
}

#page-title {
  margin-top: 20px;
}

pre,
code,
tt,
samp,
kbd,
var {
  font-size: 10pt;
  font-family: Consolas, "Lucida Console", Menlo, Monaco, "DejaVu Sans Mono", monospace, sans-serif;
}

blockquote {
  margin: 20px;
  padding: 10px;
  font-size: 10pt;
  font-style: italic;
  background: #eeeeee;
}

hr {
  background-color: #666666;
}

/*
 * Header, Logo, Site name
 */
#header {
  padding-bottom: 20px;
}

#logo img {
  padding: 0 10px 0 0;
  margin: 0 !important;
  float: none !important;
}

/*
 * Images
 */
img {
  float: left;
  margin: 4px 20px 10px 0;
  page-break-inside: avoid;
}

a img {
  border: none;
}

/* Added by SPG 3-10-16 */
/* Reduce the size of the lead image */
.image-style-article-horizontal,
.image-style-slideshow-image,
.field-name-field-main-image,
.field-name-field-slideshow-embed,
.view-slideshows {
  width: 220px;
}

.field-name-field-slideshow-embed {
display:none;
}

.field-name-field-caption {
  width:600px;
}

.field-name-field-credit {
  width:700px;
}

.field-name-field-credit h2, 
.field-name-field-credit div, 
.field-name-field-credit figure {
display:inline;
font-size: 11pt;
line-height:1.4px;
margin:0;
padding:0;
}

.field-content {
  width: 100%;
}
/* End Added by SPG 3-10-16 */

/*
 * Tables
 */
table {
  margin: 1px;
  text-align: left;
}

th {
  border-bottom: 1px solid #333333;
  font-weight: 700;
}

td {
  border-bottom: 1px solid #333333;
}

th,
td {
  padding: 4px 10px 4px 0;
}

tfoot {
  font-style: italic;
}

caption {
  margin-bottom: 10px;
  text-align: left;
}

thead {
  display: table-header-group;
}

tr {
  page-break-inside: avoid;
}

/*
 * Forms
 */
form {
  margin-bottom: 10px;
}

/*
 * Poll module
 */
.poll .text,
.poll .percent,
.poll .total {
  text-align: left;
}
.poll form {
  margin-bottom: 0;
}

/*
 * Articles
 */
.node,
.comment {
  margin-bottom: 20px;
  overflow: hidden;
  page-break-inside: avoid;
}

.submitted {
  color: #666666;
  text-decoration: none;
  font-size: 9pt;
  font-weight: 400;
  margin: 0;
  padding: 0;
}
.submitted a {
  color: #666666;
  text-decoration: none;
  font-size: 9pt;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/*
this doesn't work so well. It's better to just show the article after the images.
.field-type-image {
  float: left;
}
*/
