/**
 * Typography & Text styles
 */

* {
  -webkit-font-smoothing: antialiased;
}

/* html is set to 62.5% so that all the REM measurements are based on 10px sizing. So basically 1.5rem = 15px */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  color: #222;
}

/* AANDRU-127 - Crimson Text Overrides */

/* This is here right now because i think
   it's about to get larger, in which we'll move
   this immediately */
*.crimson,
h1,
h2,
.issue-toc a.highwire-cite-linked-title,
.issue-toc h2,
.highwire-citation-aan-article-title-complete h1,
.highwire-citation-aan-article-title-complete h2.highwire-cite-subtitle,
.hw-article .panels-ajax-tab-wrap-drupal_pub_aan_tab_art .highwire-markup,
.pane-style-alt3-content > h2,
.pane-style-alt3-content .highwire-cite-linked-title,
.pane-drupal-pub-aan-tab-elets > h2,
.view-aan-featured-article-feed-items .field-name-field-aan-feat-art-display-title a,
.node--featured-article .node--featured-article__title a,
.highwire-citation-aan-list-complete a.highwire-cite-linked-title,
.highwire-citation-jcore-list-compact a.highwire-cite-linked-title,
.field-name-field-aan-feat-post-heading,
.field-name-field-aan-feat-post-title a,
.field-name-field-aan-feat-pod-heading,
.node--featured-podcast__title a,
.node--featured-survey__title a,
.pane-featured-surveys-past a,
.highwire-article-citation .highwire-cite > div.highwire-cite-title,
.highwire-article-citation .highwire-cite > .highwire-cite-linked-title {
  font-family: 'Crimson Text', serif;
}
/*Open Sans Overrides */
.field-name-field-aan-feat-post-heading,
.field-name-field-aan-feat-pod-heading,
.node--featured-survey__header,
.pane-highwire-solr-widget h2,
.pane-aan-practice-current .content-wrapper h2,
.pane-aan-social-media-links h2.pane-title {
  font-family: 'Open Sans', sans-serif;
}
div.uppercase-heading,
div.field-name-field-aan-feat-post-heading,
div.field-name-field-aan-feat-pod-heading {
  font-size: 1.5rem;
}
/* AANDRU-179 - Increase font size in article
   body to 19px */
.hw-article .panels-ajax-tab-wrap-drupal_pub_aan_tab_art .highwire-markup {
  font-size: 1.9rem;
}
/**
 * Links
 */
a {
  font-weight: normal;
  text-decoration: none;
}
a:focus {
  outline: thin dotted;
}
/* There are a lot of elements the pub can edit,
   this exposes them w/o needing to hover */
.panel-pane a,
a.contextual-links-trigger {
  display: inline-block;
}
small {
  font-size: 75%;
}

/* AANDRU-327: Setting creative commons links to inline instead of inline-block; */
.panel-pane a[rel="license"] {
  display: inline;
}

/**
 * Headings
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
  text-rendering: optimizeLegibility; /*  voodoo to enable ligatures and kerning | https://developer.mozilla.org/en-US/docs/CSS/text-rendering */
  color: #222222;
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300;
}
div[class*="pane-style-primary-content-"] > h2,
div[class*="pane-style-primary-content-"] .node > h2 {
  margin-bottom: 0;
}

h1 { font-size: 4rem; line-height: 1.25; letter-spacing: -.1rem; font-weight: 600; }
h2 { font-size: 2.5rem; line-height: 1.3;  letter-spacing: -.1rem; font-weight: 600; }
h3,h2.ctools-collapsible-handle { font-size: 2rem; line-height: 1.35; letter-spacing: -.08rem; font-weight: 600; }
h4 { font-size: 1.7rem; line-height: 1.5;  letter-spacing: -.05rem; font-weight: 600; }
h5 { font-size: 1.4rem; line-height: 1.6;  letter-spacing: 0; font-weight: 600; }
h6 { font-size: 1.2rem; line-height: 1.6;  letter-spacing: 0; font-weight: 600; }

footer h2 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; font-weight: 600; }
.zone-footer-third-wrapper ul.menu a { font-weight: 600; }
/**
 * Paragraphs
 */
p {
  margin: 0 auto 1.5em auto; /* bottom margin for paragraphs */
}
p + p {

}

/**
 * Quotes & Blockquotes
 */
q {
  quotes: '\00201C' '\00201D';
}
q:before {
  content: open-quote;
}
q:after {
  content: close-quote;
}

blockquote {
  background-color: #F8F8F8;
  border-left: 2px solid #AFC0D2;
  margin: 1em 3em;
  padding: .75em 1em;
}
blockquote p:last-child {
  margin-bottom: 0;
}

/* Size adjustments */
.node--featured-item__sub_text {
  font-size: 1.1rem;
}
.region-header,
.node--featured-item__authors {
  font-size: 1.2rem;
}
.node--featured-item__title {
  font-size: 1.6rem;
}
.zone-hero .hw-umb-hero-snippet {
  font-size: 2rem;
}
/* Bold Items */
.fieldset-legend a,
.pane-hw-umb-in-the-news a,
.region-branding .row .region-header a,
.list--featured-content > li a,
.pane-hw-umb-in-the-news .field-name-field-publication-title,
.highwire-cite-metadata-oa-ind,
.highwire-citation-highwire-article-top-a .highwire-cite-metadata-art-cat,
.pane-aan-art-tools a {
  font-weight: 600;
}

/* Uppercase Items */
.highwire-cite-metadata-oa-ind,
.highwire-cite-metadata-art-cat {
  text-transform: uppercase;
}

/**
 * Horizontal lines
 */
/* https://css-tricks.com/examples/hrs/ */
hr {
    border: 0;
    height: 1px;
    margin:2em auto;
    width:85%;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0));
}
hr.thin {
  margin: 10px auto;
}
hr.collapse-margin {
  margin: 0 auto;
}

/* separator */
.separator-pipe {
  border-left-style: solid;
  border-left-width: 1px;
  margin: 0 5px;
}

/* Overrides*/
.pane-highwire-solr-widget h2,
.pane-aan-practice-current .content-wrapper h2 {
  font-size: 1.5rem; /* currently ems cause chrome bug misinterpreting rems on body element */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}
.pane-aan-social-media-links h2.pane-title {
  margin-bottom: 0;
  text-transform: uppercase;

}
/* Italics */
.pane-aan-homepage-featured-articles h2.pane-title {
  font-style: italic;
}


/* Utility Typography Classes */
.all-caps {
  text-transform: uppercase;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.font-normal,
.font-normal a,
.font-normal ul.menu a {
  font-weight: normal;
}

.font-bold,
.font-bold a,
a.font-bold,
.font-bold ul.menu a,
a.cookie-footer-link {
  font-weight: 600;
}
.text-large,
.issue-list-month {
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: -.1rem;
  font-weight: 600;
}
.text-largest {
  font-size: 2.5rem;
  line-height: 1.3;
  letter-spacing: -.1rem;
  font-weight: 600;
}

.text-crimson-largest {
  font-size: 3.5rem;
  line-height: 1.3;
  letter-spacing: -.1rem;
  font-weight: 600;
}

/* SF01110176 increasing default text size and line height on eletters */
.highwire-article-citation .highwire-cite.highwire-comment-node-view > div {
  font-size: 1.5rem;
  line-height: 1.5;
}

/* AAN2B-4: subtitle font size for related and most read / cited */
.highwire-citation-jcore-standard-title-only a.highwire-cite-linked-title > .highwire-cite-subtitle {
  font-size: 1.5rem;
  line-height: 1em;
}
.highwire-citation-jcore-standard-title-only a.highwire-cite-linked-title > .highwire-cite-title {
  line-height: 1em;
  display: block;
}

/* AAN2B-3: change h1 subscrips and superscripts */
h1 sup,
h1 sub,
h1 .nlm-sup,
h1 .nlm-sub {
  font-size: 2rem;
}
