:root {
    color-scheme: light;
    --page: #ffffff;
    --ink: #1b1b1b;
    --muted: #555555;
    --line: #c8c8c8;
    --line-soft: #dddddd;
    --panel: #f3f3f3;
    --code-bg: #f5f5f5;
    --link: #0645ad;
    --link-visited: #0b0080;
    --accent: #a80030;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "DejaVu Sans", Verdana, "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 10;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--page);
}

.skip-link:focus {
    top: 8px;
}

.wrap {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand:visited,
.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 3px;
    background: var(--accent);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-tagline {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.header-meta {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

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

.nav-inner {
    display: flex;
    flex-wrap: wrap;
}

.nav-inner a {
    padding: 8px 16px;
    color: var(--link);
    font-size: 0.85rem;
    text-decoration: none;
}

.nav-inner a + a {
    border-left: 1px solid var(--line-soft);
}

.nav-inner a:hover {
    background: #e7e7e7;
    color: var(--accent);
    text-decoration: underline;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 40px;
    padding: 28px 0 48px;
}

.content {
    min-width: 0;
}

h1 {
    margin: 0 0 6px;
    color: #111111;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.page-note {
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.content h2 {
    margin: 34px 0 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}

.content p {
    margin: 0 0 14px;
}

code {
    padding: 0 3px;
    background: var(--code-bg);
    font-family: "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace;
    font-size: 0.88em;
}

.url-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--code-bg);
}

.url-box code {
    min-width: 0;
    padding: 0;
    background: none;
    color: #111111;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.copy-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #8a8a8a;
    border-radius: 2px;
    background: #ececec;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.copy-button:hover {
    background: #e0e0e0;
}

.copy-button.is-copied {
    border-color: #4c8a4c;
    background: #e6f3e6;
    color: #1d5c1d;
}

.copy-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.steps {
    margin: 0 0 8px;
    padding-left: 1.5em;
}

.steps li {
    margin-bottom: 7px;
}

.table-wrap {
    margin: 0 0 20px;
    overflow-x: auto;
}

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

th,
td {
    padding: 6px 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eeeeee;
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

td:first-child {
    white-space: nowrap;
}

.package-summary {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.82rem;
}

.package-table {
    min-width: 620px;
    table-layout: fixed;
}

.package-table th:nth-child(1) {
    width: 39%;
}

.package-table th:nth-child(2) {
    width: 17%;
}

.package-table th:nth-child(3) {
    width: 12%;
}

.package-table th:nth-child(4) {
    width: 14%;
}

.package-table th:nth-child(5) {
    width: 18%;
}

.package-table th,
.package-table td {
    padding-left: 8px;
    padding-right: 8px;
}

.package-table td {
    white-space: nowrap;
}

.package-table td:first-child {
    white-space: normal;
}

.package-desc {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.package-source {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.75rem;
}

.package-arch {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.75rem;
}

.sidebar {
    min-width: 0;
}

.box {
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: var(--page);
}

.box-title {
    margin: 0;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    color: #333333;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.details {
    margin: 0;
    padding: 12px;
}

.details dt {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.details dd {
    margin: 2px 0 12px;
    font-size: 0.88rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.details dd:last-child {
    margin-bottom: 0;
}

.link-list {
    margin: 0;
    padding: 10px 12px 10px 28px;
    font-size: 0.88rem;
}

.link-list li {
    margin-bottom: 6px;
}

.link-list li:last-child {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.footer-inner {
    padding: 18px 0 26px;
    color: var(--muted);
    font-size: 0.78rem;
}

.footer-inner p {
    margin: 0 0 4px;
}

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

@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 22px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        margin-top: 12px;
    }

    .box {
        margin-bottom: 0;
    }
}

@media (max-width: 660px) {
    .package-table {
        display: block;
        min-width: 0;
    }

    .package-table thead {
        display: none;
    }

    .package-table tbody,
    .package-table tr,
    .package-table td {
        display: block;
        width: auto;
    }

    .package-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--line);
        background: var(--page);
    }

    .package-table tbody tr:nth-child(even) {
        background: var(--page);
    }

    .package-table td {
        padding: 6px 10px;
        border: 0;
        border-bottom: 1px solid var(--line-soft);
        white-space: normal;
    }

    .package-table td:last-child {
        border-bottom: 0;
    }

    .package-table td::before {
        content: attr(data-label) ": ";
        color: var(--muted);
        font-weight: 700;
    }

    .package-table td:first-child::before,
    .package-table td:last-child::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 24px, 960px);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-meta {
        display: none;
    }

    .nav-inner a {
        padding: 7px 11px;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .url-box {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}
