:root {
    color-scheme: light;
    --paper: #fff;
    --ink: #222322;
    --body: #555752;
    --subtle: #747771;
    --line: #e6e7e3;
    --accent: #526d5b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

body { isolation: isolate; }

.page {
    position: relative;
    z-index: 1;
    width: min(100% - 64px, 880px);
    margin-inline: auto;
    padding-block: 64px 32px;
}

a { color: inherit; }

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 2px;
}

.brand {
    display: inline-block;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
}

main { padding-block: 64px 64px; }

h1 {
    margin: 0 0 36px;
    font-size: clamp(36px, 5.2vw, 48px);
    font-weight: 500;
    letter-spacing: -1.9px;
    line-height: 1.14;
}

.description {
    max-width: 590px;
    color: var(--body);
    font-size: 18px;
    line-height: 1.7;
}

p { margin: 0 0 22px; }

.description a {
    color: var(--ink);
    text-decoration-color: #b4b9b1;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.description p:last-child { margin-bottom: 0; }

.lede {
    max-width: 600px;
    margin: -16px 0 36px;
    color: var(--body);
    font-size: 17px;
    line-height: 1.6;
}

svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* index cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 20px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s;
}

.card:hover { border-color: #b9c4b8; color: var(--ink); }

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.domain {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.private {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--subtle);
    font-size: 11px;
}

.private svg { width: 12px; height: 12px; }

.card h2 { margin: 0 0 6px; font-size: 21px; font-weight: 500; letter-spacing: -0.5px; }

.summary { margin: 0 0 16px; color: var(--body); font-size: 14px; line-height: 1.55; }

.facts {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 12px 28px;
    margin: auto 0 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.facts dt { color: var(--subtle); font-size: 11px; margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 13px; line-height: 1.4; }

.more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.more svg, .back svg { width: 13px; height: 13px; stroke-width: 1.8; }

/* detail page */
.back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 28px;
    color: var(--subtle);
    font-size: 13px;
    text-decoration: none;
}

.detail-title { margin-bottom: 30px; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.stats div { padding: 16px 18px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -0.6px; }
.stats span { color: var(--subtle); font-size: 12px; }

.section {
    margin: 0 0 12px;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.format { margin: 0 0 40px; }
.format div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.format div:last-child { border-bottom: 1px solid var(--line); }
.format dt { color: var(--subtle); font-size: 13px; }
.format dd { margin: 0; color: var(--body); font-size: 14px; line-height: 1.55; }

.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }

.chart {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.chart figcaption { margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.chart ul { list-style: none; margin: 0; padding: 0; }

.hbars li {
    display: grid;
    grid-template-columns: 64px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
}
.hbars .k { color: var(--body); }
.hbars .v, .cols .v { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.track { height: 10px; }
.bar, .col, .sw { background: var(--accent); }
.hbars .bar { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbars li:hover .bar, .cols li:hover .col { background: #3f5747; }

.cols { display: flex; align-items: flex-end; gap: 8px; height: 132px; }
.cols li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 12px; }
.cols .v { margin-bottom: 4px; }
.cols .col { width: 100%; max-width: 40px; border-radius: 4px 4px 0 0; }
.cols .k { margin-top: 6px; color: var(--subtle); font-size: 11px; white-space: nowrap; }
.axis { margin: 8px 0 0; color: var(--subtle); font-size: 11px; text-align: right; }

.split { display: flex; gap: 2px; height: 14px; margin: 18px 0 16px; }
.split .bar { border-radius: 4px 0 0 4px; }
.split .rest { flex: 1; border-radius: 0 4px 4px 0; }
.rest { background: #d9ddd6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--body); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend b { color: var(--ink); font-weight: 600; }
.sw { width: 10px; height: 10px; border-radius: 3px; }

.chart figcaption small { display: block; margin-top: 3px; color: var(--subtle); font-size: 12px; font-weight: 400; }

.board li {
    display: grid;
    grid-template-columns: 180px 1fr 48px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
}
.board li + li { border-top: 1px solid var(--line); }
.board .k { display: flex; align-items: center; gap: 10px; }
.board .k b { display: block; font-weight: 500; }
.logo { display: block; width: 22px; height: auto; flex: none; }
.foot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.foot div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.foot dt { font-size: 20px; font-weight: 500; letter-spacing: -0.4px; }
.foot dd { margin: 2px 0 0; color: var(--subtle); font-size: 12px; }
.chart .notes { margin: 0; }
.chart .notes li { font-size: 13px; padding: 10px 0 10px 20px; }
.chart .notes li:first-child { border-top: 0; padding-top: 0; }
.chart .notes li::before { top: 16px; }
.chart .notes li:first-child::before { top: 6px; }
.chart .notes li:last-child { border-bottom: 0; padding-bottom: 0; }
.board .k small { color: var(--subtle); font-size: 11px; }
.board .track { height: 10px; border-radius: 4px; background: #f0f2ee; }
.board .bar { display: block; height: 100%; border-radius: 4px; }
.board .v { text-align: right; font-variant-numeric: tabular-nums; }
.track.pending {
    background: repeating-linear-gradient(135deg, #eef0ec 0 6px, #f7f8f6 6px 12px);
}
.tag {
    justify-self: end;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--subtle);
    font-size: 11px;
}
.cols .col.ghost {
    background: repeating-linear-gradient(135deg, #eef0ec 0 6px, #f7f8f6 6px 12px);
    border: 1px dashed #d9ddd6;
    border-bottom: 0;
}

.chart.span { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; align-content: start; }
.wide-notes .notes { columns: 2; column-gap: 40px; }
.wide-notes .notes li { break-inside: avoid; }
.wide-notes .notes li, .wide-notes .notes li:first-child, .wide-notes .notes li:last-child { border: 0; padding: 8px 0 8px 20px; }
.wide-notes .notes li::before, .wide-notes .notes li:first-child::before { top: 14px; }
@media (max-width: 760px) { .wide-notes .notes { columns: 1; } }
.subhead { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 12px; }

.matrix { display: grid; gap: 4px; font-size: 12px; }
.mrow { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 4px; align-items: center; }
.mhead span { color: var(--subtle); text-align: center; padding-bottom: 2px; }
.rl { color: var(--body); }
.cell {
    display: grid;
    place-items: center;
    height: 58px;
    border-radius: 6px;
    font-size: 18px;
}
.cell b { font-weight: 500; }
.cell.good { background: rgb(82 109 91 / var(--a)); color: #fff; }
.cell.bad { background: rgb(176 112 84 / var(--a)); color: #fff; }

.pergrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 28px;
}
.pergrid li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.pergrid .k small { margin-left: 6px; color: var(--subtle); font-size: 11px; }
.dots { display: inline-flex; gap: 4px; }
.dots i, .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #e3e6e0;
}
.dots i.on, .dot.on { background: var(--accent); }
.pergrid + .legend { margin-top: 14px; }

.quality {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}
.quality li {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--body);
    font-size: 14px;
    line-height: 1.5;
}
.quality svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); stroke-width: 2; }

.hbars.wide li { grid-template-columns: 160px 1fr 32px; }

.notes { margin: 0 0 40px; padding: 0; list-style: none; }
.notes li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-top: 1px solid var(--line);
    color: var(--body);
    font-size: 14px;
    line-height: 1.55;
}
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

.plot { display: block; width: 100%; height: auto; overflow: visible; }
.plot.sq { max-width: 340px; margin: 4px auto 0; }
.plot .gl { stroke: var(--line); stroke-width: 1; }
.plot .ax { fill: var(--subtle); stroke: none; font-size: 11px; font-weight: 400; font-family: Arial, Helvetica, sans-serif; }
.plot .diag { stroke: #b9c0b6; stroke-dasharray: 4 4; }
.plot .zone.up { fill: #1f2a24; fill-opacity: .035; }
.plot .zl { fill: var(--subtle); stroke: none; font-size: 10px; font-weight: 400; font-family: Arial, Helvetica, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.plot .dot { fill: #c3c9c0; fill-opacity: .8; stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: r .12s; }
.plot .dot.up { fill: #1f2a24; fill-opacity: .72; }
.plot .dot.down { fill: #D97757; fill-opacity: .9; }
.plot .dot:hover { r: 7; fill-opacity: 1; }
.plot.cov { cursor: crosshair; }
.plot .xh { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.plot .xd { opacity: 0; pointer-events: none; }
.hidden { display: none; }

.mleg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mtog, .chips button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--body);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: opacity .15s, border-color .15s;
}
.mtog:hover, .chips button:hover { border-color: #b9c4b8; }
.mtog.off { opacity: .4; }
.mtog.off .swl { background: #c3c9c0 !important; }
.mleg.static span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--body); }
.swl { width: 12px; height: 3px; border-radius: 2px; }
.logo { width: 18px; height: 18px; object-fit: contain; }
.chips { display: flex; gap: 6px; margin: 0 0 6px; }
.chips button.on { border-color: var(--ink); color: var(--ink); }

.gcols { display: flex; align-items: flex-end; gap: 10px; height: 190px; margin: 4px 0 0; }
.gcols li { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.gpair { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.gc { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 42%; max-width: 30px; height: 100%; cursor: default; }
.gb { width: 100%; border-radius: 3px 3px 0 0; transition: filter .15s; }
.gc:hover .gb { filter: brightness(1.25); }
.gv { margin-bottom: 4px; color: var(--subtle); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gk { margin-top: 7px; color: var(--body); font-size: 11px; text-align: center; white-space: nowrap; }
.gc.hidden { display: none; }
.fine { margin: 12px 0 0; color: var(--subtle); font-size: 11px; }

.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp th[scope="row"] { text-align: left; color: var(--body); }
.cmp thead th { padding-top: 0; color: var(--subtle); font-size: 12px; }
.cmp td { font-variant-numeric: tabular-nums; color: var(--ink); width: 26%; }
.mh { display: inline-flex; align-items: center; gap: 6px; }

.tip {
    position: fixed;
    z-index: 10;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1f2420;
    color: #f4f5f2;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transition: opacity .1s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.tip b { font-weight: 600; }
.tip i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }

.paired { display: grid; gap: 14px; }
.paired li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; font-size: 13px; }
.paired .k small { display: block; color: var(--subtle); font-size: 11px; }
.pbars { display: grid; gap: 6px; }
.pbar { display: grid; grid-template-columns: 16px 1fr 36px; gap: 8px; align-items: center; cursor: default; }
.pbar:hover .bar { filter: brightness(1.15); }
.pbar .track { height: 9px; border-radius: 4px; background: #f0f2ee; }
.pbar .bar { display: block; height: 100%; border-radius: 4px; }
.pbar .v { text-align: right; font-variant-numeric: tabular-nums; }

.env {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 8px 0 28px;
    font-size: 13px;
}
.env div { display: flex; gap: 8px; }
.env dt { color: var(--subtle); }
.env dd { margin: 0; color: var(--body); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}
.button:hover { background: var(--accent); color: #fff; }

.ref {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--subtle);
    font-size: 13px;
    text-decoration: none;
}
.ref svg { width: 13px; height: 13px; }

.contact { margin: 36px 0 0; color: var(--body); font-size: 15px; }
.contact a { text-underline-offset: 4px; text-decoration-color: #b4b9b1; }

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.6;
}

footer a { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 16px 22px; }
a:hover { color: var(--accent); }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

::selection { background: #e2ebe1; color: var(--ink); }

@media (max-width: 760px) {
    .cards, .charts, .quality { grid-template-columns: 1fr; }
    .pergrid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats div:nth-child(3) { border-left: 0; }
    .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
    .page { width: calc(100% - 48px); padding-top: 36px; }
    .brand img { width: 180px; }
    main { padding-block: 48px 56px; }
    h1 { font-size: clamp(31px, 8vw, 40px); letter-spacing: -1.3px; margin-bottom: 28px; }
    .description { font-size: 17px; }
    .pergrid { grid-template-columns: 1fr; }
    footer { align-items: flex-start; flex-direction: column; gap: 16px; }
}

/* A card that sits beside a taller column: the plot centres and the footer sits at the bottom. */
.chart.fill { display: flex; flex-direction: column; }
.chart.fill .plot.sq { flex: 1; width: 100%; max-width: 440px; max-height: 440px; margin: 8px auto; }
.chart.fill .foot { margin-top: auto; }
