/* This stylesheet is used by manuals and a few older resources. */

@import url('/reset.css');


/***  PAGE LAYOUT  ***/

html, body {
   font-size: 1em;
   text-align: left;
   text-decoration: none;
}
html { background-color: #e7e7e7; }

body {
   max-width: 74.92em;
   margin: 0 auto 2em;
   padding: .5em 1em 1em 1em;
   background-color: white;
   border: .1em solid #c0c0c0;
}


/*** BASIC ELEMENTS ***/

/** Size and positioning **/

p, pre, li, dt, dd, table, code, address { line-height: 1.4em; }

h1 { font-size: 2em; margin: 1em 0 }
h2 { font-size: 1.50em; margin: 1.0em 0 0.87em 0; }
h3 { font-size: 1.30em; margin: 1.0em 0 0.87em 0; }
h4 { font-size: 1.13em; margin: 1.0em 0 0.88em 0; }
h5 { font-size: 1.00em; margin: 1.0em 0 1.00em 0; }

p, pre { margin: 1em 0; }
pre { overflow: auto; padding-bottom: .8em; }

ul, ol, blockquote { margin-left: 1.5%; margin-right: 1.5%; }
hr { margin: 2em 0; }
/* Lists of underlined links are difficult to read. The top margin
   gives a little more spacing between entries. */
ul li { margin: .5em 1em; }
ol li { margin: 1em; }
ol ul li { margin: .5em 1em; }
ul li p, ul ul li { margin-top: .3em; margin-bottom: .3em; }
ul ul, ol ul { margin-top: 0; margin-bottom: 0; }

/* Separate description lists from preceding text */
dl { margin: 1em 0 0 0; }
/* separate the "term" from subsequent "description" */
dt { margin: .5em 0; }
/* separate the "description" from subsequent list item
   when the final <dd> child is an anonymous box */
dd { margin: .5em 3% 1em 3%; }
/* separate anonymous box (used to be the first element in <dd>)
   from subsequent <p> */
dd p { margin: .5em 0; }

table {
   display: block; overflow: auto;
   margin-top: 1.5em; margin-bottom: 1.5em;
}
th { padding: .3em .5em; text-align: center; }
td { padding: .2em .5em; }

address { margin-bottom: 1em; }
caption { margin-bottom: .5em; text-align: center; }
sup { vertical-align: super; }
sub { vertical-align: sub; }


/** Style **/

h1, h2, h3, h4, h5, h6, strong, dt, th { font-weight: bold; }

/* The default color (black) is too dark for large text in
   bold font. */
h1, h2, h3, h4 { color: #333; }
h5, h6, dt { color: #222; }

a[href] { color: #005090; }
a[href]:visited { color: #100070; }
a[href]:active, a[href]:hover {
   color: #100070;
   text-decoration: none;
}

h1 a[href]:visited, h2 a[href]:visited, h3 a[href]:visited,
 h4 a[href]:visited { color: #005090; }
h1 a[href]:hover, h2 a[href]:hover, h3 a[href]:hover,
 h4 a[href]:hover { color: #100070; }

ol { list-style: decimal outside;}
ul { list-style: square outside; }
ul ul, ol ul { list-style: circle; }
li { list-style: inherit; }

hr {
   background-color: #d5bb7d;
   border-color: #d5bb7d;
}

table, td, th { border: 0; }

abbr,acronym {
   border-bottom:1px dotted #000;
   text-decoration: none;
   cursor:help;
}
del { text-decoration: line-through; }
em, var { font-style: italic; }
small { font-size: .9em; }

img { max-width: 100%}


/*** SIMPLE CLASSES ***/

.center, .c { text-align: center; }
.nocenter{ text-align: left; }

.underline { text-decoration: underline; }
.nounderline { text-decoration: none; }

.no-bullet { list-style: none; }
.inline-list li { display: inline }

.netscape4, .no-display { display: none; }


/*** MANUAL PAGES ***/

/* This makes the very long tables of contents in Gnulib and other
   manuals easier to read. */
.contents ul, .shortcontents ul { font-weight: bold; }
.contents ul ul, .shortcontents ul ul { font-weight: normal; }
.contents ul { list-style: none; }

/* For colored navigation bars (Emacs manual): make the bar extend
   across the whole width of the page and give it a decent height. */
.header, .node { margin: 0 -1em; padding: 0 1em; }
.header p, .node p { line-height: 2em; }

/* For navigation links. We can't use inline-block display to avoid wrapping
   because this makes the links appear much smaller than normal text on 
   phones with Chromium (RT #1872370). */
.node a, .header a { /*display: inline-block;*/ line-height: 2em; }
.node a:hover, .header a:hover { background: #f2efe4; }


/** Inserts **/

table[border="1"], table.multitable td, table.multitable th {
   border: 1px solid #d5bb7d;
}
/* Neutralize 'cartouche' except in specific cases. */
table.cartouche, table.cartouche > tbody, table.cartouche > tbody > tr,
table.cartouche > tbody > tr > td, table.cartouche > tbody > tr > th {
   display: block;
   padding: 0;
   margin: 0;
   border: 0;
}
/* Indentation is only given by the padding of children, to keep overflow at
a minimum on narrow screens. */
div.display, div.smalldisplay, div.smallexample, div.smalllisp,
div.example, div.lisp, table.cartouche {
   margin: 1.5em 0;
}
div.example > table.cartouche {
   margin: .5em 0 0;
}
pre.example, pre.lisp, pre.example-preformatted, pre.smallexample,
pre.verbatim, pre.display-preformatted {
   padding: 1em 2.5%;
   margin: 0;
}
div.example, table.cartouche, pre.example, pre.lisp, pre.example-preformatted,
pre.smallexample, pre.verbatim, pre.display-preformatted {
   border-radius: .3em;
}

/* These could be differentiated if needed. */
pre.example, pre.lisp, pre.example-preformatted, pre.verbatim {
   background-color: #f9f6ed;    /* very light tan */
}
/* 'display-preformatted' seems to be used for synopsis or to replace <tt>. */
pre.display-preformatted {
   background-color: #e7eef9;    /* light blue */
}
.cartouche > tbody > tr > td > pre.smallexample,
.cartouche > tbody > tr > td  pre.example {
   background-color: #f2efe4;    /* light tan */
   border: 1px solid #d4cbb6;    /* tan */
}

/* Currently used by automake. */
.cartouche ul {
   margin: 0;
   padding: .5em 2.5%;
   border: 2px solid orange;
}

/* For the Libunustring and Gnulib manuals (warnings). */
#char-_002a-strings .cartouche,
#Case-mappings-of-characters .cartouche,
#The-C-string-representation ~ .cartouche,
#Strings-with-NUL-characters-1 ~ .cartouche {
   padding: 0 2.5%;
   border: 2px solid orange;
}

/* For the Gawk manual. */
#Foreword3 pre.display-preformatted, #Foreword4 pre.display-preformatted {
   background: none;
}
#History table td {
   border: none;
}
#History .cartouche table {
   display: table;
   margin: 1em auto;
}
a[id^="index-sidebar-"] + table.cartouche {
   border: 2px solid #95b0d8;   /* blue */
}
a[id^="index-sidebar-"] + table.cartouche > tbody > tr > td {
   padding: 0 2.5% .5em;
}
a[id^="index-sidebar-"] + table.cartouche > tbody > tr > th {
   padding: 1em 2.5% .5em;
}

pre.menu-comment { padding-top: 2em; margin: 0; }


/*** FOR WIDE SCREENS ***/

@media (min-width: 40em) {
   body { padding: .5em 3em 1em 3em; }
   div.header, div.node { margin: 0 -3em; padding: 0 3em; }
}
