/* XPath Functions */

#toc h2 {
  padding-top: 4em ! important;
}

#function-finder {
  position: absolute;
  background-color: rgb(247, 248, 249);
  opacity 1;
  width: 23.5em;
  border-bottom: 1px solid rgb(135,149,159);
  padding-bottom: 0.5em;
  margin-bottom: 4px;
}

@media screen and (min-width: 78em) {
  #function-finder {
    position: fixed;
  }
}

.return-varies {
    font-weight: bold;
    font-style: italic;
}

div.ffheader     {  
			margin-top: .8rem;
			font-size: 140%;
			font-variant: all-small-caps;
			text-transform: lowercase;
			font-weight: bold;
			color: hsla(203, 20%, 40%, .7);
		}                  

table.casting    { font-size: x-small;
                 }
table.hierarchy  { font-size: x-small;
                 }
table.proto {
    line-height: 1.25;
}

td.castY         { background-color: #7FFF7F;
                   color: black;
                   text-align: center;
                   vertical-align: middle;
                 }

td.castN         { background-color: #FF7F7F;
                   color: black;
                   text-align: center;
                   vertical-align: middle;
                 }

td.castM         { background-color: #ffcc00;
                   color: black;
                   text-align: center;
                   vertical-align: middle;
                 }

span.cancast:hover { background-color: #ffa;
                   color: black;
                 }

div.protoref     { margin-left: 0.5in;
                   text-indent: -0.5in;
                 }

div.proto        { 
    padding: .5em;
		border: .5em;
		border-left-style: solid;
		page-break-inside: avoid;
		margin: 1em auto;
		border-color: #ff99ff;
		background: #ffe6ff;
		overflow: auto;
                 }

div.record        { 
    padding: 0;
    border: .5em;
    border-left-style: solid;
    page-break-inside: avoid;
    margin: 1em auto;
    border-color: #ffaaff;
    background: #fff6ff;
    overflow: auto;
}

.record code {
    background-color: inherit;
    border: inherit;
    border-radius: 0;
    padding-top: inherit;
    padding-bottom: inherit;
    padding-left: inherit;
    padding-right: inherit;
    margin: inherit;
}

.record .title {
    background-color:  #ffaaff;
}

/* Don't wrap the record names */
.record tbody tr td:first-child code {
    white-space: nowrap;
}

table.proto tr td,
table.record tr td, {
  font-family: monospace;
  padding-right: 0.5em;
  vertical-align: top;
}

table.proto tr td:nth-child(3)  {
    vertical-align: top;
}

table.proto tr td:nth-child(3) code {
    white-space: nowrap;
}

/*
table.record tr.arg td code.req {
  font-weight: bold;
}
*/

table.proto tr.arg td:first-child,
table.record tr.arg td:first-child  {
  padding-left: 0.5em;
  vertical-align: top;
}
table.proto tr.name span.name {
  font-weight: bold;
}



table.medium {
    border-collapse: collapse;
}

tr + tr.testdiv th, tr + tr.testdiv td {
    border-top: 2px solid var(--example-border);
    margin-top: 0.5rem;
    padding-top: 0.6rem;
}

div.new-function h2,
div.new-function h3,
div.new-function h4 {
    text-indent: -1.5rem;
}

div.new-function h2::before,
div.new-function h3::before,
div.new-function h4::before {
    content: "🆕 ";
    width: 1.5rem;
}

span.content.new-function::after {
    content: " 🆕";
}

div.changed-function h2,
div.changed-function h3,
div.changed-function h4 {
    text-indent: -1.5rem;
}

div.changed-function h2::before,
div.changed-function h3::before,
div.changed-function h4::before {
    content: "🆙 ";
    width: 1.5rem;
}

span.content.changed-function::after {
    content: " 🆙";
}

table.record-description,
table.fos-options {
    border-collapse: collapse;
}

table.record-description,
table.fos-options thead tr {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

table.record-description,
table.fos-options thead tr th {
    text-align: left;
    padding-right: 1em;
}

table.record-description,
table.fos-options tbody tr td {
    vertical-align: top;
    border-bottom: 2px solid black;
}

table.record-description,
table.fos-options tbody tr td:first-child {
    white-space: nowrap;
    padding-right: 1em;
    vertical-align: top;
    border-bottom: 2px solid black;
}
