.page-content {
    text-align: start;
    align-items: start;
}
a {
    text-decoration: none;
    color: #000;
}
a:hover {
    color: #0fa0ce;
}
.container {
    max-width: 1200px;
    margin-top: 1rem;
}
.compact-form
    :is(
        input[type="email"],
        input[type="password"],
        input[type="text"],
        input[type="submit"],
        button
    ) {
    height: 32px;
    padding: 4px 8px;
    line-height: 24px;
    margin: 0;
    box-sizing: border-box;
}
.compact-form label {
    margin-bottom: 2px;
}
.header {
    margin-top: 2rem;
    text-align: center;
}
.value-prop {
    margin-top: 1rem;
}
.value-props {
    margin: 4rem 0;
}
.docs-header {
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.2rem;
    font-weight: 600;
}
.docs-section {
    border-top: 1px solid #eee;
    padding: 4rem 0;
    margin-bottom: 0;
}
.value-img {
    display: block;
    text-align: center;
    margin: 2.5rem auto 0;
}
.example-grid :is(.column, .columns) {
    background: #eee;
    text-align: center;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    height: 30px;
    line-height: 30px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}
.docs-example :is(.row, form),
.docs-example.row {
    margin-bottom: 0;
}
.docs-example :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 1rem;
}
.heading-font-size {
    font-size: 1.2rem;
    color: #999;
    letter-spacing: normal;
}
.code-example {
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.code-example-body {
    white-space: pre;
    word-wrap: break-word;
}
.example {
    position: relative;
    margin-top: 4rem;
}
.example-header {
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}
.example-description {
    margin-bottom: 1.5rem;
}
.example-screenshot-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #eee;
    height: 250px;
}
.example-screenshot {
    width: 100%;
    height: auto;
}
.example-screenshot.coming-soon {
    width: auto;
    position: absolute;
    background: #eee;
    inset: 5px;
}
.navbar {
    height: auto;
    padding: 4px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    background: #0096c7;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #caf0f8;
    border-bottom: 1px solid #eee;
}

.spacer {
    margin-left: auto;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    padding: 6px 12px;
    box-sizing: border-box;
}
.navbar-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.navbar-left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
#logged-in button {
    margin: 0;
}
#logged-out,
#logged-in {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}
.is-hidden {
    display: none !important;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.overlay-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    width: min(520px, 92vw);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.transaction-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-form .txn-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-form .txn-row > label {
    flex: 0 0 150px;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.transaction-form .txn-row > :is(input, select) {
    flex: 1 1 auto;
    margin: 0;
}

.transaction-form .txn-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 160px;
}

.transaction-form .txn-inline-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-form .txn-inline-item > label {
    margin: 0;
    white-space: nowrap;
}

.transaction-form .txn-inline-item > input {
    width: 140px;
    margin: 0;
}

.overlay-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.chart {
    margin: 2rem 0;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
}

.chart svg {
    display: block;
    width: 100%;
    height: auto;
}
.bargraph {
    margin: 0 0;
    padding: 2px;
    border: 0px solid #e0e0e0;
    border-radius: 0px;
    align-items: center;
    background: #fff;
}

.bargraph svg {
    display: inline flow-root;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.metrics-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metrics-svg {
    height: 4rem;
    width: auto;
}

.metrics-table {
    width: auto;
    border-collapse: collapse;
}

.navbar :is(form, p) {
    margin: 0;
}
.navbar :is(input, button) {
    margin: 0;
}
.navbar-login {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    margin: 0;
}
.navbar-login input {
    width: 220px;
}
.title {
    text-align: center;
}
.page-body {
    text-align: left;
}
#logged-in {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    text-align: right;
}

table:not(.metrics-table) th,
table:not(.metrics-table) td {
    padding: 1px 1px;
}

.text-small {
    font-size: 1rem;
}
.metrics-row {
    display: flex;
    align-items: center; /* vertical centring */
    gap: 8px;
}

.metrics-svg {
    flex: 0 0 auto;
}
.metrics-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #7fb7f2;

    margin: 0;
}

.metrics-table th,
.metrics-table td {
    padding: 1px 2px;
    color: #0fa0ce;
    border-bottom: none;
    vertical-align: middle;
}

.metrics-table th {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #052c70;
    text-align: right;
    padding-right: 8px;
}

.metrics-table td {
    text-align: left;
    font-size: 1rem;
    padding-left: 2px;
    color: #052c70;
}

.metrics-table tr:last-child td {
    color: #052c70;
    border-bottom: none;
}

@media (min-width: 550px) {
    .header {
        margin-top: 6rem;
    }
    .value-props {
        margin-top: 9rem;
        margin-bottom: 7rem;
    }
    .value-img {
        margin-bottom: 1rem;
    }
    .example-grid :is(.column, .columns) {
        margin-bottom: 1.5rem;
    }
    .docs-section {
        padding: 6rem 0;
    }
    .example-send-yourself-copy {
        float: right;
        margin-top: 12px;
    }
    .example-screenshot-wrapper {
        position: absolute;
        width: 48%;
        height: 100%;
        left: 0;
        max-height: none;
    }
}
@media (min-width: 750px) {
    .navbar + .docs-section {
        border-top-width: 0;
    }
    .navbar,
    .navbar-spacer {
        width: 100%;
        height: auto;
        min-height: 2.5rem;
        text-align: start;
        z-index: 99;
    }
    .navbar-spacer {
        display: none;
    }
    .navbar > .container {
        width: 100%;
    }
    .navbar-list {
        list-style: none;
        margin-bottom: 0;
    }
    .navbar-item {
        position: relative;
        margin-bottom: 0;
    }
    .navbar-link {
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.2rem;
        margin-right: 35px;
        text-decoration: none;
        line-height: normal;
        padding: 0.25rem 0.25rem;
        display: inline-block;
        color: #fff;
    }
    .navbar-link.active {
        color: #000;
    }
    .has-docked-nav .navbar {
        position: fixed;
        top: 0;
        left: 0;
    }
    .has-docked-nav .navbar-spacer {
        display: block;
    }
    .has-docked-nav .navbar > .container {
        width: 80%;
    }
    .popover {
        display: none;
        position: absolute;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        top: 92%;
        left: -50%;
        filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
    }
    .popover.open {
        display: block;
    }
    .popover-item:first-child .popover-link:after,
    .popover-item:first-child .popover-link:before {
        bottom: 100%;
        left: 50%;
        border: solid rgba(0, 0, 0, 0);
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }
    .popover-item:first-child .popover-link:after {
        border-color: rgba(255, 255, 255, 0);
        border-bottom-color: #fff;
        border-width: 10px;
        margin-left: -10px;
    }
    .popover-item:first-child .popover-link:before {
        border-color: rgba(238, 238, 238, 0);
        border-bottom-color: #eee;
        border-width: 11px;
        margin-left: -11px;
    }
    .popover-list {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .popover-item {
        padding: 0;
        margin: 0;
    }
    .popover-link {
        position: relative;
        color: #222;
        display: block;
        padding: 8px 20px;
        border-bottom: 1px solid #eee;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        letter-spacing: 0.1rem;
    }
    .popover-item:first-child .popover-link {
        border-radius: 4px 4px 0 0;
    }
    .popover-item:last-child .popover-link {
        border-radius: 0 0 4px 4px;
        border-bottom-width: 0;
    }
    .popover-link:hover {
        color: #fff;
        background: #33c3f0;
    }
    .popover-link:hover,
    .popover-item:first-child .popover-link:hover:after {
        border-bottom-color: #33c3f0;
    }
}

.compact-form input.underline-input {
    border: none;
    border-bottom: 1px solid #555;
    border-radius: 0;
    padding: 6px 2px;
    outline: none;
    background: transparent;
    box-shadow: none;
}

input.underline-input,
input.underline-input[type="text"],
input.underline-input[type="number"] {
    appearance: none;
    -webkit-appearance: none;

    border: none;
    border-bottom: 1px solid #555;
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    padding: 6px 2px;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

input.underline-input:focus,
input.underline-input[type="text"]:focus,
input.underline-input[type="number"]:focus {
    border: none;
    border-bottom: 2px solid #000;
    outline: none;
    box-shadow: none;
}
