:root {
    --brand-green: #006b3f;
    --brand-green-dark: #00472c;
    --ink: #163021;
    --body-text: #244232;
    --muted: #5d7167;
    --line: #d7e2dc;
    --soft: #f6faf7;
}

body {
    margin: 0;
    color: var(--body-text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: #005f3a;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

a:hover,
a:focus {
    color: var(--brand-green-dark);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    padding: 0.55rem 0.8rem;
    color: #ffffff;
    background: var(--brand-green);
}

.skip-link:focus {
    top: 1rem;
}

.container {
    max-width: 980px;
}

.site-header {
    padding: 1.25rem 0 0.8rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    display: block;
    width: 150px;
    height: 50px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
    text-decoration: underline;
}

.page-shell {
    padding: 2rem 1rem 2.5rem;
}

.content-section {
    clear: both;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.content-section:last-child {
    border-bottom: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    margin: 0.25rem 0 1.1rem;
    font-size: 1.65rem;
}

h2 {
    margin: 0.5rem 0 0.85rem;
    font-size: 1.35rem;
}

h3 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1rem;
}

.intro {
    padding-top: 0;
}

.legacy-logo--right {
    float: right;
    width: 150px;
    height: 150px;
    margin: 0.2rem 0 1rem 1.25rem;
}

.legacy-image,
.legacy-image-link {
    display: block;
    width: auto;
    max-width: 155px;
    max-height: 72px;
    object-fit: contain;
}

.legacy-image-link {
    width: 155px;
    text-decoration: none;
}

.legacy-image-link.legacy-image--wide {
    width: 220px;
}

.legacy-image-link.legacy-image--appointment {
    width: 150px;
    max-width: 150px;
    max-height: none;
}

.legacy-image-link .legacy-image {
    width: 100%;
    max-width: 100%;
}

.legacy-image-link.legacy-image--appointment .legacy-image {
    max-height: none;
}

.legacy-image--right {
    float: right;
    margin: 0.15rem 0 0.75rem 1rem;
}

.legacy-image--left {
    float: left;
    margin: 0.15rem 1rem 0.75rem 0;
}

.legacy-image--wide {
    max-width: 220px;
}

.product-logo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1.25rem 1.75rem;
    align-items: center;
    max-width: 560px;
    margin: 1rem auto 0.25rem;
}

.product-logo-list a {
    display: inline-flex;
    width: 225px;
    min-height: 92px;
    align-items: center;
    justify-content: center;
}

.product-logo-list img {
    width: 160px;
    max-width: 160px;
    height: auto;
    max-height: 54px;
}

.product-logo-list .product-logo-large {
    width: 225px;
    max-width: 225px;
    max-height: 86px;
}

.founder-photo {
    float: right;
    width: 180px;
    height: auto;
    margin: 0.2rem 0 1rem 1.25rem;
}

.software-motif-link {
    float: right;
    width: 250px;
    margin: 0.15rem 0 1rem 1.25rem;
}

.software-motif-link img {
    width: 100%;
    height: auto;
}

.site-footer {
    padding: 2rem 0;
    color: #d7e4dd;
    background: #112119;
    font-size: 0.92rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.footer-software-motif-logo {
    display: inline-flex;
    max-width: 250px;
}

.footer-software-motif-logo img {
    width: 100%;
    height: auto;
}

.footer-trademarks,
.footer-copy {
    max-width: 860px;
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .site-header__inner {
        display: block;
    }

    .site-nav {
        margin-top: 0.8rem;
    }

    .legacy-logo--right,
    .legacy-image--right,
    .legacy-image--left,
    .founder-photo,
    .software-motif-link {
        float: none;
        margin: 0 0 1rem;
    }

    .legacy-logo--right {
        width: 110px;
        height: 110px;
    }

    .founder-photo {
        width: 160px;
    }

    .legacy-image-link.legacy-image--appointment {
        width: min(260px, 100%);
    }

    .product-logo-list {
        grid-template-columns: 1fr;
        max-width: 260px;
    }
}
