/*  Stylesheet for NLM/NCBI  Journal Publishing 3.0 Preview HTML
    January 2009

    ~~~~~~~~~~~~~~
    National Center for Biotechnology Information (NCBI)
    National Library of Medicine (NLM)
    ~~~~~~~~~~~~~~
    
This work is in the public domain and may be reproduced, published or 
otherwise used without the permission of the National Library of Medicine (NLM).

We request only that the NLM is cited as the source of the work.

Although all reasonable efforts have been taken to ensure the accuracy and 
reliability of the software and data, the NLM and the U.S. Government  do 
not and cannot warrant the performance or results that may be obtained  by
using this software or data. The NLM and the U.S. Government disclaim all 
warranties, express or implied, including warranties of performance, 
merchantability or fitness for any particular purpose.

*/


/* --------------- Page setup ------------------------ */

/* page and text defaults */

/* body { margin-left: 8%;
     margin-right: 8%;
     background-color: #f8f8f8 } */


div > *:first-child { margin-top:0em }

/* div { margin-top: 0.5em } */

/* div.tam-front, div.tam-footer { } */

/* .tam-back, .tam-body { font-family: serif } */

/* div.tam-metadata { font-family: sans-serif } */
div.tam-centered { text-align: center }

div.tam-table { display: table }
div.tam-metadata.tam-table { width: 100% }

/* div.tam-metadata.tam-two-column.tam-table {
	max-width: 700px;
	margin: 0 auto;
} */
div.tam-row { display: table-row }
div.tam-cell { display: table-cell; /* padding-left: 0.25em; padding-right: 0.25em */ }

div.tam-metadata div.tam-cell {
    vertical-align: top }

div.tam-two-column > div.tam-cell {
    width: 50% }

div.tam-one-column div.tam-cell.tam-spanning { width: 100% }

div.tam-metadata-group { margin-top: 0.5em;
  font-size: 75% }

div.tam-metadata-group > p, div.tam-metadata-group > div { margin-top: 0.5em }

div.tam-metadata-area * { margin: 0em }

div.tam-metadata-chunk { margin-left: 1em }

div.tam-branding { text-align: center }

div.tam-document-title-notes {
   text-align: center;
   width: 60%;
   margin-left: auto;
   margin-right: auto
   }

div.tam-footnote { font-size: 90% }

/* rules */
hr.tam-part-rule {
    border: thin solid black;
    width: 50%;
    margin-top: 1em;
    margin-bottom: 1em;
    }

hr.tam-section-rule {
    border: thin dotted black;
    width: 50%;
    margin-top: 1em;
    margin-bottom: 1em;
    }

/* superior numbers that are cross-references */
.xref {
    color: red;
    }
    
/* generated text */     
.tam-generated { color: gray; }

.tam-warning, tex-math {
    font-size:80%; font-family: sans-serif }

.tam-warning {
    color: red }

.tam-tex-math { color: green }

.tam-data {
    color: black;
    }

.formula {
    font-family: sans-serif;
    font-size: 90% }
    
/* --------------- Titling levels -------------------- */


/* h1, h2, h3, h4, h5, h6 {
   display: block;
   margin-top: 0em;
   margin-bottom: 0.5em;
   font-family: helvetica, sans-serif;
   font-weight: bold;
   color: midnightblue;
  } */

/* titling level 1: document title */
.tam-document-title {
   text-align: center;
   }

/* callout titles appear in a left column (table cell)
   opposite what they head */
.tam-callout-title { text-align: right;
  margin-top: 0.5em;
  margin-right: 1em;
  /* font-size: 140% */ } 
  


div.tam-section, div.tam-back-section {
  margin-top: 1em; margin-bottom: 0.5em }

div.tam-panel { background-color: white;
  font-size: 90%;
  border: thin solid black;
  padding-left: 0.5em; padding-right: 0.5em;
  padding-top: 0.5em; padding-bottom: 0.5em;
  margin-top: 0.5em; margin-bottom: 0.5em }

/* Table-wrap panels specifically get responsive/scrollable table handling.
   The real // elements had no CSS at all before this --
   on a narrow viewport the browser's default auto layout tries to fit
   every column at full content width, overflowing the panel and
   breaking the surrounding page layout. This lets the table scroll
   horizontally within its own box instead. */
div.tam-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

div.tam-table-wrap table {
	width: 100%;
	border-collapse: collapse;
}

div.tam-table-wrap th,
div.tam-table-wrap td {
	padding: 4px 8px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

@media (max-width: 600px) {
	div.tam-table-wrap {
		font-size: 0.85em;
	}
	div.tam-table-wrap table {
		width: auto;
		min-width: 100%;
	}
	div.tam-table-wrap th,
	div.tam-table-wrap td {
		padding: 3px 6px;
		white-space: nowrap;
	}
}

/* ---------------- Images: keep within the browser view ------------------
   This one file serves two delivery paths:
     - Abstract compilations: standalone HTML (no WordPress theme) with this
       file linked beside it on the server.
     - Regular articles: merged into a WordPress page, with this CSS pasted
       into the page settings.
   Every rule below is scoped to figure markup, so none of it can reach the
   theme, and none of it depends on a <body> rule (the theme owns that). */

/* BOTH article types: a figure is never wider than the column it sits in. */
div.tam-fig img {
	max-width: 100%;
	height: auto;
}

/* ABSTRACT COMPILATIONS ONLY: the XSL wraps these images in a.tam-image-link
   (regular articles never are), so this block cannot affect a regular article.
   Also never taller than the browser window; the link opens the full-size
   image in a new tab for dense figures. 90vh is the one knob to adjust. */
a.tam-image-link { display: inline-block; max-width: 100%; }
a.tam-image-link img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	border: 0;
}

/* OPTIONAL, regular articles: also cap figure height to the browser window.
   Off by default because regular-article figures have no click-through to a
   full-size copy. Remove the comment markers to enable.
div.tam-fig img {
	max-height: 90vh;
	width: auto;
}
*/

div.tam-blockquote { font-size: 90%;
  margin-left: 1em; margin-right: 1em;
  margin-top: 0.5em; margin-bottom: 0.5em }

div.tam-caption {
  margin-top: 0.5em; margin-bottom: 0.5em }

div.tam-speech {
  margin-left: 1em; margin-right: 1em;
  margin-top: 0.5em; margin-bottom: 0.5em }

div.verse-group {
  margin-left: 1em;
  margin-top: 0.5em; margin-bottom: 0.5em }

div.verse-group div.verse-group {
  margin-left: 1em;
  margin-top: 0em; margin-bottom: 0em }

div.tam-note { margin-top: 0em; margin-left: 1em;
  font-size: 85% }

.tam-ref-label { margin-top: 0em; vertical-align: top }

/* p.tam-contrib-list {
	max-width: 700px;
	margin: 0.5em auto;
	text-align: center;
	line-height: 1.6;
} */

div.tam-ref-list.tam-table {
	width: 100%;
	table-layout: fixed;
}
div.tam-ref-label.tam-cell { width: 2.5em; }
div.tam-ref-content.tam-cell { width: auto; }

.tam-ref-content { margin-top: 0em; /* padding-left: 0.25em */}

h5.tam-label { margin-top: 0em; margin-bottom: 0em }

/* p { margin-top: 0.5em; margin-bottom: 0em } */

p.tam-first { margin-top: 0em }

p.tam-verse-line, p.tam-citation { margin-top: 0em; margin-bottom: 0em; /* margin-left: 2em; text-indent: -2em */ }

p.tam-address-line { margin-top: 0em; margin-bottom: 0em; margin-left: 2em }

ul, ol { margin-top: 0.5em }

li { margin-top: 0.5em; margin-bottom: 0em }
li > p { margin-top: 0.2em; margin-bottom: 0em  }

div.tam-def-list { border-spacing: 0.25em }

div.tam-def-list div.tam-cell { vertical-align: top;
  border-bottom: thin solid black;
  padding-bottom: 0.5em }

div.tam-def-list div.tam-def-list-head {
  text-align: left }

/* text decoration */
.tam-label { font-weight: bold; font-family: sans-serif; /* font-size: 80% */ }

.monospace {
	font-family: monospace;
	}

.overline{
	text-decoration: overline;
	}
 
a       { text-decoration: none }
a:hover { text-decoration: underline }

/* ---------------- End ------------------------------ */