/* PMACS Web Team: Layout reset for Gridism (combination of base.css from Skeleton (www.getskeleton.com) and http://github.com/necolas/normalize.css)
   Version 1.0
   March 2015

   Table of Contents
==================================================
    #Layout Base
    #Typography 
    #Images
    #Forms + Buttons
    #Misc 
*/

/* ==========================================================================
   Layout Base
   ========================================================================== */

html, 
body {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline; 
    }

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
main {
    display: block;
}

/* Corrects `inline-block` display not defined in IE6/7/8/9 + FF3 */

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

/*
 * Prevents modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS5 devices.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}


/* ==========================================================================
   Typography
   ***REM conversions***
    Where 16px is the base font size: (target font size) / 16) = REM value

    36px 2.25rem
    34px 2.125rem
    32px 2rem
    28px 1.75rem
    26px 1.625rem
    24px 1.5rem
    22px 1.375rem
    20px 1.25rem
    18px 1.125rem
    16px 1rem
    14px 0.875rem
    12px 0.75rem
    10px 0.625rem
    08px 0.5rem

    ***Determining Line Height***
    Use the Golden Ratio Typography Calculator to best estimate the correct line height. 
    May vary based upon font choice. 
    http://www.pearsonified.com/typography/
    */
   ========================================================================== */

html {
    -webkit-text-size-adjust: none; /*Prohibits text sizes from changing when viewed on iPhones in "Landscape View".*/
    font-size: 100%; /*Base font default, 1REM = 16px */
    }

body {
    font-size: 14px; font-size: 0.875rem;
    line-height: 26px;
    }

h1, h2, h3, h4, h5, h6, p, blockquote, pre, code, kbd, samp, small, sub, sup {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    }

h1 {
    font-size: 32px; font-size: 2rem;
    line-height: 45px;
    }

h2 {
    font-size: 28px; font-size: 1.75rem;
    line-height: 41px;
    margin-bottom: 10px;
    }

h3 {
    font-size: 24px; font-size: 1.5rem;
    line-height: 36px;
    margin-bottom: 10px;
    }

h4 {
    font-size: 22px; font-size: 1.375rem;
    line-height: 34px;
    margin-bottom: 10px;
    }

h5 {
    font-size: 20px; font-size: 1.25rem;
    line-height: 32px;
    margin-bottom: 10px;
    }

h6 {
    font-size: 18px; font-size: 1.125rem;
    line-height: 30px;
    margin-bottom: 10px;
    }

p {
    font-size: 14px; font-size: 0.875rem;
    line-height: 26px;
    margin-bottom: 10px;
    }

cite {
    font-style: italic;
    }

blockquote {
    background-color: #FAFAFA;
    padding: 10px;
    margin-bottom: 20px;
    }

blockquote, q {
    quotes: none;
    }

blockquote:before, blockquote:after, q:before, a:after {
    content: '';
    content: none;
    }

blockquote p {
    font-size: 14px; font-size: 0.875rem;
    line-height: 26px;
    margin-bottom: 10px;
    }

blockquote cite {
    font-size: 12px; font-size: 0.75rem;
    line-height: 24px;
    margin-bottom: 5px;
    display: inline-block;
    }

blockquote cite:last-of-type {
    margin-bottom: 0;
    }

ul {
    list-style: disc outside;
    padding: 0;
    margin: 0 0 20px 0;
    }

ol {
    list-style-position: outside;
    padding: 0;
    margin: 0 0 20px 0;
    }

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

ul li, ol li {
    margin: 5px 0;
    }

a, a:visited {
    word-wrap: break-word;
    text-decoration: none;

    -ms-transition:.3s;
    -moz-transition:.3s;
    -webkit-transition:.3s;
    transition:.3s;
    }

a:hover {
    color: inherit;
    }

strong, b {
    font-weight: 600;
    }

em, i {
    font-style: italic;
    }

sub {
    font-size: 10px; font-size: 0.6275rem;
    position: relative;
    bottom: -0.25rem;
    }

sup {
    font-size: 10px; font-size: 0.6275rem;
    position: relative;
    top: -0.5rem;
    }

small {
    font-size: 12px; font-size: 0.75rem;
    line-height: 25px;
    }

pre {
    background-color: #FCFCFC;
    padding: 10px 10px 0;
    }

pre samp, pre code, code {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px; font-size: 0.75rem;
    line-height: 18px;
    padding: 10px 0;
    }

h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
    font-size: inherit;
    }

kbd {
    font-weight: bold;
    font-size: 14px; font-size: 0.875rem;
    }

hr {
    border: solid #ddd;
    border-width: 1px 0 0;
    margin: 25px 0;
    height: 0;
    clear: both;
    }

/* ==========================================================================
   Images
   ========================================================================== */

/*
 * 2. Improves image quality when scaled in IE7.
 *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */

img {
    -ms-interpolation-mode: bicubic; /* 2 */
    }

img, 
audio,
canvas,
video {
    max-width: 100%;
    height: auto;
    }

iframe {
    max-width: 100%;
    }

/*
 * Corrects overflow displayed oddly in IE9.
 */

svg:not(:root) {
    overflow: hidden;
    }

/*
 * Addresses margin not present in IE6/7/8/9, S5, O11.
 */

figure {
    margin: 0;
    }

figcaption {
    font-size: 14px; font-size: 0.875rem;
    line-height: 26px;
    }

/* ==========================================================================
   Forms and Buttons
   ========================================================================== */

/*
 * Corrects margin displayed oddly in IE6/7.
 */

form {
    margin: 0;
    }

/*
 * 1. Corrects color not being inherited in IE6/7/8/9.
 * 2. Corrects text not wrapping in FF3.
 * 3. Corrects alignment displayed oddly in IE6/7.
 */

legend {
    border: 0; /* 1 */
    padding: 0;
    white-space: normal; /* 2 */
    *margin-left: -7px; /* 3 */
    }

/*
 * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome.
 * 3. Improves appearance and consistency in all browsers.
 */

button,
input,
select,
textarea {
    margin: 0; /* 2 */
    vertical-align: baseline; /* 3 */
    *vertical-align: middle; /* 3 */
    max-width: 100%;
    }

/*
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Corrects inability to style clickable `input` types in iOS.
 * 3. Improves usability and consistency of cursor style between image-type
 *    `input` and others.
 * 4. Removes inner spacing in IE7 without affecting normal text inputs.
 *    Known issue: inner spacing remains in IE6.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 =======SHOULD THIS BE SET TO NONE?????========= */
    cursor: pointer; /* 3 */
    *overflow: visible;  /* 4 */
    }

/*
 * Re-set default cursor for disabled elements.
 */

button[disabled],
input[disabled] {
    cursor: default;
    }

/*
 * 2. Removes excess padding in IE8/9.
 * 3. Removes excess padding in IE7.
 *    Known issue: excess padding remains in IE6.
 */

input[type="checkbox"],
input[type="radio"] {
    padding: 0; /* 2 */
    *height: 13px; /* 3 */
    *width: 13px; /* 3 */
    }

/*
 * 1. Addresses `appearance` set to `searchfield` in S5, Chrome.
 */

input[type="search"] { 
    -webkit-appearance: textfield; /* 1 */ 
    }

/*
 * Removes inner padding and search cancel button in S5, Chrome on OS X.
 */

input[type="search"]::-webkit-search-cancel-button, 
input[type="search"]::-webkit-search-decoration { 
    -webkit-appearance: none; 
    }

/*
 * Removes inner padding and border in FF3+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
    /*border: 0;*/
    padding: 0;
    }

/*
 * 1. Removes default vertical scrollbar in IE6/7/8/9.
 * 2. Improves readability and alignment in all browsers.
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
    }

/* ==========================================================================
   Tables
   ========================================================================== */

/*
 * Remove most spacing between table cells.
 */

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 20px 0;
    clear: both;
    table-layout: fixed;
    }

table tr, table td {
    border: 1px solid #fff;
    padding: 10px; 
    background-color: #eee;
    }

table th {
    background-color: #ddd;
    text-align: left;
    border: 1px solid #eee;
    padding: 10px;
    font-weight: 600;
    }

/* ==========================================================================
   MISC: Clearing, floats, text-align, icons
   ========================================================================== */

/* Clearing (from Skeleton - skeleton.css) You can also use a <br class="clear" /> to clear columns */
.clear {
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
    }

.left {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 100%;
}

.right {
    float: right;
    margin: 0 0 15px 15px;
    }

.center {
    text-align: center;
    margin: 20px 0;
    }

/* Inline floating margins */

figure[style^='float:right'], img[style^='float:right'] {
  margin: 0 0 25px 25px;
}

figure[style^='float:left'], img[style^='float:left'] {
  margin: 0 25px 25px 0;
}

/* Automatically add FontAwesome icons to document links */

a[href$=".pdf"]:after {
    font-family: 'FontAwesome';
    font-weight: 400;
    content: '\f1c1'; /*PDF*/
    padding: 0 0 0 3px;
    }

a[href$=".xls"]:after, a[href$=".xlsx"]:after {
    font-family: 'FontAwesome';
    font-weight: 400;
    content: '\f1c3'; /*SPREADSHEET*/
    padding: 0 0 0 3px;
    }

a[href$=".doc"]:after, a[href$=".docx"]:after {
    font-family: 'FontAwesome';
    font-weight: 400;
    content: '\f1c2'; /*WORD DOC*/
    padding: 0 0 0 3px;
    }

a[href$=".ppt"]:after, a[href$=".pptx"]:after {
    font-family: 'FontAwesome';
    font-weight: 400;
    content: '\f1c4'; /*POWERPOINT*/
    padding: 0 0 0 3px;
    }

/* Automatically add FontAwesome icons to phone and email links */

footer a[href^='mailto:']:before, footer a[href^='tel:']:before {
   content: none;
   }

a[href^='mailto:']:before {
    font-family: 'FontAwesome';
    font-weight: 400;
    content: '\f199'; /*ENVELOPE*/
    padding: 0 3px 0 0;
    }

a[href^='tel:']:before {
    font-family: 'FontAwesome';
    font-weight: 400;
    content: '\f098'; /*PHONE*/
    padding: 0 3px 0 0;
    }
