/* PCRMs site styles */

@font-face {
    font-family: "Hanken Grotesk";
    src: url("../fonts/hanken-grotesk.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Hanken Grotesk";
    src: url("../fonts/hanken-grotesk-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --pine: #17694B;
    --pine-dark: #0F4A35;
    --lime: #B6DB4C;
    --lime-deep: #5E8C17;
    --lime-text: #4F7713;
    --ink: #17221D;
    --ink-2: #46534C;
    --muted: #5F6D65;
    --paper: #F3F6F4;
    --surface: #FFFFFF;
    --tint: #EEF5F0;
    --tint-2: #F3F7F4;
    --tint-line: #CFE3D6;
    --line: #DCE5DF;
    --line-soft: #E5ECE7;
    --line-strong: #B9C7BF;
    --on-pine: #E2F0E8;
    --on-pine-muted: #CFE6D9;
    --danger: #B42318;
    --warn-bg: #FFF8E6;
    --warn-line: #F0D99A;
    --warn-ink: #8A6A0A;
    --radius: 10px;
    --shell: 1200px;
    --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

[hidden] {
    display: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

img,
svg {
    max-width: 100%;
}

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

a:hover {
    color: var(--pine-dark);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

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

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

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--ink);
    color: #FFFFFF;
    font-weight: 700;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    color: #FFFFFF;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

/* Header -------------------------------------------------------------- */

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

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 32px;
}

.site-brand {
    display: flex;
    padding: 16px 0;
}

.site-brand img {
    display: block;
    width: auto;
    height: 60px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 34px;
    font-size: 18px;
    font-weight: 600;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 32px 0 29px;
    border-bottom: 3px solid transparent;
    color: var(--ink);
    text-decoration: none;
}

.site-nav__link:hover {
    color: var(--ink);
    border-bottom-color: var(--line-strong);
}

.site-nav__link.is-active {
    border-bottom-color: var(--lime-deep);
}

.site-nav__icon {
    width: 21px;
    height: 21px;
    flex: none;
    fill: none;
    stroke: var(--lime-deep);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav__toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-nav__toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 1180px) {
    .site-nav {
        gap: 0 22px;
    }
}

@media (max-width: 1060px) {
    .site-nav {
        gap: 0 18px;
        font-size: 16.5px;
    }

    .site-brand img {
        height: 54px;
    }
}

@media (max-width: 1000px) {
    .site-nav {
        font-size: 16px;
    }

    .site-nav__link {
        padding: 10px 0 7px;
    }

    .site-brand {
        padding: 12px 0 4px;
    }

    .site-brand img {
        height: 48px;
    }
}

@media (max-width: 760px) {
    .site-brand {
        padding: 12px 0;
    }

    .site-brand img {
        height: 44px;
    }

    .js .site-nav__toggle {
        display: inline-flex;
    }

    .js .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        padding-bottom: 10px;
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .site-nav__link {
        padding: 12px 0 9px;
    }
}

/* Footer -------------------------------------------------------------- */

.site-footer {
    flex: none;
    background: var(--pine);
    color: #FFFFFF;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-block: 36px 40px;
    text-align: center;
}

.site-footer__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 36px;
}

.site-footer__logos img {
    display: block;
    width: auto;
}

.site-footer__logos a:first-child img {
    height: 42px;
}

.site-footer__logos a:last-child img {
    height: 40px;
}

.site-footer__divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .35);
}

.site-footer p {
    margin: 0;
    color: var(--on-pine);
    font-size: 14px;
}

.site-footer p a {
    color: inherit;
}

@media (max-width: 620px) {
    .site-footer__divider {
        display: none;
    }
}

/* Bands (page headers) ------------------------------------------------ */

.band {
    background: var(--pine);
    color: #FFFFFF;
}

.band__inner {
    padding-block: 40px 44px;
}

.band h1 {
    max-width: 820px;
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
}

.band__lede {
    max-width: 780px;
    margin: 0;
    color: var(--on-pine);
    font-size: 17px;
}

.band a {
    color: var(--on-pine-muted);
}

.breadcrumb {
    margin: 0 0 6px;
    color: var(--on-pine-muted);
    font-size: 14px;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 14.5px;
}

.band__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 32px;
}

/* Layout helpers ------------------------------------------------------ */

.page-main {
    padding-block: 32px 64px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card__title {
    margin: 0;
    font-size: 20px;
}

.card__title + p {
    max-width: 68ch;
    margin: 8px 0 18px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    background: var(--pine);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--pine-dark);
    color: #FFFFFF;
}

.btn-outline {
    border-color: var(--pine);
    background: var(--surface);
    color: var(--pine);
}

.btn-outline:hover {
    background: var(--tint);
    color: var(--pine-dark);
}

.btn-on-pine {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
    color: #FFFFFF;
}

.band a.btn-on-pine,
.btn-on-pine:hover {
    color: #FFFFFF;
}

.btn-on-pine:hover {
    background: rgba(255, 255, 255, .1);
}

.btn-large {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    border-color: var(--line-strong);
    background: var(--line-strong);
    color: #FFFFFF;
    cursor: not-allowed;
}

.link-button {
    min-height: 36px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pine);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Search forms -------------------------------------------------------- */

.step__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.step__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pine);
    color: #FFFFFF;
    font-size: 15px;
}

fieldset.step {
    margin: 0;
    min-width: 0;
}

fieldset.step > legend {
    float: left;
    width: 100%;
    padding: 0;
}

fieldset.step > legend ~ * {
    clear: both;
}

fieldset.step > .step__tools {
    margin: -6px 0 12px;
}

@media (min-width: 621px) {
    fieldset.step {
        position: relative;
    }

    fieldset.step > .step__tools {
        position: absolute;
        top: 19px;
        right: 22px;
        margin: 0;
    }
}

.step__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    font-size: 14.5px;
}

.genome-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1100px) {
    .genome-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .genome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.option {
    position: relative;
    display: block;
}

.option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.genome-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 100%;
    padding: 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.genome-card__icon {
    display: flex;
    align-items: center;
    height: 44px;
    color: var(--pine);
}

.organism-icon {
    display: block;
    width: auto;
    max-width: 56px;
    height: 44px;
}

.genome-card__name {
    font-size: 16px;
    font-weight: 700;
}

.genome-card__latin {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
}

.genome-card__meta {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.option input:checked + .genome-card {
    border-color: var(--pine);
    background: var(--pine);
    color: #FFFFFF;
}

.option input:checked + .genome-card .genome-card__icon {
    color: var(--lime);
}

.option input:checked + .genome-card .genome-card__latin,
.option input:checked + .genome-card .genome-card__meta {
    color: var(--on-pine-muted);
}

.option input:focus-visible + * {
    outline: 2px solid var(--pine);
    outline-offset: 2px;
}

.option input:hover:not(:checked):not(:disabled) + .genome-card {
    border-color: var(--line-strong);
}

.option input:disabled {
    cursor: not-allowed;
}

.option input:disabled + .genome-card,
.genome-card--soon {
    border-style: dashed;
    background: transparent;
    color: var(--muted);
}

.option input:disabled + .genome-card .genome-card__icon,
.genome-card--soon .genome-card__icon {
    opacity: 0.5;
}

.chip-grid,
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.choice-row {
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 42px;
    padding: 0 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 600;
}

.option input:checked + .chip {
    border-color: var(--lime-deep);
    background: var(--lime);
}

.choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    font-size: 15.5px;
    font-weight: 700;
}

.option input:checked + .choice {
    border-color: var(--pine);
    background: var(--pine);
    color: #FFFFFF;
}

html:not(.js) .js-only {
    display: none !important;
}

.js .chrom-group:not(.is-current),
.tool-panel:not(.is-current) {
    display: none;
}

.chrom-group + .chrom-group {
    margin-top: 18px;
}

.chrom-group__title {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 700;
}

.js .chrom-group__title {
    display: none;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
}

.text-input {
    width: 100%;
    max-width: 520px;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.text-input::placeholder {
    color: #7C8A82;
}

.text-input[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.field-hint.is-error {
    color: var(--danger);
}

.choice-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
}

.choice-group legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
}

.choice-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.window-figure {
    margin: 18px 0 0;
    padding: 14px 16px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #F6F9F7;
    text-align: center;
}

.window-figure svg {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.window-figure figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
}

.search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 22px;
    border: 1px solid var(--tint-line);
    border-radius: var(--radius);
    background: var(--tint);
}

.search-summary p {
    margin: 0;
    font-size: 15.5px;
}

/* Analysis tabs ------------------------------------------------------- */

.tool-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tool-tabs--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .tool-tabs {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tool-tab {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.tool-tab:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.tool-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--tint);
    color: var(--pine);
}

.tool-tab__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-tab__text strong {
    display: block;
    font-size: 17px;
}

.tool-tab__text span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

.tool-tab[aria-current="true"] {
    border-color: var(--pine);
    background: var(--pine);
    color: #FFFFFF;
}

.tool-tab[aria-current="true"] .tool-tab__icon {
    background: var(--lime);
    color: var(--ink);
}

.tool-tab[aria-current="true"] .tool-tab__text span {
    color: var(--on-pine-muted);
}

.tool-panel__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Results tables ------------------------------------------------------ */

.results-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.filter-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

.filter-box svg {
    position: absolute;
    top: 13px;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
}

.filter-box input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 38px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.size-group {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 14px;
}

.tbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.tbtn:hover {
    border-color: var(--pine);
    color: var(--ink);
}

.tbtn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tbtn[aria-current="true"],
.tbtn[aria-current="page"] {
    border-color: var(--pine);
    background: var(--pine);
    color: #FFFFFF;
}

.tbtn[aria-disabled="true"] {
    border-color: var(--line);
    color: #9AA79F;
    cursor: default;
}

.results-note {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--warn-bg);
    font-size: 14.5px;
}

.results-card[aria-busy="true"] .table-scroll {
    opacity: .55;
    transition: opacity .15s .15s;
}

.section-title {
    margin: 16px 0 0;
    font-size: 22px;
}

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

.results-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 15px;
}

.results-table th,
.results-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.results-table thead th {
    padding-block: 10px;
    border-bottom-color: var(--line);
    background: #F6F9F7;
    color: var(--ink-2);
    font-size: 13.5px;
    vertical-align: middle;
}

.results-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.results-table .nowrap {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.results-table tbody tr:hover > * {
    background: #F6FAF7;
}

.results-table tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.sort-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.num .sort-button {
    flex-direction: row-reverse;
}

.sort-button__arrow {
    color: #9AA79F;
    font-size: 12px;
}

[aria-sort="ascending"] .sort-button__arrow,
[aria-sort="descending"] .sort-button__arrow {
    color: var(--pine);
}

.sort-button:hover span:first-child {
    text-decoration: underline;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.external-link svg {
    width: 13px;
    height: 13px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.motif-logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: 44px;
}

.motif-missing {
    color: var(--muted);
    font-size: 13.5px;
}

.results-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 18px;
}

.results-footer p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pager__gap {
    padding: 0 4px;
    color: var(--muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 20px;
    text-align: center;
}

.empty-state h2 {
    margin: 0;
    font-size: 19px;
}

.empty-state p {
    max-width: 480px;
    margin: 0;
    color: var(--ink-2);
}

.empty-state svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.loading-row td {
    padding: 40px 14px;
    color: var(--muted);
    text-align: center;
}

.alert {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--warn-line);
    border-radius: var(--radius);
    background: var(--warn-bg);
    font-size: 15px;
}

.alert svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    fill: none;
    stroke: var(--warn-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.alert p {
    margin: 0;
}

.results-card .alert {
    margin: 16px 18px;
}

/* Home ---------------------------------------------------------------- */

.home-band .band__inner {
    padding-block: 48px 52px;
}

.home-band h1 {
    font-size: clamp(32px, 4vw, 44px);
}

.genome-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 34px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.genome-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.genome-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 56px;
    height: 44px;
    color: var(--lime);
}

.genome-stat__label {
    display: block;
    color: var(--on-pine-muted);
    font-size: 13px;
}

.genome-stat__value {
    display: block;
    color: var(--lime);
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.genome-stat__value--soft {
    color: var(--on-pine);
    font-size: 17px;
    font-weight: 600;
}

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

.how__inner {
    padding-block: 56px 60px;
}

.how__head {
    max-width: 780px;
    margin-bottom: 28px;
}

.how__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.how__title-row h2 {
    margin: 0;
    font-size: 30px;
}

.how__head p {
    margin: 0;
    color: var(--ink-2);
    font-size: 16.5px;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}

.pill-link:hover {
    border-color: var(--pine);
    color: var(--ink);
}

.pill-link svg {
    width: 20px;
    height: 20px;
    fill: var(--ink);
}

.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1100px) {
    .flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-step__arrow {
        display: none !important;
    }

    .flow-step__head {
        min-height: 30px !important;
    }
}

@media (max-width: 620px) {
    .flow {
        grid-template-columns: minmax(0, 1fr);
    }
}

.flow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 20px;
    gap: 12px;
    padding: 18px;
    border-radius: 12px;
    background: var(--tint-2);
}

.flow-step__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.flow-step__head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.flow-step__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pine);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
}

.flow-step__art {
    overflow: hidden;
    border: 1px solid #E2EAE4;
    border-radius: 9px;
    background: var(--surface);
}

.pipeline-art {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--font);
}

.flow-step p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.flow-step__arrow {
    position: absolute;
    top: 128px;
    right: -19px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(23, 34, 29, .08);
}

.flow-step__arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--pine);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-result {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 12px;
    background: var(--pine);
    color: #FFFFFF;
}

.flow-result h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
}

.flow-result__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
}

.flow-result__check svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-result p {
    margin: 6px 0 0;
    color: var(--on-pine);
    font-size: 14.5px;
}

.flow-result .btn {
    align-self: flex-start;
    background: #FFFFFF;
    color: var(--pine);
}

.flow-result .btn:hover {
    background: var(--tint);
    color: var(--pine-dark);
}

.home-refs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: 48px 64px;
}

.cite-box {
    padding: 20px 22px;
    border: 1px solid var(--tint-line);
    border-radius: 8px;
    background: var(--tint);
}

.cite-box h2,
.related h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.cite-box p {
    margin: 0;
    font-size: 15.5px;
}

.related {
    padding: 20px 22px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

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

.related-list li {
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
}

.related-list li[hidden] {
    display: none;
}

.related-list a {
    display: block;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.related-list a:hover {
    color: var(--pine);
    text-decoration: underline;
}

.related-list__meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13.5px;
}

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--tint);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 1px;
}

.related-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 4px 0 8px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--pine);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.related-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s;
}

.related-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Download ------------------------------------------------------------ */

.jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jump-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 16px 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.jump-list a:hover {
    border-color: var(--pine);
}

.jump-list .organism-icon {
    max-width: 40px;
    height: 32px;
    color: var(--pine);
}

.genome-section {
    scroll-margin-top: 20px;
    padding: 22px 24px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.genome-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    margin-bottom: 14px;
}

.genome-section__title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.genome-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 64px;
    height: 56px;
    border-radius: 10px;
    background: var(--tint);
    color: var(--pine);
}

.genome-section h2 {
    margin: 0;
    font-size: 21px;
}

.genome-section h2 em {
    color: var(--ink-2);
    font-weight: 500;
}

.genome-section__sub {
    margin: 2px 0 0;
    color: var(--ink-2);
    font-size: 14.5px;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
}

.facts dt {
    color: var(--muted);
    font-size: 13px;
}

.fact-note {
    margin-left: 1px;
    color: var(--pine);
    font-weight: 700;
    text-decoration: none;
}

.fact-note:hover {
    text-decoration: underline;
}

.facts dd {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

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

.file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}

.file-row__name {
    display: block;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.file-row__desc {
    display: block;
    color: var(--ink-2);
    font-size: 14px;
}

.file-row__size {
    color: var(--ink-2);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.file-row__unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .file-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .file-row__action {
        margin-top: 4px;
    }
}

.using {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.using > * {
    flex: 1 1 300px;
    min-width: 0;
}

.using > :first-child {
    flex: 2 1 460px;
}

.using h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.format-list {
    margin: 4px 0 0;
}

.format-list div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.format-list dt {
    font-weight: 700;
}

.format-list dd {
    margin: 3px 0 0;
    color: var(--ink-2);
    font-size: 15px;
}

.using pre {
    margin: 0 0 12px;
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 8px;
    background: var(--ink);
    color: var(--on-pine);
    font-size: 14px;
}

/* CRM record ---------------------------------------------------------- */

.detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px 24px;
    margin: 0;
}

.detail-facts dt {
    color: var(--muted);
    font-size: 13.5px;
}

.detail-facts dd {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.viewer-frame {
    min-height: 320px;
}

/* Message pages ------------------------------------------------------- */

.message-page {
    padding-block: 56px 72px;
}

.message-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.message-panel h1 {
    margin: 0 0 10px;
    font-size: 26px;
}

.message-panel p {
    margin: 0 0 20px;
    color: var(--ink-2);
}

/* Tools --------------------------------------------------------------- */

.tool-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-card__sub {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14.5px;
}

.tool-card__text {
    max-width: 68ch;
    margin: 16px 0 0;
}

.tool-io {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.tool-io div {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--tint);
}

.tool-io dt {
    color: var(--pine);
    font-size: 13px;
    font-weight: 700;
}

.tool-io dd {
    margin: 4px 0 0;
}

@media (max-width: 620px) {
    .tool-io {
        grid-template-columns: minmax(0, 1fr);
    }
}
