/* ---------------  coqdoc.css  (tweaked)  --------------- */

body { padding: 0px 0px;
       margin: 0px 0px;
       background-color: white }

#page { display: block;
        padding: 0px;
        margin: 0px;
        padding-bottom: 10px; }

#header { display: block;
          position: relative;
          padding: 0;
          margin: 0;
          vertical-align: middle;
          border-bottom-style: solid;
          border-width: thin }

#header h1 { padding: 0;
             margin: 0;}


/* Contents */

#main{ display: block;
       padding: 10px;
       font-family: sans-serif;
       font-size: 100%;
       line-height: 100% }

#main  h1 { line-height: 95% } /* allow for multi-line headers */

#main  a.idref:visited {color : #416DFF; text-decoration : none; }
#main  a.idref:link {color : #416DFF; text-decoration : none; }
#main  a.idref:hover {text-decoration : none; }
#main  a.idref:active {text-decoration : none; }

#main  a.modref:visited {color : #416DFF; text-decoration : none; }
#main  a.modref:link {color : #416DFF; text-decoration : none; }
#main  a.modref:hover {text-decoration : none; }
#main  a.modref:active {text-decoration : none; }

#main .keyword { color : #cf1d1d }
#main { color: black }

.section { background-color: rgb(60%,60%,100%);
           padding-top: 13px;
           padding-bottom: 13px;
           padding-left: 3px;
           margin-top: 5px;
           margin-bottom: 5px;
           font-size : 175% }

h2.section { background-color: rgb(80%,80%,100%);
             padding-left: 3px;
             padding-top: 12px;
             padding-bottom: 10px;
             font-size : 130% }

h3.section { background-color: rgb(90%,90%,100%);
             padding-left: 3px;
             padding-top: 7px;
             padding-bottom: 7px;
             font-size : 115% }

h4.section {
/*
                   background-color: rgb(80%,80%,80%);
                   max-width: 20em;
                   padding-left: 5px;
                   padding-top: 5px;
                   padding-bottom: 5px;
*/
                   background-color: white;
                   padding-left: 0px;
                   padding-top: 0px;
                   padding-bottom: 0px;
                   font-size : 100%;
                   font-weight : bold;
                   text-decoration : underline;
}

/* ----------  TWEAK #1: wider & softer doc blocks  ---------- */
#main .doc { margin: 0px;
             font-family: sans-serif;
             font-size: 100%;
	     line-height: 125%;
             width: 100%;            /* full width */
             max-width: none;        /* remove 40 em cap */
             color: black;
	     padding: 10px;
             background-color: #dfefff; /* gentler blue */
}

/* Inline code in docs ------------------------------------------------ */

.inlinecode {
    display: inline;
/*    font-size: 125%; */
    color: #666666;
    font-family: monospace }

.doc .inlinecode {
    display: inline;
    font-size: 120%;
    color: rgb(30%,30%,70%);
    font-family: monospace }

.doc .inlinecode .id {
    color: rgb(30%,30%,70%);
}

.inlinecodenm {
    display: inline;
    color: #444444;
}

.doc .code {
    display: inline;
    font-size: 120%;
    color: rgb(30%,30%,70%);
    font-family: monospace }

/* ----------  TWEAK #2: full-width comment lines  ---------- */
.comment {
    display: block;                  /* take the whole row */
    width: 100%;                     /* stretch to table edge */
    font-family: monospace;
    color: rgb(50%,50%,80%);
    background-color: #dfefff;       /* match softer blue */
}

.code {
    display: block;
/*  padding-left: 15px; */
    font-size: 110%;
    font-family: monospace;
 }

/* ----------  TWEAK #3: code table spans the page ---------- */
table.code {
    width: 100%;
}

/* Inference-rule tables ------------------------------------ */

table.infrule {
  border: 0px;
  margin-left: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
}

td.infrule {
    font-family: monospace;
    text-align: center;
/*    color: rgb(35%,35%,70%);  */
    padding: 0px;
    line-height: 100%;
}

tr.infrulemiddle hr {
    margin: 1px 0 1px 0;
}

.infrulenamecol {
    color: rgb(60%,60%,60%);
    font-size: 80%;
    padding-left: 1em;
    padding-bottom: 0.1em
}

/* Footer --------------------------------------------------- */

#footer { font-size: 65%;
          font-family: sans-serif; }

/* Identifiers ---------------------------------------------- */

.id { display: inline; }

.id[title="constructor"] {
    color: rgb(60%,0%,0%);
}

.id[title="var"], .id[title="variable"],
.id[title="binder"] {
    color: rgb(40%,0%,40%);
}

.id[title="definition"], .id[title="abbreviation"],
.id[title="lemma"], .id[title="instance"],
.id[title="projection"], .id[title="method"] {
    color: rgb(0%,40%,0%);
}

.id[title="inductive"], .id[title="record"],
.id[title="class"] {
    color: rgb(0%,0%,80%);
}

.id[title="keyword"] {
    color : #cf1d1d;
}

/* legacy attributes still recognised */
.id[type="constructor"]   { color: rgb(60%,0%,0%); }
.id[type="var"],
.id[type="variable"]      { color: rgb(40%,0%,40%); }
.id[type="definition"],
.id[type="abbreviation"],
.id[type="lemma"],
.id[type="instance"],
.id[type="projection"],
.id[type="method"]        { color: rgb(0%,40%,0%); }
.id[type="inductive"],
.id[type="record"],
.id[type="class"]         { color: rgb(0%,0%,80%); }
.id[type="keyword"]       { color : #cf1d1d; }

.inlinecode .id {
    color: rgb(0%,0%,0%);
}

/* TOC ------------------------------------------------------- */

#toc h2 {
    padding: 10px;
    background-color: rgb(60%,60%,100%);
}

#toc li {
    padding-bottom: 8px;
}

/* Index ----------------------------------------------------- */

#index {
    margin: 0;
    padding: 0;
    width: 100%;
}

#index #frontispiece {
    margin: 1em auto;
    padding: 1em;
    width: 60%;
}

.booktitle { font-size : 140%  }
.authors   { font-size : 90%;  line-height: 115%; }
.moreauthors { font-size : 60% }

#index #entrance {
    text-align: center;
}

#index #entrance .spacer {
    margin: 0 30px 0 30px;
}

#index #footer {
    position: absolute;
    bottom: 0;
}

.paragraph {
    height: 0.75em;
}

ul.doclist {
    margin-top: 0em;
    margin-bottom: 0em;
}

/* Highlight target lines ----------------------------------- */

.code :target {
    border: 2px solid #D4D4D4;
    background-color: #e5eecc;
}

/* ---------------  end of coqdoc.css  --------------- */
