/* Beastie Bot Species Status. No external fonts or frameworks. */

:root {
    --bg: #ffffff;
    --fg: #1b1b1b;
    --muted: #4f5359;
    --link: #0645ad;
    --link-visited: #4b2e83;
    --border: #c8ccd1;
    --surface: #f5f6f7;
    --code-bg: #f2f3f4;
    --note-bg: #fdf6e3;
    --note-border: #d9b44a;
    --focus: #1d5fd1;
    --grey-badge: #5c5c5c;
    --shown-bg: #eaf1fb;
    --badge-ring: transparent;
    /* Borders of form controls: at least 3:1 against --bg and --code-bg. */
    --control-border: #767c84;
    /* Row colours of the combined assessment history, one per IUCN id: a background (text, links,
       muted text and grey badges at least 4.5:1 on it) and a mark for the row's left edge and the
       legend swatch (at least 3:1 against the background and against --bg). */
    --id-tint-1: #e7effc;
    --id-mark-1: #2563c9;
    --id-tint-2: #fbf0d9;
    --id-mark-2: #a86b00;
    --id-tint-3: #e2f3e7;
    --id-mark-3: #2a7f45;
    --id-tint-4: #efe7fa;
    --id-mark-4: #7448c2;
    --id-tint-5: #fbe6ec;
    --id-mark-5: #bb3a62;
    --id-tint-6: #dff2f2;
    --id-mark-6: #1a7f80;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #111418;
        --fg: #e6e8eb;
        --muted: #aab1b9;
        --link: #8db7f7;
        --link-visited: #c3a6f2;
        --border: #3b424b;
        --surface: #1a1f25;
        --code-bg: #1d232a;
        --note-bg: #2a2516;
        --note-border: #8c7330;
        --focus: #8db7f7;
        --grey-badge: #a6a6a6;
        --shown-bg: #1c2a3d;
        --badge-ring: rgba(255, 255, 255, 0.35);
        --control-border: #6f7882;
        --id-tint-1: #1a2840;
        --id-mark-1: #6fa3f2;
        --id-tint-2: #33281a;
        --id-mark-2: #d9a441;
        --id-tint-3: #1a2f22;
        --id-mark-3: #5cbf7c;
        --id-tint-4: #2a2242;
        --id-mark-4: #ae8ff0;
        --id-tint-5: #3a1e2a;
        --id-mark-5: #ee86a6;
        --id-tint-6: #152f30;
        --id-mark-6: #4dbfbf;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #111418;
    --fg: #e6e8eb;
    --muted: #aab1b9;
    --link: #8db7f7;
    --link-visited: #c3a6f2;
    --border: #3b424b;
    --surface: #1a1f25;
    --code-bg: #1d232a;
    --note-bg: #2a2516;
    --note-border: #8c7330;
    --focus: #8db7f7;
    --grey-badge: #a6a6a6;
    --shown-bg: #1c2a3d;
    --badge-ring: rgba(255, 255, 255, 0.35);
    --control-border: #6f7882;
    --id-tint-1: #1a2840;
    --id-mark-1: #6fa3f2;
    --id-tint-2: #33281a;
    --id-mark-2: #d9a441;
    --id-tint-3: #1a2f22;
    --id-mark-3: #5cbf7c;
    --id-tint-4: #2a2242;
    --id-mark-4: #ae8ff0;
    --id-tint-5: #3a1e2a;
    --id-mark-5: #ee86a6;
    --id-tint-6: #152f30;
    --id-mark-6: #4dbfbf;
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--link);
}

a:visited {
    color: var(--link-visited);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

code, textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

code {
    background: var(--code-bg);
    padding: 0 0.2em;
    border-radius: 3px;
    font-size: 0.9em;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 1.25rem 0 0.5rem;
}

h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.small-heading {
    font-size: 1rem;
    border: 0;
    margin: 1.5rem 0 0.25rem;
    padding: 0;
}

.wrap {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 16px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -3rem;
    background: var(--bg);
    padding: 0.5rem 0.75rem;
    z-index: 10;
}

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

/* Header and footer */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.site-name {
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
}

.site-name:visited {
    color: var(--fg);
}

.site-nav {
    margin-left: auto;
}

/* Theme control. Hidden until theme.js has set data-theme on <html>, so it never shows without
   JavaScript; invisible (but taking its space) until theme.js has selected the saved choice. */
.theme-control {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

:root[data-theme] .theme-control {
    display: flex;
    visibility: hidden;
}

:root[data-theme-ready] .theme-control {
    visibility: visible;
}

.theme-control select {
    font: inherit;
    padding: 0.2rem 0.35rem;
    border: 1px solid var(--muted);
    border-radius: 4px;
    background: var(--bg);
    color: var(--fg);
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0.75rem 0;
}

.site-footer p {
    margin: 0.4rem 0;
}

/* Search */

.search-form-main {
    margin: 1rem 0;
}

.search-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.search-row {
    display: flex;
    gap: 0.5rem;
}

.search-row input {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--muted);
    border-radius: 4px;
    background: var(--bg);
    color: var(--fg);
}

.search-form-header {
    flex: 1 1 18rem;
    max-width: 30rem;
}

.search-form-header .search-row input {
    padding: 0.35rem 0.55rem;
}

/* On phones the search box takes a line of its own, under the site name and About, and the theme
   control goes on the line after it. */
@media (max-width: 40rem) {
    .header-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .site-name {
        grid-row: 1;
        grid-column: 1;
    }

    .site-nav {
        grid-row: 1;
        grid-column: 2;
    }

    .search-form-header {
        grid-column: 1 / -1;
        max-width: none;
    }

    .theme-control {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

button {
    font: inherit;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--muted);
    border-radius: 4px;
    background: var(--surface);
    color: var(--fg);
    cursor: pointer;
}

button:hover {
    background: var(--code-bg);
}

.examples, .lead, .dataset-summary, .result-count {
    color: var(--muted);
}

.lead {
    font-size: 1.1rem;
    margin-top: 0;
}

.message {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-left: 4px solid var(--border);
}

/* Category badges, coloured as in en-wiki Module:IUCN status. The code and the label are always
   both shown, so the colour is never the only cue. */

.category {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4em;
}

.badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85em;
    line-height: 1.4;
    padding: 0 0.4em;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--badge-ring);
}

.category-large .badge {
    font-size: 1.25rem;
    padding: 0.1em 0.5em;
}

.category-large .category-label {
    font-size: 1.15rem;
    font-weight: 600;
}

.cat-ex { background: #000; color: #f66; }
.cat-ew { background: #000; color: #fff; }
.cat-cr { background: #c33; color: #fee; }
.cat-en { background: #b40; color: #fed; }
.cat-vu { background: #937006; color: #ffe; }
.cat-nt { background: #073; color: #efe; }
.cat-lc { background: #066; color: #eff; }
.cat-other { background: #048; color: #fff; }
.cat-grey { background: transparent; color: var(--grey-badge); box-shadow: inset 0 0 0 1px currentColor; }

.no-global {
    color: var(--muted);
    font-style: italic;
}

/* Lists of taxa (search results, name lookups, children) */

.taxon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taxon-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.taxon-list-name {
    order: -1;
}

.common-name {
    margin-left: 0.4em;
}

.kind, .tag {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0 0.4em;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--muted);
    font-weight: 400;
}

.match-note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* "Errata version, published 2016" and similar, under the year in the assessment tables. */
.version-note {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

@media (min-width: 40rem) {
    .taxon-list li {
        display: grid;
        grid-template-columns: 16rem 1fr;
        gap: 0.75rem;
        align-items: baseline;
    }

    .taxon-list-name {
        order: 0;
    }
}

/* Taxon page */

.arrival {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 1rem 0 0;
}

.taxon-header h1 {
    margin-bottom: 0.25rem;
}

.authority {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--muted);
}

.taxon-common-name {
    font-size: 1.2rem;
    margin: 0;
}

.parent-line {
    margin: 0.25rem 0 0;
}

.classification ol {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0;
    font-size: 0.9rem;
}

.classification li:not(:last-child)::after {
    content: "›";
    padding: 0 0.5em;
    color: var(--muted);
}

.rank {
    color: var(--muted);
}

.facts {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
}

.facts dt {
    font-weight: 600;
    margin-top: 0.5rem;
}

.facts dd {
    margin: 0;
}

@media (min-width: 40rem) {
    .facts {
        grid-template-columns: 14rem 1fr;
        gap: 0.4rem 1rem;
    }

    .facts dt {
        margin-top: 0;
    }
}

.iucn-link {
    margin-top: 1rem;
}

.no-global-line {
    font-weight: 600;
}

/* Wikitext boxes */

.wikitext-box {
    margin: 1rem 0 1.25rem;
}

.wikitext-box-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem 1rem;
    margin-bottom: 0.3rem;
}

.wikitext-box-head label {
    font-weight: 600;
    /* Shrinks and wraps its text, so the button stays beside it at phone width. */
    flex: 1 1 0;
    min-width: 0;
}

.copy-button {
    padding: 0.25rem 0.8rem;
    min-width: 5.5rem;
}

textarea {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.45;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--control-border);
    border-radius: 4px;
    background: var(--code-bg);
    color: var(--fg);
    resize: vertical;
    overflow-wrap: anywhere;
}

.note {
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

.note-selected {
    padding: 0.6rem 0.8rem;
    background: var(--note-bg);
    border-left: 4px solid var(--note-border);
    font-size: 0.95rem;
}

.citation-notes {
    color: var(--muted);
}

.iucn-citation summary {
    cursor: pointer;
    font-size: 0.9rem;
}

.iucn-citation p {
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
}

/* Each box's copy status. While it only repeats what the button says ("Copied") it is read out
   but not shown; a failure message is shown on its own line under the label and button. */
.copy-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.copy-status.copy-status-failed {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    flex-basis: 100%;
    padding: 0.4rem 0.6rem;
    background: var(--note-bg);
    border-left: 4px solid var(--note-border);
    font-size: 0.9rem;
}

.options-form fieldset {
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
}

.options-form > fieldset > legend {
    font-weight: 600;
    padding: 0 0.3rem;
}

.options-form .option-group {
    border: 0;
    padding: 0;
    margin: 0.75rem 0;
}

.options-form .option-group legend {
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.2rem;
}

.options-form label {
    display: block;
    margin: 0.2rem 0;
}

.options-form .option-extra {
    margin-top: 0.6rem;
}

.options-form input[type="text"] {
    font: inherit;
    padding: 0.2rem 0.4rem;
    margin-left: 0.4rem;
    border: 1px solid var(--muted);
    border-radius: 3px;
    background: var(--bg);
    color: var(--fg);
}

/* "Wikitext updated", where the update button is when site.js hides it. The line keeps its
   height while empty, so the form does not move when the text appears. */
.live-status {
    margin: 0.5rem 0 0;
    min-height: 1.5em;
    font-size: 0.9rem;
}

/* {{cite Q}} and QuickStatements, after the citation options */

.wikidata-cite {
    margin-top: 2rem;
}

.wikidata-cite h3 {
    margin-top: 0;
}

.wikidata-cite .wikitext-box {
    margin-bottom: 0.5rem;
}

.quickstatements-link {
    margin: 0 0 1.25rem;
}

/* The item's title and label that the commands replace, and the IUCN status beside Wikidata's.
   A table cell breaks only a word too long for it, so words stay whole at phone width; a list
   item may break a long URL anywhere. */

.wikidata-changes td,
.status-compare td {
    overflow-wrap: break-word;
}

.wikidata-status li {
    overflow-wrap: anywhere;
}

.wikidata-changes-intro {
    margin-bottom: 0.3rem;
}

.wikidata-status {
    margin-top: 2rem;
}

.wikidata-status h3 {
    margin-top: 0;
}

.status-compare tbody th {
    width: 40%;
}

.plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.status-verdict {
    font-weight: 600;
}

.status-commands-label {
    margin: 0.75rem 0 0.2rem;
}

.wikidata-status ul:not(.plain-list) {
    margin: 0;
    padding-left: 1.25rem;
}

.status-keep {
    margin-top: 0.75rem;
}

.help {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.2rem 0 0;
}

/* Tables */

.table-scroll {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 0.4rem 0.6rem 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

thead th {
    font-weight: 600;
    border-bottom-width: 2px;
}

tbody th {
    font-weight: 400;
}

@media (max-width: 40rem) {
    .narrow-hide {
        display: none;
    }
}

tr.shown {
    background: var(--shown-bg);
}

.shown-label {
    font-weight: 600;
}

.language-names {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1rem;
    margin: 0;
}

.language-names dt {
    color: var(--muted);
}

.language-names dd {
    margin: 0;
}

.synonyms {
    margin: 0;
    padding-left: 1.25rem;
}

details summary {
    cursor: pointer;
    margin: 0.4rem 0;
}

.data-note {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* About page */

.prose {
    max-width: 46rem;
}

.prose li {
    margin: 0.25rem 0;
}

/* Citations contain long URLs and DOIs, which must wrap at phone width. */
.source-citations li {
    overflow-wrap: anywhere;
}

/* site-data additions */

/* SPRAT profiles in the links section: one item per profile, the EPBC Act listing under its link. */
.sprat-profiles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sprat-profiles li + li {
    margin-top: 0.5rem;
}

.epbc-listing {
    display: block;
}

/* A taxon not in the release: the taxon in the release with the same name. */
.current-taxon {
    margin: 0.5rem 0 0;
}

/* Under the assessment history: an old IUCN id with the same name, or whose name is a synonym. */
.earlier-id {
    color: var(--muted);
}

/* Combined assessment history: the assessments of several IUCN ids in one table. Each id's rows
   have its background and a mark on their left edge, and the legend shows the same mark. The IUCN
   id column names each row's id, so the colours only help. */
.id-legend {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.id-legend li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin: 0.3rem 0;
}

.id-swatch {
    flex: none;
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 2px;
    border: 4px solid var(--border);
    transform: translateY(0.1rem);
}

.combined-table th,
.combined-table td {
    padding-left: 0.5rem;
}

.combined-table tbody th:first-child {
    border-left: 5px solid transparent;
}

.combined-table .iucn-id {
    white-space: nowrap;
}

/* The row whose wikitext is shown has an outline, since its background is its id's colour. */
.combined-table tr.shown {
    outline: 2px solid var(--fg);
    outline-offset: -2px;
}

/* These rules outrank tr.shown, so a shown row keeps its id's colour under the outline. */
.combined-table tr.id-tint-1, .id-swatch.id-tint-1 { background: var(--id-tint-1); }
.combined-table tr.id-tint-2, .id-swatch.id-tint-2 { background: var(--id-tint-2); }
.combined-table tr.id-tint-3, .id-swatch.id-tint-3 { background: var(--id-tint-3); }
.combined-table tr.id-tint-4, .id-swatch.id-tint-4 { background: var(--id-tint-4); }
.combined-table tr.id-tint-5, .id-swatch.id-tint-5 { background: var(--id-tint-5); }
.combined-table tr.id-tint-6, .id-swatch.id-tint-6 { background: var(--id-tint-6); }

.combined-table tr.id-tint-1 > th:first-child { border-left-color: var(--id-mark-1); }
.id-swatch.id-tint-1 { border-color: var(--id-mark-1); }
.combined-table tr.id-tint-2 > th:first-child { border-left-color: var(--id-mark-2); }
.id-swatch.id-tint-2 { border-color: var(--id-mark-2); }
.combined-table tr.id-tint-3 > th:first-child { border-left-color: var(--id-mark-3); }
.id-swatch.id-tint-3 { border-color: var(--id-mark-3); }
.combined-table tr.id-tint-4 > th:first-child { border-left-color: var(--id-mark-4); }
.id-swatch.id-tint-4 { border-color: var(--id-mark-4); }
.combined-table tr.id-tint-5 > th:first-child { border-left-color: var(--id-mark-5); }
.id-swatch.id-tint-5 { border-color: var(--id-mark-5); }
.combined-table tr.id-tint-6 > th:first-child { border-left-color: var(--id-mark-6); }
.id-swatch.id-tint-6 { border-color: var(--id-mark-6); }

/* ---------------------------------------------------------------- groups (higher taxa) */

/* Classification on a taxon page: Catalogue of Life groups are hidden until the box is ticked. */
.classification.has-col-toggle .col-group {
    display: none;
}

.classification.has-col-toggle:has(.show-col:checked) .col-group {
    display: list-item;
}

.classification .group-common {
    color: var(--muted);
    font-size: 0.85rem;
}

.col-toggle {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.col-marker,
.rule-marker {
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0 0.25em;
    margin-left: 0.25em;
    text-decoration: none;
    cursor: help;
}

.group-header .rank-word {
    color: var(--muted);
    font-weight: 400;
    margin-right: 0.3em;
}

.group-col-names .label {
    color: var(--muted);
}

.group-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.group-choices .group-path {
    color: var(--muted);
    font-size: 0.9rem;
    margin-left: 0.5em;
}

td.num,
th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.group-children td .rank {
    margin-right: 0.3em;
}

/* The list: options beside the output on wide screens, above it on narrow ones. */
.list-editor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 52rem) {
    .list-editor {
        grid-template-columns: minmax(0, 1fr) 17rem;
        grid-template-areas: "output options";
        align-items: start;
    }

    .list-editor .list-options {
        grid-area: options;
        position: sticky;
        top: 0.5rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }

    .list-editor .list-output {
        grid-area: output;
    }
}

.list-options .example {
    display: block;
    margin-left: 1.6em;
    font-size: 0.85rem;
    color: var(--muted);
}

.list-options .rank-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.5rem;
}

.list-options .category-choices label {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.list-options .option-sublabel {
    margin: 0.4rem 0 0.1rem;
}

.list-options .inline-select select {
    margin-left: 0.4em;
}

.list-size {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.list-output .wikitext-box textarea {
    min-height: 12rem;
}

.list-preview {
    margin-top: 1rem;
}

.list-preview summary {
    cursor: pointer;
    font-weight: 600;
}

.preview-body .preview-heading {
    margin: 1rem 0 0.25rem;
    font-size: 1.05rem;
}

.preview-body h3.preview-heading {
    font-size: 1.25rem;
}

.preview-lines {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.preview-lines li.nested {
    margin-left: 1.5rem;
    list-style-type: circle;
}

.preview-group-name,
.preview-label {
    margin: 0.25rem 0;
}

.preview-group-name {
    color: var(--muted);
}

/* ---------------------------------------------------------------- status updater */

/* The site navigation has two links since the status update page was added. */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.update-intro ul {
    margin: 0.4rem 0;
    padding-left: 1.25rem;
}

.update-form {
    margin: 1.25rem 0;
}

.update-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.update-form textarea {
    min-height: 14rem;
}

.update-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    margin-top: 0.6rem;
}

.update-actions .help {
    margin: 0;
}

.update-error {
    padding: 0.6rem 0.8rem;
    background: var(--note-bg);
    border-left: 4px solid var(--note-border);
    font-weight: 600;
}

.update-summary {
    font-weight: 600;
    font-size: 1.05rem;
}

.update-result .wikitext-box textarea {
    min-height: 14rem;
}

.update-report {
    font-size: 0.9rem;
}

.update-report td {
    min-width: 4rem;
}

.update-code {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 28rem;
    background: var(--code-bg);
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
}

.update-note {
    margin: 0 0 0.3rem;
}

.update-report tr.outcome-not-updated .update-outcome {
    font-weight: 600;
}

.update-report tr.outcome-updated {
    background: var(--shown-bg);
}
