body {
    width: 60em;
    margin: 1em auto;
    color: #222;
    font-family: "Ubuntu", sans-serif;
    padding-bottom: 4em;
}

h1 {
    font-weight: normal;
    border-bottom: 1px solid #aaa;
    padding-bottom: 0.5ex;
}

h2 {
    border-bottom: 1px solid #aaa;
    padding-bottom: 0.5ex;
    margin: 1.5em 0;
}

h3 {
    font-weight: normal;
    border-bottom: 1px solid #aaa;
    padding-bottom: 0.5ex;
}

a {
    text-decoration: none;
    color: #567e25;
}

table {
    width: 100%;
    font-size: 80%;
    border-collapse: collapse;
}

thead {
    font-weight: 700;
    background-color: #dcdcdc;
}

tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

td {
    border: 1px solid #ccc;
    padding: 0.5ex 2ex;
}

td p {
    text-indent: 1em;
    margin: 0;
}

td p:nth-child(1) {
    text-indent: 0; /* No indent on first p in td */
}

/* Table of fields */
.field-table td:nth-child(1) { /* Field */
    width: 10em;
}
.field-table td:nth-child(2) { /* Type */
    width: 10em;
}
.field-table td:nth-child(3) { /* Label */
    width: 6em;
}
.field-table td:nth-child(4) { /* Description */
    width: auto;
}

/* Table of extensions */
.extension-table td:nth-child(1) { /* Extension */
    width: 10em;
}
.extension-table td:nth-child(2) { /* Type */
    width: 10em;
}
.extension-table td:nth-child(3) { /* Base */
    width: 10em;
}
.extension-table td:nth-child(4) { /* Number */
    width: 5em;
}
.extension-table td:nth-child(5) { /* Description */
    width: auto;
}

/* Table of enum values. */
.enum-table td:nth-child(1) { /* Name */
    width: 10em;
}
.enum-table td:nth-child(2) { /* Number */
    width: 10em;
}
.enum-table td:nth-child(3) { /* Description */
    width: auto;
}

/* Table of scalar value types. */
.scalar-value-types-table tr {
    height: 3em;
}

/* Table of contents. */
#toc-container ul {
    list-style-type: none;
    padding-left: 1em;
    line-height: 180%;
    margin: 0;
}
#toc > li > a {
    font-weight: bold;
}

/* File heading div */
.file-heading {
    width: 100%;
    display: table;
    border-bottom: 1px solid #aaa;
    margin: 4em 0 1.5em 0;
}
.file-heading h2 {
    border: none;
    display: table-cell;
}
.file-heading a {
    text-align: right;
    display: table-cell;
}

/* The 'M', 'E' and 'X' badges in the ToC */
.badge {
    width: 1.6em;
    height: 1.6em;
    display: inline-block;

    line-height: 1.6em;
    text-align: center;
    font-weight: bold;
    font-size: 60%;

    color: #89ba48;
    background-color: #dff0c8;

    margin: 0.5ex 1em 0.5ex -1em;
    border: 1px solid #fbfbfb;
    border-radius: 1ex;
}
