

/*

Reference: http://www.smashingmagazine.com/2015/01/07/designing-for-print-with-css/

*/

/* Hyperlinks: stop Foundation printing out the URLs */

a[href*="/"]:after, a[href*="/"]:visited:after, a[href]:after, a[href]:visited:after {content: normal !important;}

img { display: inline-block; }

/* Hide things ___________________ */

body { border: none; padding: 2rem;  }

#shiftnav-toggle-main, .shiftnav, header.contain-to-grid, #sidebar, .toolbox, footer .social, footer ul.menu,
footer .credits { display: none; }

.menu-wrapper, .search, #sidebar-right, div.social, div.directories, div.footer-right { display: none; }

/*
fix the links
*/

/* Show things _____________________ */

.show-for-print, .accordion .content { display: block !important; }

#printheader { font-size: 36px; font-weight: bold; }

/* Change things _________________ */

.accordion { padding-left: 0.9375rem; padding-right: 0.9375rem; }

.contact a { text-decoration: none; }
.columns.credits { float: left; text-align: left; }
.ecc-logo { text-align: center; width: 100% !important; }
.buffer { padding: 0; }
.rlborder { border: 0; }
.footer-left { width: 100% !important; }



@page {
  size: A4 landscape;
}

@page :left {
  margin-left: 3cm;
}

@page :right {
  margin-left: 3cm;
}

@page :first {

}

h1, h2, h3, h4, h5 {
  page-break-after: avoid;
}

table, figure {
  page-break-inside: avoid;
}

/* Add title and page numbering to header and footer */

@page:right{
  @bottom-right {
     content: "Page " counter(page) " of " counter(pages);
  }
}

@page:left{
  @bottom-left {
     content: "Page " counter(page) " of " counter(pages);
  }
}

h1 { 
  string-set: doctitle content(); 
}

@page :right {
  @top-right {
    content: string(doctitle);
    margin: 30pt 0 10pt 0;
    font-size: 8pt;
  }
}



