.btc-res { font-family: inherit; }

.btc-res-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 36px 0 24px;
}

.btc-res-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
}

.btc-res-sub {
    font-size: 15px;
    color: #737879;
    line-height: 1.5;
    margin: 0;
}

.btc-res-gen {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 2px;
}

.btc-res-gen-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 2px;
    text-align: right;
}

.btc-res-gen-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid #e3e2de;
    border-radius: 999px;
    font-size: 13px;
    color: #555;
    background: #faf9f7;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}

.btc-res-gen-pill:hover {
    border-color: #1d1d1b;
    color: #1d1d1b;
    background: #fff;
    text-decoration: none;
}

.btc-res-divider {
    border: none !important;
    border-top: 1px solid #e3e2de !important;
    margin: 0 !important;
}

.btc-res-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 0;
}

.btc-res-cat-btn {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid transparent;
    color: #737879;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.btc-res-cat-btn:hover {
    color: #1d1d1b;
    background: #f0efeb;
}

.btc-res-cat-btn.active {
    color: #1d1d1b;
    background: #f0efeb;
    border-color: #d8d6d0;
}

.btc-res-cat-all {
    margin-left: 6px;
    border-color: #d8d6d0;
    color: #555;
}

.btc-res-cat-all:hover {
    background: #1d1d1b;
    color: #fff;
    border-color: #1d1d1b;
}

.btc-res-sec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #aaa;
    padding: 28px 0 14px;
    border-bottom: 1px solid #e3e2de;
    margin-bottom: 16px;
}

.btc-res-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

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

.btc-res-card {
    border: 1px solid #e3e2de;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, transform .2s;
}

.btc-res-card:hover {
    border-color: #b5b3ad;
    transform: translateY(-2px);
}

.btc-res-img {
    aspect-ratio: 4/3;
    background: #f5f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.btc-res-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.btc-res-body {
    padding: 10px 12px 13px;
}

.btc-res-name {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.btc-res-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.btc-res-dl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid #eceae4;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: background .12s, border-color .12s, color .12s;
}

.btc-res-dl:hover {
    background: #f5f4f0;
    border-color: #ccc;
    color: #1d1d1b;
    text-decoration: none;
}

.btc-res-dl svg {
    opacity: .4;
    flex-shrink: 0;
    transition: opacity .12s;
}

.btc-res-dl:hover svg {
    opacity: .7;
}
