/* =============================================================================
   Bugs we found upstream

   A page of reports: what was found, what was sent, where each fix stands.
   The palette names the stages a report moves through, from amber (sent,
   waiting) through sky (a fix proposed) and teal (fixed, not released) to
   green (in a release); declined is slate, a status not checked is dim. The
   accent is the rose of a failing trace.
   ========================================================================== */

:root {
    --ub-bg: #07090f;
    --ub-card: #0e131d;
    --ub-card-2: #121927;
    --ub-border: #1f2a3b;
    --ub-text: #f1f5f9;
    --ub-dim: #a7b4c6;
    --ub-muted: #6f7f95;
    --ub-primary: #fb7185;
    --ub-primary-soft: #fda4af;
    --ub-primary-dark: #9f1239;
    --ub-code-bg: #0a0e16;
    /* The stages, in order */
    --ub-s-reported: #f59e0b;
    --ub-s-acknowledged: #fbbf24;
    --ub-s-considering: #c4b5fd;
    --ub-s-not-reproduced: #a78bfa;
    --ub-s-fix-proposed: #38bdf8;
    --ub-s-partly-fixed: #fb923c;
    --ub-s-fix-merged: #2dd4bf;
    --ub-s-released: #4ade80;
    --ub-s-declined: #94a3b8;
    --ub-s-unknown: #475569;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ub-bg);
    color: var(--ub-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ub-primary-soft);
}
a:hover {
    color: #ffe4e6;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    color: #dbe4f0;
    overflow-wrap: anywhere;
}

/* --- Background ------------------------------------------------------------ */
/* Fixed, behind every band of the page, and never takes a click. */
.ub-bg-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.ub-bg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ub-motion-toggle {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.78rem;
    color: var(--ub-dim);
    background: rgba(14, 19, 29, 0.92);
    border: 1px solid var(--ub-border);
    border-radius: 999px;
    cursor: pointer;
}
.ub-motion-toggle:hover {
    color: var(--ub-primary-soft);
    border-color: var(--ub-primary-dark);
}
.ub-motion-toggle:focus-visible {
    outline: 2px solid var(--ub-primary);
    outline-offset: 2px;
}

/* --- Header ---------------------------------------------------------------- */
.ub-header {
    position: relative;
    z-index: 1;
    padding-block: 2.4rem 1rem;
}
.ub-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding-inline: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.ub-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid var(--ub-border);
    display: block;
}
.ub-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.ub-subtitle {
    margin: 0.35rem 0 0;
    color: var(--ub-dim);
    max-width: 62ch;
}

/* --- Layout ---------------------------------------------------------------- */
.ub-wrap {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 3rem;
}
.ub-wrap p,
.ub-wrap li {
    max-width: 78ch;
}

h2 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin: 0 0 0.6rem;
}
h3 {
    font-size: 1.12rem;
    margin: 1.6rem 0 0.4rem;
    color: #e2e8f0;
}

/* --- Summary --------------------------------------------------------------- */
.ub-summary {
    background: rgba(14, 19, 29, 0.86);
    border: 1px solid var(--ub-border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 2rem;
}
.ub-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.ub-tile {
    background: var(--ub-card-2);
    border: 1px solid var(--ub-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}
.ub-tile-n {
    font-size: 1.7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.ub-tile-l {
    color: var(--ub-dim);
    font-size: 0.86rem;
}

.ub-lifecycle {
    margin: 16px 0 6px;
}
.ub-lifecycle svg {
    display: block;
    width: 100%;
    height: 14px;
}
.ub-lifecycle figcaption {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.86rem;
    color: var(--ub-dim);
}
.ub-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ub-legend-note {
    color: var(--ub-muted);
}
.ub-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.ub-source {
    color: var(--ub-muted);
    font-size: 0.86rem;
    margin: 8px 0 0;
}
.ub-unavailable {
    color: var(--ub-muted);
    font-style: italic;
}

/* Stage colours: chips, swatches and the summary bar's segments */
.ub-s-reported {
    --c: var(--ub-s-reported);
}
.ub-s-acknowledged {
    --c: var(--ub-s-acknowledged);
}
.ub-s-considering {
    --c: var(--ub-s-considering);
}
.ub-s-not-reproduced {
    --c: var(--ub-s-not-reproduced);
}
.ub-s-fix-proposed {
    --c: var(--ub-s-fix-proposed);
}
.ub-s-partly-fixed {
    --c: var(--ub-s-partly-fixed);
}
.ub-s-fix-merged {
    --c: var(--ub-s-fix-merged);
}
.ub-s-released {
    --c: var(--ub-s-released);
}
.ub-s-declined {
    --c: var(--ub-s-declined);
}
.ub-s-unknown {
    --c: var(--ub-s-unknown);
}

.ub-swatch {
    background: var(--c);
}
.ub-seg {
    fill: var(--c);
}
.ub-chip {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c);
    border: 1px solid var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
    white-space: nowrap;
}

.ub-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0.3rem 0 0.8rem;
}
.ub-detail {
    color: var(--ub-dim);
    font-size: 0.88rem;
}
.ub-detail + .ub-detail::before {
    content: '·';
    margin-right: 10px;
    color: var(--ub-muted);
}

/* --- The feature ---------------------------------------------------------- */
.ub-feature {
    background: rgba(14, 19, 29, 0.9);
    border: 1px solid var(--ub-border);
    border-left: 3px solid var(--ub-primary);
    border-radius: 14px;
    padding: 22px 24px 18px;
    margin-bottom: 2.4rem;
}
.ub-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ub-primary-soft);
}
.ub-log {
    background: var(--ub-code-bg);
    border: 1px solid var(--ub-border);
    border-radius: 10px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 100%;
}
.ub-log code {
    font-size: inherit;
    white-space: pre;
    overflow-wrap: normal;
}
.ub-log-bad {
    color: #fda4af;
}
.ub-quote {
    border-left: 2px solid var(--ub-border);
    padding-left: 12px;
    color: var(--ub-dim);
}
.ub-steps li,
.ub-impact li,
.ub-method li {
    margin-bottom: 0.45rem;
}
.ub-refs {
    color: var(--ub-dim);
    font-size: 0.88rem;
    margin: 0.4rem 0 0;
}
q {
    color: #ffe4e6;
}

.ub-channels {
    margin: 0.8rem 0;
}
.ub-channels svg {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
}
.ub-ch-yes {
    fill: color-mix(in srgb, var(--ub-s-released) 22%, transparent);
    stroke: var(--ub-s-released);
}
.ub-ch-no {
    fill: transparent;
    stroke: var(--ub-border);
    stroke-dasharray: 4 3;
}
.ub-ch-name {
    fill: var(--ub-text);
    font-size: 13px;
    font-weight: 600;
}
.ub-ch-ver {
    fill: var(--ub-dim);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ub-channels figcaption {
    color: var(--ub-muted);
    font-size: 0.84rem;
}

/* --- Table ----------------------------------------------------------------- */
.ub-table-wrap {
    overflow-x: auto;
}
.ub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ub-table th,
.ub-table td {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid var(--ub-border);
    vertical-align: top;
}
.ub-table th {
    color: var(--ub-dim);
    font-weight: 600;
}
.ub-small {
    color: var(--ub-dim);
    font-size: 0.84rem;
    min-width: 18ch;
}
.ub-dim {
    color: var(--ub-muted);
}
.ub-verdict {
    font-weight: 700;
    text-decoration: none;
}
.ub-v-pass {
    color: var(--ub-s-released);
}
.ub-v-fail {
    color: var(--ub-primary);
}
.ub-v-inconclusive {
    color: var(--ub-s-acknowledged);
}
.ub-v-unsupported,
.ub-v-not_run {
    color: var(--ub-muted);
}

/* --- Reports --------------------------------------------------------------- */
.ub-section {
    margin-bottom: 2.4rem;
}
.ub-project {
    margin-top: 1.8rem;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ub-border);
}
.ub-card {
    background: rgba(14, 19, 29, 0.9);
    border: 1px solid var(--ub-border);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 12px 0;
}
.ub-card p {
    margin: 0.4rem 0;
}
.ub-card-short {
    padding-block: 10px;
}
.ub-card-meta {
    color: var(--ub-muted);
    font-size: 0.82rem;
}
.ub-card-title {
    font-weight: 650;
    font-size: 1.02rem;
    color: var(--ub-text);
}
.ub-reply {
    background: var(--ub-card-2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--ub-dim);
}
.ub-reply-who {
    color: var(--ub-text);
    font-weight: 600;
}
.ub-note {
    border-left: 2px solid var(--ub-s-partly-fixed);
    padding-left: 10px;
    color: #fed7aa;
}

.ub-pending {
    padding-left: 1.1rem;
}
.ub-pending li {
    margin-bottom: 0.35rem;
}
.ub-pending-project {
    display: inline-block;
    min-width: 7.5em;
    color: var(--ub-primary-soft);
    font-weight: 600;
}

/* --- FAQ ------------------------------------------------------------------- */
.ub-faq-item {
    background: rgba(14, 19, 29, 0.9);
    border: 1px solid var(--ub-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 8px 0;
}
.ub-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}
.ub-faq-item p {
    margin: 0.5rem 0 0.2rem;
    color: var(--ub-dim);
}

.ub-related {
    color: var(--ub-dim);
    font-size: 0.9rem;
}

/* --- Footer ---------------------------------------------------------------- */
.ub-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--ub-border);
    padding: 1.6rem 20px 2.4rem;
    text-align: center;
    color: var(--ub-muted);
}
.ub-footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
}
.ub-footer-copy {
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    /* Clear of the menu button fixed in the top corner */
    .ub-header {
        padding-top: 4.6rem;
    }
    .ub-header-inner {
        align-items: flex-start;
    }
    .ub-logo {
        width: 48px;
        height: 48px;
    }
    .ub-feature,
    .ub-card {
        padding-inline: 14px;
    }
    .ub-pending-project {
        display: block;
    }
}
