
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #26313b;
    font: 15px/1.55 verdana;
}

a {
    color: #126987;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -9999px;
    z-index: 100;
}

.skip:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    padding: 8px;
}

/* Header */

.hero {
    height: 193px;
    background: linear-gradient(90deg, rgba(9, 5, 33, .39), rgba(9, 5, 33, .08)),
                url(header-texture.jpg) center 48%/cover;
    display: grid;
    place-items: center;
    color: white;
    text-align: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-shadow: 0 1px 8px #1c1239;
}

.brand:hover {
    text-decoration: none;
    color: #fff;
}

.brand-symbol {
    font-size: 47px;
    line-height: .9;
    font-weight: 400;
}

.brand-word {
    font-weight: 300;
    font-size: 51px;
    line-height: 1.13;
    letter-spacing: -2px;
    color: #fff;
}

.brand-tag {
    font-size: 18px;
    font-weight: 700;
}

/* Navigation */

.topnav {
    background: #061e3e;
    color: #fff;
}

.nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    min-height: 46px;
}

.topnav a,
.category-toggle {
    color: #fff;
    padding: 14px 12px;
    display: block;
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: 0;
    cursor: pointer;
    text-transform: none;
}

.topnav a:hover,
.category-toggle:hover {
    background: #36414a;
    text-decoration: none;
}

.nav-spacer {
    flex: 1;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #29333a;
    min-width: 275px;
    max-height: 75vh;
    overflow: auto;
    z-index: 20;
    box-shadow: 0 6px 20px #0004;
}

.category-toggle[aria-expanded=true] + .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 9px 13px;
}

/* Page Content */

.page {
    padding: 35px 0 48px;
    min-height: 450px;
}

h1 {
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 15px;
    font-weight: 800;
    text-transform: uppercase;
}

h2 {
    font-size: 15px;
    margin: 22px 0 12px;

}

p {
    margin: 0 0 12px;
}

.page > p {
    max-width: 850px;
}

/* Search */

.search-wrap {
    background: #f8f8f8;
    border: 1px solid #e7e7e7;
    padding: 16px;
    margin: 24px 0;
    border-radius: 4px;
}

.search-wrap label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.search-line {
    display: flex;
    gap: 8px;
}

.search-line input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #bfcbd5;
    border-radius: 3px;
    background: #fff;
}

/* Buttons */

.btn {
    border: 0;
    border-radius: 4px;
    padding: 9px 19px;
    cursor: pointer;
}

.btn-primary {
    background: #006f96;
    color: #fff;
}

.btn-light {
    background: #c9effa;
    color: #153747;
}

/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 30px;
}

.category-grid a {
    border: 1px solid #d7e0e7;
    border-radius: 4px;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    background: #fff;
}

.category-grid a:hover {
    background: #f5f9fc;
}

.category-grid span {
    color: #6f7f8b;
}

/* Results */

.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #586978;
    font-size: 13px;
}

/* Tools Table */

.table-scroll {
    overflow-x: auto;
}

.tool-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    text-align: left;
}

.tool-table th {
    background: #f3f3f3;
    color: #273544;
    padding: 12px 10px;
    white-space: nowrap;
    font-weight: 700;
}

.tool-table td {
    border-bottom: 1px solid #d9e1e8;
    padding: 12px 10px;
    vertical-align: top;
}

.tool-table tbody tr:hover {
    background: #f7fafc;
}

.tool-table .dl-cell {
    text-align: center;
    min-width: 100px;
}

.tool-table .count-cell {
    text-align: right;
    white-space: nowrap;
}

.tool-table tr[hidden] {
    display: none;
}

.tool-name {
    overflow-wrap: anywhere;
    max-width: 340px;
}

.tool-desc {
    min-width: 250px;
    white-space: normal;
}

/* Download Icons */

.download-icon {
    display: inline-block;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 4px;
}

.download-icon:hover,
.download-icon:focus-visible {
    border-color: #235dae;
}

.file-icon {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 45px;
    border: 3px solid currentColor;
    border-radius: 3px;
    color: #5a9848;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding-top: 7px;
}

.file-icon:after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    border-left: 12px solid transparent;
    border-top: 12px solid #fff;
    border-bottom: 3px solid currentColor;
}

.file-tag {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
}

.file-symbol {
    margin-top: 4px;
    display: block;
    width: 20px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 1px;
    background: linear-gradient(
                    90deg,
                    transparent 44%,
                    currentColor 44%,
                    currentColor 52%,
                    transparent 52%
                ),
                linear-gradient(
                    0deg,
                    transparent 44%,
                    currentColor 44%,
                    currentColor 52%,
                    transparent 52%
                );
    opacity: .6;
}

/* File Type Colors */

.file-zip {
    color: #d1b834;
}

.file-pdf {
    color: #c74d51;
}

.file-doc {
    color: #5c77ab;
}

.file-ppt {
    color: #d77d3d;
}

.file-txt {
    color: #82a7b3;
}

.file-file {
    color: #84919c;
}

/* File Type Symbols */

.file-zip .file-symbol {
    width: 7px;
    border: 0;
    background: repeating-linear-gradient(
        0deg,
        currentColor 0 2px,
        transparent 2px 4px
    );
}

.file-pdf .file-symbol,
.file-ppt .file-symbol,
.file-doc .file-symbol,
.file-txt .file-symbol {
    background: none;
    border-top: 2px solid;
    border-right: 0;
    border-left: 0;
    border-bottom: 2px solid;
}

/* Footer */

.site-footer {
    border-top: 1px solid #d8e0e6;
    background: #fff;
    text-align: center;
    padding: 22px 0 28px;
}

.footer-brand img {
    height: auto;
    max-width: 310px;
    width: 90%;
    display: block;
    margin: auto;
}

.footer-inside p {
    font-size: 12px;
    margin: 2px;
}

.footer-terms {
    font-size: 12px;
    color: #126987;
}

/* Download Terms Dialog */

dialog {
    border: 1px solid #cdd9e2;
    border-radius: 9px;
    box-shadow: 0 18px 60px #0006;
    width: min(560px, calc(100% - 30px));
    padding: 22px 25px;
    color: #202d38;
}

dialog::backdrop {
    background: #0008;
}

dialog h2 {
    font-size: 16px;
    margin: 0 0 14px;
}

dialog p {
    font-size: 13px;
    line-height: 1.62;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

/* Alerts and Supporting Content */

.alert {
    background: #fff8e8;
    border: 1px solid #e2cf9f;
    padding: 14px;
    margin: 12px 0;
}

.muted {
    color: #687783;
}

.body-copy {
    max-width: 900px;
}

.body-copy ul {
    padding-left: 22px;
}

.body-copy p {
    margin-bottom: 14px;
}

/* Responsive: Tablets */

@media (max-width: 750px) {
    .hero {
        height: 180px;
    }

    .brand-word {
        font-size: 42px;
    }

    .nav-spacer {
        display: none;
    }

    .nav-inner {
        justify-content: center;
    }

    .topnav a,
    .category-toggle {
        padding: 10px 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page {
        padding: 25px 0;
    }

    .tool-table {
        min-width: 790px;
    }
}

/* Responsive: Mobile */

@media (max-width: 475px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .search-line {
        flex-direction: column;
    }

    .container {
        width: calc(100% - 28px);
    }
}
