:root {
    --main-width: 100%;
    --main-margin: 20px 100px 50px;
    --main-font-family: Arial, sans-serif;
    --main-font-size: 12pt;
    --main-line-height: 1.5;
    --main-background-color: #fff;
    --main-color: #000;
    --border-color: #222;
    --header-background-color: #e0e0e0;
    --table-font-size: 12pt;
    --page-header-height: 36px;
    --page-footer-height: 36px;
}

html {
    /* keep anchor-jump targets visible below the fixed header */
    scroll-padding-top: calc(var(--page-header-height) + 20px);
}

body {
    font-family: var(--main-font-family);
    font-size: var(--main-font-size);
    line-height: var(--main-line-height);
    margin: var(--main-margin);
    max-width: var(--main-width);
    background-color: var(--main-background-color);
    color: var(--main-color);
    padding-top: var(--page-header-height);
    padding-bottom: var(--page-footer-height);
}

h1 {
    font-size: 26pt;
    font-weight: normal;
}

h2 {
    font-size: 20pt;
    font-weight: normal;
    margin-top: 20px;
}

h3 {
    font-size: 16pt;
    font-weight: normal;
    margin-top: 15px;
}

h4 {
    font-size: 14pt;
    font-weight: normal;
    margin-top: 10px;
}

p, ul, nl, dl {
    max-width: 60rem;
}

td > span + span {
    display: block;
    padding-top: 0.5rem;
}

table {
    border-collapse: collapse;
    margin: 10px 0;
    width: auto;
    border: 2px solid var(--border-color);
    font-size: var(--table-font-size);
}

th,
td {
    border: 2px solid var(--border-color);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: var(--header-background-color);
    font-weight: bold;
}

th, td {
    border: 2px solid #000;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

table.intro td:first-child {
    font-weight: bold;
}

table.intro td.history {
    font-weight: normal;
    background-color: var(--main-background-color);
}

table.embedded {
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border: hidden;
}

td:has(table.embedded) {
    padding: 0;
    /* border: none; */
}

td.optionalHeader {
    font-style: italic;
    width: 1%;
}

.stepsColumn {
    background-color: #fce5cd;
}

.stepsColumnHeader {
    background-color: #f9cb9c;
}

.pageHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--page-header-height);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 11pt;
    gap: 20px;
    padding: 0 20px;
    background-color: var(--header-background-color);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    overflow: hidden;
}

.pageHeaderIndex {
    display: flex;
    justify-self: start;
    white-space: nowrap;
}

.pageHeaderIndex a {
    color: var(--main-color);
    text-decoration: none;
}

.pageHeaderIndex a:hover {
    text-decoration: underline;
}

.pageHeaderNav {
    display: flex;
    justify-self: center;
    gap: 15px;
    white-space: nowrap;
}

.pageHeaderNav a {
    color: var(--main-color);
    text-decoration: none;
}

.pageHeaderNav a:hover {
    text-decoration: underline;
}

.pageHeaderLinks {
    display: flex;
    justify-self: end;
    gap: 15px;
    white-space: nowrap;
}

.pageHeaderLinks a {
    color: var(--main-color);
    text-decoration: none;
}

.pageHeaderLinks a:hover {
    text-decoration: underline;
}

.pageFooter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--page-footer-height);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 11pt;
    gap: 20px;
    padding: 0 20px;
    background-color: var(--header-background-color);
    border-top: 2px solid var(--border-color);
    z-index: 1000;
}    

.pageFooterIdentifier {
    font-weight: bold;
    justify-self: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}    

.pageFooterLinks {
    display: flex;
    justify-self: start;
    gap: 15px;
    white-space: nowrap;
}

.pageFooterLinks a {
    color: var(--main-color);
    text-decoration: none;
}

.pageFooterLinks a:hover {
    text-decoration: underline;
}

.pageFooterEdit {
    display: flex;
    justify-self: end;
    gap: 15px;
    white-space: nowrap;
}

.pageFooterEdit a {
    color: var(--main-color);
    text-decoration: none;
}

.pageFooterEdit a:hover {
    text-decoration: underline;
}
