:root {
    --text-grey: #9e9e9e;
    --text-main: rgba(0, 0, 0, 0.87);
    --spacing: 4px;
    --size: 64px;
    --radius: 8px;
    --accent: #5380f7;
    --text-sm: 0.875rem;
    --main-bg: #fff;
    --card-bg: #fff;
    --hover-color: #eee;
    --border-color: rgba(0, 0, 0, 0.05);
    --grey-400: rgba(0, 0, 0, 0.04);
    --grey-600: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --main-bg: rgb(0, 0, 0);
        --card-bg: rgb(31, 34, 38);
        --text-main: #d9d9d9;
        --text-grey: #6e767d;
        --accent: #1d9bf0;
        --hover-color: rgba(255, 255, 255, 0.07);
        --border-color: #4b4648;
    }
}

body {
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    font-kerning: normal;
    font-family: 'Gotham SSm A', 'Gotham SSm B', 'Arial Unicode MS', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background-color: var(--main-bg);
}

* ul,
* ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/**[role='button'],
button {
    cursor: pointer;
}*/

.sticky {
    position: sticky;
}

.color-primary {
    color: var(--text-main);
}

.mg-0 { margin: 0; }
.mb-5 { margin-bottom: calc(var(--spacing) * 5); }
.mt-0 { margin-top: 0; }
.pd-4 { padding: calc(var(--spacing) * 4); }
.radius-1 { border-radius: var(--radius); }
.px-6 {
    padding-left: calc(var(--spacing) * 6);
    padding-right: calc(var(--spacing) * 6);
}
.py-10 {
    padding-top: calc(var(--spacing) * 10);
    padding-bottom: calc(var(--spacing) * 10);
}
.pd-6 { padding: calc(var(--spacing) * 6); }
.py-6 {
    padding-left: calc(var(--spacing) * 6);
    padding-right: calc(var(--spacing) * 6);
}
.pt-1 { padding-top: var(--spacing); }
.pb-0 { padding-bottom: 0; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.items-center { align-items: center; }
.shrink-0 { flex-shrink: 0; }
.text-grey { color: var(--text-grey); }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-md { font-size: 1.25rem; }
.text-lg { font-size: 1.5rem; }
.uppercase { text-transform: uppercase; }
.bg-card { background-color: var(--card-bg); }
.align-right { text-align: right; }
.align-center { text-align: center; }

.truncate {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--line, 3);
    overflow: hidden;
}
.truncate-1 { --line: 1; }
.overflow-ellipsis { text-overflow: ellipsis; }

.z-grid {
    display: grid;
    grid-gap: var(--gutter, 1rem);
    grid-template-columns: repeat(auto-fill, minmax(min(var(--space, 10rem), 100%), 1fr));
}

.z-row {
    display: flex;
    flex-flow: row wrap;
}

.z-col { position: relative; }
.z-col-5 {
    display: block;
    flex: 0 0 calc(100% / 5.2);
    max-width: calc(100% / 5.2);
}

.card {
    box-shadow: rgb(0 0 0 / 30%) 0 8px 40px -12px;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    width: 90%;
    position: relative;
    overflow: visible;
    background-color: var(--card-bg);
    margin: 0 auto;
}

.card:hover { transform: translateY(-2px); }
.card:hover .mask { bottom: -1.5rem; }
.card:hover .mask-c-1 { bottom: -2.5rem; }

.container {
    padding-top: calc(var(--spacing) * 10);
}

.container p {
    position: relative;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.container p::after {
    content: attr(data-content);
    position: absolute;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    color: transparent;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.relative { position: relative; }
.container p:hover { color: transparent; }
.container p:hover::after {
    color: var(--text-main);
    background-color: var(--hover-color);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--main-bg);
    backdrop-filter: blur(18px);
    width: fit-content;
    border-radius: var(--text-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 99;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    box-shadow: 2px -2px 6px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--main-bg);
    border-right: 6px solid var(--main-bg);
    border-bottom: 6px solid transparent;
    border-left: 6px solid transparent;
    transform: rotate(-45deg);
    mix-blend-mode: multiply;
}

.toggle {
    outline: 0;
    user-select: none;
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    border: 0px solid transparent;
    border-radius: var(--radius);
    box-sizing: border-box;
    padding: 12px 21px;
    font-weight: 400;
    letter-spacing: 1.2px;
    background-color: transparent;
    transition: border 250ms ease-out, color 250ms ease-out;
    max-width: 60%;
}

.toggle::before {
    content: attr(data-version);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    display: block;
}

.toggle:hover {
/*    border: 1px solid var(--accent);
    color: var(--accent);*/
}

.toggle li {
    z-index: 99;
    position: relative;
    background: transparent;
    padding: 0 20px;
    color: var(--text-main);
    transition: background-color 250ms ease-out;
}

.toggle li:hover { background-color: var(--hover-color); }
.toggle li.active a { color: var(--accent); }
.toggle li:first-child {
    border-top-left-radius: var(--text-sm);
    border-top-right-radius: var(--text-sm);
}
.toggle li:last-child {
    border-bottom-left-radius: var(--text-sm);
    border-bottom-right-radius: var(--text-sm);
}
.toggle li:last-child a { border-bottom: 0; }
.toggle li a {
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.icon { background-size: 64px; }
.icon-ii { background-image: url('../images/intellij-idea.svg'); }
.icon-ps { background-image: url('../images/phpstorm.svg'); }
.icon-ac { background-image: url('../images/appcode.svg?v=1'); }
.icon-db { background-image: url('../images/datagrip.svg'); }
.icon-rm { background-image: url('../images/rubymine.svg'); }
.icon-ws { background-image: url('../images/webstorm.svg'); }
.icon-rd { background-image: url('../images/rider.svg'); }
.icon-cl { background-image: url('../images/clion.svg'); }
.icon-pc { background-image: url('../images/pycharm.svg'); }
.icon-go { background-image: url('../images/goland.svg'); }
.icon-ds { background-image: url('../images/dataspell.svg'); }
.icon-dc { background-image: url('../images/dotcover.svg'); }
.icon-dpn { background-image: url('../images/dottrace.svg'); }
.icon-dm { background-image: url('../images/dotmemory.svg'); }
.icon-rr { background-image: url('../images/rustrover.svg'); }
.icon-qa { background-image: url('../images/aqua.svg'); }
.icon-plugin { background-image: url('../images/plugin.svg'); }

.mask {
    transition: 0.2s;
    position: absolute;
    z-index: -1;
    width: 88%;
    height: 100%;
    bottom: 0;
    border-radius: 1.5rem;
    background-color: var(--grey-600);
    left: 50%;
    transform: translateX(-50%);
}

.mask-c-1 {
    bottom: 0;
    width: 72%;
    background-color: var(--grey-400);
}

.avatar-wrapper {
    position: relative;
    width: var(--size);
    height: var(--size);
    font-size: 1.25rem;
    user-select: none;
    transform: translateY(50%);
}

.avatar-wrapper img,
.avatar-wrapper .icon {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--card-bg);
    color: transparent;
    object-fit: cover;
    text-align: center;
    text-indent: 10000px;
}

header.tip {
    top: 2.3%;
    background-color: var(--card-bg);
    color: var(--text-main);
    z-index: 99;
    justify-content: center;
    width: 75%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: rgb(0 0 0 / 30%) 0 8px 40px -12px;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

header.tip:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.12);
}

header.tip a {
    color: var(--accent);
    text-decoration: none;
}

header.tip p {
    text-align: center;
    word-break: break-word;
    word-wrap: break-word;
}

a.plugin-download-link {
    color: var(--accent);
    text-decoration: none;
}

.license-text {
    font-size: 11px;
    line-height: 1.2;
    white-space: pre-line;
    word-break: break-all;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

main hr {
    margin: 0;
    padding: 0;
    background: var(--border-color);
    height: 1px;
    border: none;
}

footer {
    --_size: 40px;
    padding-top: var(--_size);
    width: 96%;
    margin: calc(var(--spacing) * 10) auto 0;
    padding-bottom: var(--_size);
    border-top: 1px solid var(--border-color);
    -moz-box-align: center;
    -webkit-box-pack: justify;
}

footer .lt-panel p:nth-of-type(1) {
    color: inherit;
}