/* Codespeed stylesheet.
 *
 * Selectors are kept stable because the templates and the JavaScript in
 * changes.js, timeline.js and comparison.js rely on them (for example
 * #content and #plotwrapper are measured to size loading messages).
 * Visual values live in the custom properties below; change the look there.
 */

/* Light theme. */
:root {
    color-scheme: light;

    --font-sans: "Fira Sans", Helvetica, Arial, sans-serif;
    --font-mono: "Menlo", "ProFont", "Inconsolata", "Lucida Sans Console", monospace;

    --page-bg: #f3f4f6;
    --surface: #ffffff;
    --surface-alt: #f7f8fa;
    --border: #e1e4e8;
    --border-strong: #c9ced6;

    --text: #1f2328;
    --text-muted: #636c76;
    --text-faint: #8b949e;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #e8efff;
    --warning: #d9480f;

    /* Changes table cells: background and the text on it */
    --status-red: #FF5640;
    --status-red-text: #1f2328;
    --status-green: #9FD54D;
    --status-green-text: #1f2328;
    --status-lightgreen: #c2e927;
    --status-lightgreen-text: #1f2328;
    --status-yellow: #FFD843;
    --status-yellow-text: #1f2328;
    /* Home page report summaries: coloured text on the card */
    --summary-red: #FF5640;
    --summary-green: #5c9a1b;
    --summary-lightgreen: #8bb000;
    --summary-yellow: #c9a000;

    /* Read by the chart scripts (Theme.chartColors in codespeed.js) for the
       parts of a canvas chart the stylesheet cannot reach */
    --chart-text: #636c76;
    --chart-grid: rgba(0, 0, 0, 0.1);

    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
    --shadow-raised: 0 6px 16px rgba(16, 24, 40, 0.12);
    --tooltip-bg: rgba(255, 255, 255, 0.96);
    /* The home page thumbnails are screenshots of the light theme */
    --thumb-filter: none;
    --sidebar-width: 14em;
    --gap: 1em;
}

/* Dark theme. */
:root[data-theme="dark"] {
    color-scheme: dark;

    --page-bg: #0d1117;
    --surface: #161b22;
    --surface-alt: #1f242c;
    --border: #30363d;
    --border-strong: #484f58;

    --text: #e6edf3;
    --text-muted: #9ea7b3;
    --text-faint: #7d8590;

    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --accent-soft: #1b2d4a;
    --warning: #f0883e;

    --status-red: #9f2f24;
    --status-red-text: #fbe3e0;
    --status-green: #3b7a28;
    --status-green-text: #e6f4de;
    --status-lightgreen: #5f8a1e;
    --status-lightgreen-text: #eef7da;
    --status-yellow: #96760e;
    --status-yellow-text: #fcf2d0;
    --summary-red: #ff7b72;
    --summary-green: #7ccf5a;
    --summary-lightgreen: #b8e04c;
    --summary-yellow: #e3b341;

    --chart-text: #9ea7b3;
    --chart-grid: rgba(255, 255, 255, 0.12);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-raised: 0 6px 16px rgba(0, 0, 0, 0.55);
    --tooltip-bg: rgba(22, 27, 34, 0.97);
    --thumb-filter: invert(0.88) hue-rotate(180deg);
}

/* Global styles */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--page-bg);
}
a:link, a:visited { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hover); text-decoration: underline; }

.float-right { float: right; }
.float-left { float: left; }

/* Structural */
div#container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* Header */
div#title {
    display: flex;
    align-items: center;
    gap: 0.6em;
    min-height: 56px;
    margin: var(--gap) 0 1.2em;
    padding: 0.4em var(--gap);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
div#title a { display: inline-flex; align-items: center; }
div#title img { display: block; height: 40px; padding: 0; margin: 0; }
div#title h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.01em;
    color: var(--text);
}

ul.inline { margin: 0; padding: 0; }
ul.inline li { display: inline-block; list-style: none; }

ul#links {
    margin: 0 0 0 auto;
    font-size: 1.1em;
}
ul#links li { margin-left: 0.25em; }
ul#links li a:link, ul#links li a:visited {
    display: inline-block;
    padding: 0.35em 0.75em;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    text-decoration: none;
}
ul#links li a:hover, ul#links li a:focus {
    color: var(--text);
    background-color: var(--surface-alt);
    text-decoration: none;
}

/* Theme toggle: shows the icon of the theme a click switches to */
button#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    margin-left: 0.25em;
    padding: 0;
    color: var(--text-muted);
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
button#theme-toggle:hover, button#theme-toggle:focus-visible {
    color: var(--text);
    background-color: var(--surface-alt);
}
button#theme-toggle svg { width: 1.1em; height: 1.1em; }
button#theme-toggle .icon-sun,
:root[data-theme="dark"] button#theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] button#theme-toggle .icon-sun { display: block; }

/* A site can ship a second logo for the dark theme (see base_site.html) */
:root[data-theme="dark"] div#title img.logo-light,
:root:not([data-theme="dark"]) div#title img.logo-dark { display: none; }

div#wrapper { margin: 0; }

/* Section tabs */
div#nav ul {
    display: flex;
    gap: 0.25em;
    padding: 0 0 0 calc(var(--sidebar-width) + 0.8em);
    margin-bottom: 0.6em;
    border-bottom: 1px solid var(--border);
}
div#nav ul li { background: none; }
div#nav ul li a {
    display: block;
    padding: 0.5em 1.1em;
    margin-bottom: -1px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
div#nav ul li a:hover { color: var(--text); background-color: var(--surface-alt); }
div#nav ul li.current a {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

div#workarea { padding: 0; background: none; }

/* Cards */
div#configbar,
div#content,
div.about_content,
.sidebox {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Home page: a centred column with three menu boxes in a row and the
   results below them at the same width */
div#presentation {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    text-align: center;
}
div#presentation > a { display: flex; }
div#presentation div#reports, div#presentation div#historical { grid-column: 1 / -1; }
div#presentation h2, div#presentation h4 { margin-top: 0.2em; margin-bottom: 0.2em; }

div#presentation > a { text-decoration: none; color: inherit; }
div#presentation div {
    position: relative;
    display: inline-block;
    vertical-align: top;
}
div#presentation div.menubox {
    flex: 1;
    display: block;
    margin: 0;
    padding: 1em 1em 0.8em;
    color: var(--text);
    text-align: center;
    font-size: 0.95em;
    cursor: pointer;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
div#presentation div.menubox:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-raised);
    transform: translateY(-2px);
}
div#presentation div.menubox h2 { font-size: 1.1em; font-weight: 600; }
div#presentation div.menubox p { color: var(--text-muted); }

/* The thumbnail sits in a pseudo-element so the dark theme can filter it
   without touching the text */
div#presentation div.menubox p {
    position: relative;
    min-height: 4.6em;
    margin: 0.6em 0 0;
    padding-left: 122px;
    text-align: left;
}
div#presentation div.menubox p::before {
    content: '';
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 122px;
    height: 65px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: auto 65px;
    filter: var(--thumb-filter);
}
div#presentation div#changes p::before { background-image: url(../images/changes.png); }
div#presentation div#timeline p::before { background-image: url(../images/timeline.png); }
div#presentation div#comparison p::before { background-image: url(../images/comparison.png); }


/* Sidebar and content columns */
div#sidebar { width: var(--sidebar-width); float: left; }

div#configbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.3em;
    margin-left: calc(var(--sidebar-width) + 0.8em);
    margin-bottom: 0.8em;
    padding: 0.7em 1em;
}
div#configbar span { padding: 2px 0; }
div#configbar span.options { padding-right: 1.8em; font-size: 0.9em; white-space: nowrap; }
div#configbar input { margin-right: 0; vertical-align: middle; }
div#configbar select { margin: 0 0.3em; }

div#contentnav { display: flex; gap: 1em; margin-bottom: 0.5em; }
div#contentnav a {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.9em;
}
div#contentnav a svg { width: 1.1em; height: 1.1em; }
div#contentnav #next { margin-left: auto; }

div#content, div.about_content {
    margin-left: calc(var(--sidebar-width) + 0.8em);
    text-align: center;
    padding: 1em;
}
div.about_content { text-align: left; max-width: calc(100ch + 2em); }
/* Keep prose readable: wrap paragraphs at roughly 100 characters */
div.about_content p, div.about_content li, div.about_content h2, div.about_content h3 {
    max-width: 100ch;
}

.sidebox {
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.8em;
    font-size: 0.9em;
}
.boxhead {
    margin: 0;
    padding: 0;
    text-align: left;
    background: none;
    border-bottom: 1px solid var(--border);
}
.boxhead h2 {
    margin: 0;
    padding: 0.55em 0.9em;
    font-size: 1em;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.boxbody { margin: 0; padding: 0.6em 0.9em 0.7em; }
.boxbody ul { list-style: none; margin: 0 0 0.5em; padding: 0 0 0.2em; }
.boxbody ul li { padding: 0.1em 0 0.1em 0.3em; }
.boxbody label { cursor: pointer; }
.boxbody input { margin-left: 0; vertical-align: top; }
#options li { margin-bottom: 0.8em; }
.seriescolor { float: right; margin-top: 3px; height: 12px; width: 12px; border-radius: 2px; }
.compplot-wrap { display: inline-block; }

a.togglefold { color: var(--text); font-weight: 500; }
a.togglefold:hover { text-decoration: none; }
a.togglefold::before {
    /* Bootstrap Icons chevron-right (MIT, twbs/icons), coloured via mask */
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.35em;
    vertical-align: -0.05em;
    background-color: var(--text-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='1.2' stroke-linejoin='round' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='1.2' stroke-linejoin='round' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.15s ease;
    transform: rotate(90deg);
}
a.togglefold.folded::before { transform: rotate(0deg); }
a.togglefold:hover::before { background-color: var(--text); }
.checklinks { font-size: 0.85em; color: var(--text-faint); }
a.checkall, a.uncheckall { color: var(--text-faint); }
a.checkall:hover, a.uncheckall:hover { color: var(--accent); }

p.errormessage { line-height: 10em; margin-bottom: 10em; }

/* Home page history section */
div#historical { max-width: 800px; margin: 0 auto; padding-bottom: 3em; text-align: center; }
div#baseline-comparison-plot { width: 750px; height: 400px; margin: 0 auto; }
div#historical-plot { width: 600px; height: 400px; margin: 0 auto; }
div#historical p { margin: 0.6em 0 1em; }
div#historical p.plot-caption { font-size: 0.9em; color: var(--text-muted); }

/* Changes page layout: previous/next navigation across the top, the
   results table on the left and the revision details on the right */
div#contentwrap {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    column-gap: 0.8em;
    align-items: start;
}
div#contentwrap > div { grid-column: 1 / -1; }
div#contentwrap > div.leftcolumn { grid-column: 1; }
div#contentwrap > div.rightcolumn { grid-column: 2; }

/* Tables */
table.tablesorter, table.info, table.revision, table.reports {
    width: 100%;
    font-size: 0.93em;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--surface);
}

table.reports { margin-bottom: 1.5em; }
a.feed { text-decoration: underline; }
table.reports caption {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.4em;
    text-align: center;
}
table.reports caption a { color: var(--text); }
table.reports caption a img { border: 0; vertical-align: middle; height: 14px; margin-bottom: 1px; }
table.reports td { padding: 0.45em 0.6em; border-top: 1px solid var(--border); }
table.reports tr:first-child td { border-top: 0; }
/* Only the commit column wraps; keep the executable and summary on one line */
table.reports td:not(:first-child) { white-space: nowrap; }
table.reports tr.status-none td.summary { opacity: 0.5; }

table.tablesorter { margin-bottom: 0.8em; }
table.tablesorter thead tr th {
    padding: 0.5em 14px 0.5em 0.5em;
    width: 5em;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text);
    background-color: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
table.tablesorter thead tr th:last-child { border-right: 0; }
table.tablesorter thead tr th.header { position: relative; cursor: pointer; }
/* Sort indicator: both arrows on a sortable column, one on the sorted column.
   Drawn through a mask so it takes the theme's colours. */
table.tablesorter thead tr th.header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4px;
    width: 8px;
    height: 10px;
    margin-top: -5px;
    background-color: var(--text-faint);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 0 8 4H0zM0 6h8l-4 4z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 0 8 4H0zM0 6h8l-4 4z'/%3E%3C/svg%3E") no-repeat center / contain;
}
table.tablesorter tfoot tr td {
    padding: 0.4em 0.5em;
    vertical-align: top;
    text-align: right;
    font-weight: 600;
    border-top: 2px solid var(--border-strong);
    border-right: 1px solid var(--border);
}
table.tablesorter tbody td {
    color: var(--text);
    padding: 0.35em 0.5em;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: top;
    text-align: right;
    white-space: nowrap;
}
table.tablesorter tbody td:last-child, table.tablesorter tfoot td:last-child { border-right: 0; }
table.tablesorter tbody tr.odd td { background-color: var(--surface-alt); }
table.tablesorter thead tr .headerSortUp::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 2.5 8 6.5H0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M4 2.5 8 6.5H0z'/%3E%3C/svg%3E");
}
table.tablesorter thead tr .headerSortDown::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M0 3.5h8l-4 4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M0 3.5h8l-4 4z'/%3E%3C/svg%3E");
}
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
    background-color: var(--accent-soft);
    color: var(--accent);
}
table.tablesorter thead tr .headerSortDown::after,
table.tablesorter thead tr .headerSortUp::after { background-color: var(--accent); }
table.tablesorter tbody td:not(:first-child),
table.tablesorter tfoot td:not(:first-child) {
    font-family: var(--font-mono);
    font-size: 14px;
}
table.tablesorter tbody td:first-child,
table.tablesorter tfoot td:first-child { text-align: left; }

table.tablesorter tbody tr td.status-red, td.status-red {
    background-color: var(--status-red); color: var(--status-red-text); }
.reports tr.status-red td.summary { color: var(--summary-red); font-weight: 600; }
table.tablesorter tbody tr td.status-green, td.status-green {
    background-color: var(--status-green); color: var(--status-green-text); }
tr.status-green td.summary { color: var(--summary-green); font-weight: 600; }
table.tablesorter tbody tr td.status-yellow, td.status-yellow {
    background-color: var(--status-yellow); color: var(--status-yellow-text); }
tr.status-yellow td.summary { color: var(--summary-yellow); font-weight: 600; }
table.tablesorter tbody tr td.status-lightgreen, td.status-lightgreen {
    background-color: var(--status-lightgreen); color: var(--status-lightgreen-text); }
tr.status-lightgreen td.summary { color: var(--summary-lightgreen); font-weight: 600; }

table.tablesorter tbody tr.highlight td, tr.highlight td {
    background-color: var(--accent-soft) !important;
    cursor: pointer;
}

table.revision { table-layout: fixed; }
table.revision col:first-child, table.info col:first-child { width: 5.3em; }
table.info, table.revision { margin-bottom: 1em; }
table.info th, table.revision th {
    background-color: var(--surface-alt);
    vertical-align: top;
    font-weight: 600;
    text-align: left;
}
table.info th, table.info td, table.revision th, table.revision td {
    padding: 0.4em 0.6em;
    border-bottom: 1px solid var(--border);
}
table.info tr:last-child th, table.info tr:last-child td,
table.revision tr:last-child th, table.revision tr:last-child td { border-bottom: 0; }
table.info tbody .infofirst { width: 10em; text-align: left; }

.repo-path td, .commit-id td {
    font-family: monospace;
    white-space: pre;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody.commits tr td { border-bottom: 1px solid var(--border); vertical-align: top; }
tbody.commits tr > td:first-child { padding-right: 20px; }
tbody.commits tr td.date, table.revision tr .infofirst, div.author, span.note, table.info tbody .infofirst {
    font-size: 0.92em;
    color: var(--text-muted);
}
.revision tbody th { font-weight: inherit; font: inherit; }
tbody.commits tr td.date { padding: 0.3em; width: 5em; text-align: right; }
.commits pre {
    display: block;
    margin: 2px;
    white-space: pre-wrap;
    overflow: auto;
}

a#permalink, a#exportcsv {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    font-size: 0.9em;
}
/* The download glyph's viewBox carries a margin, so both look the same size */
a#permalink svg, a#exportcsv svg { width: 1.1em; height: 1.1em; }
a#exportcsv + a#permalink { margin-left: 1em; }

/* Plot styles */
div#plot { text-align: left; height: 500px; width: 100%; }

div.miniplot {
    cursor: pointer;
    margin: 0.5em;
    text-align: left;
    float: left;
    height: 130px;
    width: 23%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
}
div.miniplot:hover { border-color: var(--accent); background-color: var(--surface-alt); }

#dygraph-tooltip {
    display: none;
    position: absolute;
    background: var(--tooltip-bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    box-shadow: var(--shadow-raised);
}

div.compplot {
    text-align: left;
    height: 450px;
    float: left;
    margin-right: 0.8em;
    margin-bottom: 2em;
}

/* Form controls */
select, input[type="text"], input[type="number"] {
    font: inherit;
    font-size: 0.93em;
    color: var(--text);
    padding: 0.2em 0.4em;
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}
select:focus, input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* Messages */
p.note, p.warning {
    margin-top: 0;
    padding: 1em 1.2em;
    text-align: left;
    font-size: 0.93em;
    background-color: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
p.warning { margin-left: 10px; border-left: 3px solid var(--warning); }
p.warning::before { content: '⚠ '; color: var(--warning); }
p.note {
    margin: 20px 2.4em 0;
    padding-left: 55px;
    background-image: url(../images/note.png);
    background-repeat: no-repeat;
    background-position: 8px center;
}

/* Footer */
div.footer {
    color: var(--text-faint);
    font-size: 0.85em;
    margin: 1.5em auto 1em;
    text-align: center;
}
div.footer a { color: var(--text-muted); font-weight: 500; text-decoration: none; }
div.footer a:hover { color: var(--accent); text-decoration: underline; }

/* Clearfix */
.clearfix::after { content: ""; display: table; clear: both; }

/* Responsive */
@media only screen and (max-width: 1100px) {
    :root { --sidebar-width: 12.5em; }
    div#container { padding: 0 0.5em; }
}

@media only screen and (max-width: 1090px) {
    div#plot { height: 450px; }
    div.miniplot { height: 120px; }
}

@media only screen and (max-width: 1005px) {
    div#contentwrap { grid-template-columns: minmax(0, 1fr); }
    div#contentwrap > div.leftcolumn, div#contentwrap > div.rightcolumn { grid-column: 1; }
    div#title { min-height: 48px; margin-bottom: 0.6em; }
    div#title img { height: 32px; }
    div#title h2 { font-size: 1em; }
    div#nav ul { padding-left: 0; }
    div#presentation { grid-template-columns: 1fr; }
    div#plot { height: 400px; }
    div.miniplot { height: 100px; }
    div.compplot { height: 400px; }
}

@media only screen and (max-width: 760px) {
    div#sidebar { float: none; width: auto; display: flex; flex-wrap: wrap; gap: 0.6em; }
    div#sidebar .sidebox { flex: 1 1 14em; }
    div#configbar, div#content, div.about_content { margin-left: 0; }
    div#historical-plot, div#baseline-comparison-plot { width: 100%; }
}

/* speed.pypy.org additions */
.envlinecolor { float: right; font-size: 12px; line-height: 18px; color: var(--text-muted); }
a#exportcsv:hover { text-decoration: underline; }
