﻿.page-head h1 {
    margin: 0 0 4px;
    font-size: 30px;
    font-weight: 600;
}

.page-head p {
    margin: 0 0 22px;
    color: var(--ink-dim);
    font-size: 14px;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));    
    gap: 16px;
}

.p-tile {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 18px 18px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    min-width: 0;
}

    .p-tile:hover {
        border-color: var(--gold);
        box-shadow: 0 6px 18px rgba(14,13,17,.08);
        transform: translateY(-1px);
    }

    .p-tile:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 2px;
    }

.pt-photo {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

    .pt-photo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        border: 2px solid var(--gold);
        background: var(--bg);
    }

.pt-rank {
    position: absolute;
    right: -4px;
    bottom: -2px;
    min-width: 35px;
    height: 35px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dark);
    color: var(--gold-bright);
    border: 2px solid var(--surface);
    font: 700 12px/23px 'Inter',sans-serif;
    text-align: center;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-wrap: balance;
    align-content: center;
    justify-content: center;
}

    .pt-rank.first {
        background: var(--gold-bright);
        color: var(--dark);
    }

    .pt-rank.second {
        background: var(--silver);
        color: var(--dark);
    }

    .pt-rank.third {
        background: var(--bronze);
        color: var(--dark);
    }

.pt-body {
    min-width: 0;
    flex: 1;
}

.pt-name {
    font-family: 'Fraunces',serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pt-tag {
    font-size: 13px;
    color: var(--ink-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.pt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}

    .pt-row b {
        font-size: 14px;
        color: var(--ink);
        font-weight: 600;
    }

    .pt-row > span:first-child {
        white-space: nowrap;
    }

    .pt-row.now {
        margin-top: 2px;
    }

        .pt-row.now b {
            font-size: 19px;
            color: var(--gold);
            font-weight: 700;
            font-family: 'Fraunces',serif;
        }

        .pt-row.now .v {
            display: inline-flex;
            align-items: baseline;
            gap: 7px;
        }

.delta {
    font: 600 11.5px 'Inter',sans-serif;
    color: var(--ink-dim);
    background: #F1EEE6;
    border-radius: 999px;
    padding: 1px 8px;
    white-space: nowrap;
}

    .delta.top {
        color: var(--gold);
        background: #F6EFD9;
    }

.pt-extra {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}

    .pt-extra b {
        color: var(--ink);
        font-weight: 600;
    }

.p-grid.minimal .pt-rank, .p-grid.minimal .delta, .p-grid.minimal .pt-extra {
    display: none;
}
