﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body,
h1,
ul,
li,
p {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f4f4f9;
    line-height: 1.45;
    padding: 12px;
}

h1 {
    background: #0077cc;
    color: #fff;
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

#links {
    max-width: 860px;
    margin: 0 auto;
}

.download-category {
    margin-bottom: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.category-toggle {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #dcdcdc;
    background: #f8f8fc;
    color: #0077cc;
    border-radius: 0;
    padding: 12px 14px;
    margin: 0;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

    .category-toggle:hover {
        background: #f0f4ff;
    }

.download-category.is-collapsed .category-toggle {
    border-bottom: 0;
}

.category-content {
    padding: 10px;
    background: #fff;
}

.category-content[hidden] {
    display: none;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 700;
}

    a:hover {
        text-decoration: underline;
    }

.flex-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.toggle-btn,
.toggle-txt {
    color: dodgerblue;
    background: none;
    border: none;
    text-align: left;
    line-height: 1.2;
    border-radius: 8px;
    margin: 0;
}

.toggle-btn {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

    .toggle-btn:hover {
        background: none;
    }

.toggle-txt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
    border: 1px solid rgba(30, 144, 255, 0.35);
    background: rgba(30, 144, 255, 0.04);
    font-size: 1rem;
    font-weight: 700;
}

    .toggle-txt:hover {
        background: rgba(30, 144, 255, 0.1);
        text-decoration: none;
    }

.desc {
    font-size: 0.92rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.45;
}

    .desc[hidden] {
        display: none;
    }

@media (max-width: 700px) {
    body {
        padding: 10px;
    }

    h1 {
        padding: 18px 12px;
        margin-bottom: 12px;
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    li {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .flex-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .toggle-btn {
        width: 100%;
        font-size: 0.98rem;
        line-height: 1.18;
    }

    .toggle-txt {
        width: 100%;
        padding: 11px 12px;
        font-size: 0.98rem;
    }

    .desc {
        font-size: 0.88rem;
        margin-top: 8px;
    }

    .category-toggle {
        font-size: 1.05rem;
        padding: 10px 12px;
        margin-bottom: 8px;
    }
}
