:root {
    --paper: #e9e7dc;
    --paper-light: #f7f6ee;
    --paper-dark: #d2d0c4;
    --ink: #111;
    --blue: #001d61;
    --blue-light: #d9e2f1;
    --line: #3d3d3d;
    --muted: #5a5a5a;
    --notice: #fff8c9;
    --link: #0000a8;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #777;
}

body {
    width: min(1120px, calc(100% - 24px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 14px 32px;
    color: var(--ink);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.018) 0,
            rgba(0, 0, 0, 0.018) 1px,
            transparent 1px,
            transparent 4px
        ),
        var(--paper);
    border-right: 1px solid #333;
    border-left: 1px solid #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.35;
}

a {
    color: var(--link);
    text-decoration: underline;
}

a:visited {
    color: #4f176f;
}

a:hover,
a:focus-visible {
    color: #b00000;
    background: #fff;
    outline: 1px dotted #111;
}

.centered {
    text-align: center;
}

.header {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) minmax(160px, 1fr);
    align-items: stretch;
    width: calc(100% + 28px);
    min-height: 88px;
    margin: 0 -14px 18px;
    padding: 0;
    color: #fff;
    background: var(--blue);
    border-bottom: 5px double #fff;
}

.header::before {
    content: "VBE";
    display: grid;
    place-items: center;
    grid-column: 1 / -1;
    height: 31px;
    font-family: "Times New Roman", Times, serif;
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 0.24em;
    color: #fff;
    background: #001442;
    border-bottom: 1px solid #fff;
}

.header > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    color: #fff;
    border-right: 1px solid #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header > a,
.header > a:visited {
    color: #fff;
    background: var(--blue);
}

.header > *:last-child {
    border-right: 0;
}

.header > a:hover,
.header > a:focus-visible {
    color: #001442;
    background: #fff;
    outline: 0;
}

.header .title {
    width: auto;
    color: #fff;
    background: var(--blue);
    border: 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 23px;
    line-height: 1.05;
    text-transform: none;
}

.header > a:hover .title,
.header > a:focus-visible .title {
    color: #001442;
    background: #fff;
}

h1,
h2,
h3 {
    font-family: "Times New Roman", Times, serif;
}

h1 {
    margin: 18px 0 0;
    padding: 10px 12px;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--line);
    font-size: 24px;
    letter-spacing: 0.02em;
}

h2 {
    margin: 0;
    padding: 9px 12px;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-top: 0;
    font-size: 18px;
}

.section-heading {
    margin: 28px 0 12px;
    background: var(--paper-dark);
    border: 1px solid var(--line);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

h3 {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

h3 > a,
.hidden-link {
    display: block;
    padding: 9px 12px;
    color: var(--link);
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-top: 0;
    text-decoration: underline;
}

h3 > a::before,
.hidden-link::before {
    content: "› ";
    color: #111;
    font-weight: bold;
}

.background-image {
    display: block;
    width: 100%;
    height: clamp(240px, 42vw, 490px);
    margin: 0;
    object-fit: cover;
    object-position: center;
    background: #bbb;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0;
}

.page-shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    border: 1px solid var(--line);
    background: var(--paper-light);
}

.side-nav {
    background: var(--paper-dark);
    border-right: 1px solid var(--line);
}

.side-nav h2 {
    padding: 7px 9px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-bottom: 1px solid var(--line);
    font: bold 14px Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.side-nav a {
    display: block;
    padding: 8px 10px;
    color: #001442;
    background: #f4f3e9;
    border-bottom: 1px solid #777;
    font-size: 13px;
    font-weight: bold;
}

.side-nav a:visited {
    color: #001442;
}

.side-nav a::before {
    content: "■";
    margin-right: 7px;
    color: var(--blue);
    font-size: 8px;
}

.side-nav a:hover,
.side-nav a:focus-visible {
    color: #fff;
    background: var(--blue);
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.side-nav a:hover::before,
.side-nav a:focus-visible::before {
    color: #fff;
}

.office-content {
    min-width: 0;
    padding: 16px;
}

.office-content h1 {
    margin-top: 0;
    text-align: left;
}

.office-content h2 {
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.office-meta,
.office-notice,
.office-footer {
    width: 100%;
    border-collapse: collapse;
}

.office-meta {
    margin-bottom: 14px;
    font-size: 12px;
}

.office-meta th,
.office-meta td {
    padding: 5px 7px;
    border: 1px solid var(--line);
    text-align: left;
}

.office-meta th {
    width: 140px;
    background: var(--paper-dark);
}

.office-notice {
    margin-top: 14px;
    padding: 9px 11px;
    background: var(--notice);
    border: 1px solid var(--line);
    font-size: 13px;
}

.quick-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

.quick-table th,
.quick-table td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.quick-table th {
    color: #fff;
    background: var(--blue);
    font-size: 13px;
    text-transform: uppercase;
}

.quick-table tr:nth-child(even) td {
    background: var(--blue-light);
}

.quick-table td:first-child {
    width: 35%;
    font-weight: bold;
}

.office-footer {
    margin-top: 16px;
    padding: 7px 10px;
    color: #fff;
    background: #001442;
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.03em;
    text-align: center;
}

.table {
    display: table;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    border-collapse: collapse;
    background: var(--paper-light);
    table-layout: auto;
}

.table tr {
    display: table-row;
}

.table th,
.table td,
.table-index,
.table-value {
    display: table-cell;
    padding: 7px 9px;
    color: var(--ink) !important;
    background: transparent;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    text-decoration: none;
}

.table tr:first-child > th,
.table tr:first-child > td {
    color: #fff !important;
    background: var(--blue);
    font-weight: bold;
}

.table tr:nth-child(even) > td,
.table tr:nth-child(even) > th {
    background: var(--blue-light);
}

.table-index {
    min-width: 150px;
    font-weight: bold;
}

.table p {
    margin: 0;
}

form {
    width: min(820px, 100%);
    margin: 0 auto 24px;
    padding: 14px;
    background: var(--paper-light);
    border: 1px solid var(--line);
    text-align: left;
}

form > label,
form fieldset > label {
    display: inline-block;
    margin: 5px 0 3px;
    font-weight: bold;
}

input,
select,
textarea,
button {
    max-width: 100%;
    padding: 5px 7px;
    color: #000;
    background: #fff;
    border: 1px solid #222;
    border-radius: 0;
    box-shadow: inset 1px 1px 0 #aaa;
    font: inherit;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: min(100%, 560px);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    box-shadow: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button,
input[type="submit"] {
    cursor: pointer;
    background: var(--paper-dark);
    border-width: 2px;
    border-color: #fff #222 #222 #fff;
    font-weight: bold;
}

button:active,
input[type="submit"]:active {
    border-color: #222 #fff #fff #222;
}

.bogey-entry,
#safety-system-container,
#power-supplies-container {
    margin: 7px 0;
    padding: 9px !important;
    align-items: flex-start !important;
    background: #eee;
    border: 1px solid #777;
}

#safety-system-container label,
#power-supplies-container label {
    display: block;
    width: 100%;
    padding: 3px;
}

body > div[style^="height"] {
    height: 12px !important;
}

@media (max-width: 720px) {
    body {
        width: 100%;
        padding-right: 8px;
        padding-left: 8px;
        border: 0;
        font-size: 14px;
    }

    .header {
        grid-template-columns: 1fr 1fr;
        width: calc(100% + 16px);
        margin-right: -8px;
        margin-left: -8px;
    }

    .header::before,
    .header .title {
        grid-column: 1 / -1;
    }

    .header .title {
        grid-row: 2;
        border-bottom: 1px solid #fff;
    }

    .header > a {
        grid-row: 3;
    }

    .page-shell {
        grid-template-columns: 1fr;
    }

    .side-nav {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .side-nav a {
        display: inline-block;
        width: 49%;
        vertical-align: top;
    }

    .office-content {
        padding: 10px;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    h1 {
        font-size: 20px;
    }
}

@media print {
    html,
    body {
        width: 100%;
        background: #fff;
        border: 0;
    }

    .header,
    .side-nav {
        display: none;
    }

    .page-shell {
        display: block;
        border: 0;
    }

    a {
        color: #000;
    }
}
