:root {
    --clr-primary: #29a9e1;
    --clr-action: #e06328;
    --clr-action-hover: #1b966b;
    --clr-grey1: #f2f2f2;
    --clr-grey2: #e6e6e6;
    --clr-grey3: #7b7b7b;
    --clr-background: #fff;
    --clr-text: #111;
    --clr-internal: #666;
    font-size: 15px;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    --font-icon: 'Font Awesome 5 Pro';
    color: var(--clr-text);
    scroll-behavior: smooth;
    --padding-top: 2.75rem;
    scroll-padding-top: 2.75rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Simple reset */

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
dl,
dt,
dd,
table {
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--clr-background);
}

a,
a:visited {
    color: var(--clr-action);
    text-decoration: none;
}

a:hover {
    color: var(--clr-action-hover);
}

a.nondescript {
    color: var(--clr-grey3);
}

a.button {
    display: inline-block;
    margin-top: 5px;
    font-size: 85%;
    text-decoration: none;
    background-color: var(--clr-action);
    border-radius: 6px;
    padding: 2px 8px;
    color: #fff;
}

a.button:hover {
    background-color: var(--clr-action-hover);
}

li {
    list-style-type: none;
}

ol {
    margin: .5rem 1.4rem;
}

ol li {
    list-style-type: decimal;
    margin-bottom: .5rem;
}

ol li:last-of-type {
    margin-bottom: 0;
}

main {
    min-height: 80vh;
}

main section,
footer section {
    margin: 1rem auto;
    width: 97%;
    max-width: 1080px;
}

main section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

main section:first-of-type {
    margin-top: 1rem;
}

main section h2 {
    color: var(--clr-primary);
}

main section table {
    width: 100%;
    border-collapse: collapse;
    margin: .5rem 0;
}

main section table th,
main section table td {
    padding: 3px 6px;
}

main section table th {
    font-weight: normal;
    color: var(--clr-grey3);
    text-align: left;
    border-bottom: 2px solid var(--clr-grey2);
    vertical-align: bottom;
    line-height: 1.2;
}

main section table td {
    border-bottom: 1px solid var(--clr-grey2);
    vertical-align: top;
}

main section table tr:last-child td {
    border-bottom: 0;
}

main section p {
    margin-top: .5rem;
    margin-bottom: 1rem;
}

section>p:last-of-type {
    margin-bottom: 0
}

main #head {
    display: grid;
    grid-template-columns: 20% auto 20%;
    grid-gap: 1rem;
}

main #head h1::before {
    content: attr(aria-label);
    display: block;
    font-weight: normal;
    font-size: .9rem;
    text-transform: uppercase;
    color: var(--clr-grey3);
}

main #head .copybtn {
    display: block;
}

button.copybtn {
    border: 0;
    color: var(--clr-text);
    background-color: var(--clr-grey1);
    border-radius: 25%;
    padding: .3rem .5rem;
}

button.copybtn:hover {
    background-color: var(--clr-grey2);
    cursor: pointer;
}

header {
    position: sticky;
    width: 100%;
    padding: .5rem .625rem;
    top: 0;
    left: 0;
    background-color: var(--clr-primary);
    color: #fff;
}

header section {
    display: flex;
    align-items: center;
    height: 1.5rem;
    gap: .5rem;
}

header svg {
    height: 1.25rem;
    display: block;
}

header .tag {
    text-transform: uppercase;
    padding: 2px 4px;
    background-color: #fff;
    color: var(--clr-primary);
    border-radius: .125rem;
    font-size: 70%;
    position: relative;
    bottom: 1px;
}

footer {
    background-color: var(--clr-grey2);
    font-size: .8125rem;
}

footer section {
    padding-top: .5rem;
    padding-bottom: 5rem;
    margin-bottom: 0;
}

strong {
    color: var(--clr-primary);
}

pre,
code {
    font-family: 'Source Code Pro', monospace;
}

cite {
    display: block;
    color: var(--clr-grey3);
    font-size: 90%;
    font-style: normal;
    margin-top: .25rem;
}

cite a.parsed {
    color: var(--clr-grey3);
}

h1 {
    font-size: 1.7rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.3rem;
    background-color: var(--clr-grey1);
    padding: .25rem .5rem;
    margin-left: -.5rem;
    margin-right: -.5rem;
    margin-bottom: .25rem;
}

ul.columns {
    column-width: 15rem;
    column-gap: .5rem;
}

dl {
    display: grid;
    grid-template-columns: 25% 75%;
    /* row-gap: .03125rem; */
}

dt,
dd {
    border-bottom: 1px solid var(--clr-grey2);
    padding-top: 3px;
    padding-bottom: 3px;
}

dt:last-of-type,
dd:last-of-type {
    border-bottom: 0;
}

dt {
    color: var(--clr-grey3);
}

sup {
    font-size: 65%;
    display: inline-block;
    margin-top: -1rem;
}

#lcn {
    word-break: break-word;
}

.code,
.no-code-no-break {
    word-break: keep-all;
    white-space: nowrap;
}

.copyright-line {
    color: var(--clr-grey3);
    font-size: 90%;
}

.maturity-status {
    border-radius: .15rem;
    font-size: .6rem;
    border: 1px solid var(--clr-grey3);
    color: var(--clr-grey3);
    font-weight: bold;
    text-transform: uppercase;
    padding: .15rem .25rem;
    position: relative;
    bottom: 2px;
    z-index: -1;
}

.label {
    display: inline-block;
    position: relative;
    bottom: 2px;
    left: 2px;
    background-color: var(--clr-primary);
    color: #fff;
    padding: .1rem .2rem;
    font-size: 60%;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: .1rem;
}

.inline-label {
    font-style: normal;
    color: var(--clr-grey3);
}

.login-required {
    margin-bottom: .125rem;
    font-style: italic;
}

.answer-description {
    color: var(--clr-grey3);
    font-size: 90%;
    font-style: italic;
    line-height: 1.3;
    margin: 5px 0 0 0;
}

.ref-img {
    border: .4rem solid var(--clr-grey1);
    text-align: left;
    padding: 1rem;
    position: relative;
    z-index: -1;
}

.ref-img img {
    max-height: 16rem;
    max-width: 31rem;
    width: auto;
    display: block;
    margin: .5rem auto 0 auto;
}

#language-variants dl {
    grid-template-columns: 40% 60%;
}

#language-variants dt span {
    width: 20%;
    min-width: 4rem;
    display: inline-block;
}

#language-variants dd {
    word-break: all;
}

#version {
    z-index: 99;
    position: fixed;
    top: 6px;
    right: 6px;
    background-color: #fff;
    font-size: .9rem;
    font-weight: bold;
    line-height: 1.1;
    padding: 5px;
    text-transform: uppercase;
    color: var(--clr-primary);
}

h2.child-header {
    background-color: var(--clr-primary);
    color: var(--clr-background);
    display: flex;
    gap: 1rem;
    /* position: sticky;
    position: -webkit-sticky;
    align-self: flex-start;
    height: auto;
    top: 3rem; */
}

h2.child-header a,
h2.child-header a:visited {
    color: var(--clr-background);
}

.panel h3 {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.panel h3+p {
    margin-top: 0;
}

#term-description .internal::before,
#part-description .internal::before {
    content: '\f070';
    position: absolute;
    left: -1.75rem;
    font-weight: bold;
    font-family: var(--font-icon);
    color: var(--clr-internal);
}

#term-description .internal,
#part-description .internal {
    border-left: 2px solid var(--clr-internal);
    padding-left: .75rem;
    margin-left: 1.75rem;
    position: relative;
    z-index: -1;
}

/* 
Mobile
*/

@media only screen and (max-width: 600px) {

    main #head,
    dl {
        grid-template-columns: 1fr;
    }

    dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    dd {
        padding-top: 0;
    }

    .no-code-no-break {
        word-break: normal;
        white-space: normal;
    }
}