*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1 a {
    text-decoration: none;
    font-weight: bold;
    color: darkblue;
}

h1 a img {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
    vertical-align: -0.125em;
}

#root,
#__next {
    isolation: isolate;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

main h1 {
    margin-bottom: 20px;
}

.report table {
    margin-bottom: 20px;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.report td {
    padding: 5px;
    overflow-x: hidden;
    word-break: break-word;
}

.report td.key {
    width: 200px;
    font-weight: bold;
    background-color: lightpink;
}

.report tr {
    display: block;
    width: 100%;
}

.report tr:nth-child(odd) {
    background-color: lightgray;
}

.report tr:not(:last-child) {
    border-bottom: 1px solid #000;
}

#input {
    margin: 0 auto;
    width: fit-content;
    padding: 10px 20px;
    border: 1px solid black;
}

.section {
    margin: 15px 0;
    padding: 5px 0;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
}

.button {
    padding: 10px 20px;
    border: 1px solid black;
    background-color: lightgray;
    cursor: pointer;
    color: black;
    font-weight: bold;
}

.controls {
    margin: 20px auto;
    padding: 10px;
    width: fit-content;
}

.button:hover {
    background-color: lightblue;
}

.button:visited {
    color: black;
}

.small {
    font-size: 0.8em;
    color: darkgrey;
}

/* A compact, responsive summary above the report form. */
.flow-protocols {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #d9e1eb;
    border-radius: 12px;
    background: #f7f9fc;
    color: #243247;
    font-family: system-ui, sans-serif;
}

.flow-protocols h2 {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 600;
}

#flow-protocols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

#flow-protocols li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding: 12px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px #24324712;
    font-size: 0.875rem;
}

.flow-label {
    flex: 1;
}

.flow-version {
    color: #173f78;
    font-weight: 600;
    white-space: nowrap;
}

#flow-protocols small {
    flex-basis: 100%;
    color: #586579;
}
