.pav-shell,
.pav-public {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto;
    color: #202020;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.pav-public {
    width: min(1240px, calc(100% - 40px));
}

.pav-panel {
    background: #ffffff;
    border: 1px solid #e6e1d8;
    border-radius: 8px;
    padding: 28px;
}

.pav-auth {
    max-width: 520px;
}

.pav-auth h1,
.pav-user-header h1,
.pav-hero h1,
.pav-entry-info h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}

.pav-auth p,
.pav-muted,
.pav-byline,
.pav-user-header p,
.pav-hero span {
    color: #6c655d;
}

.pav-user-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.pav-user-header nav,
.pav-actions,
.pav-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pav-user-header a,
.pav-link {
    color: #8b6427;
    text-decoration: none;
    font-weight: 600;
}

.pav-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.pav-stat {
    display: block;
    border: 1px solid #e7dfd3;
    border-radius: 8px;
    padding: 22px;
    color: inherit;
    text-decoration: none;
    background: #fffdf9;
}

.pav-stat span {
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 8px;
}

.pav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid #1f1f1f;
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 700;
}

.pav-button-dark {
    background: #1f1f1f;
    color: #ffffff;
}

.pav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.pav-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.pav-card {
    border: 1px solid #e5ded2;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.pav-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f5f2ec;
    overflow: hidden;
}

.pav-card-image img,
.pav-category-tile img,
.pav-entry-media img,
.pav-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pav-card-image span:not(.pav-badge) {
    display: grid;
    place-items: center;
    height: 100%;
    color: #756f67;
}

.pav-card-body {
    padding: 18px;
}

.pav-card-body h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.pav-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(31, 31, 31, 0.86);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.pav-hero {
    padding: 52px 0 36px;
}

.pav-hero p,
.pav-kicker {
    margin: 0 0 10px;
    color: #9b742f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.pav-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 8vw, 96px);
}

.pav-hero-small h1 {
    font-size: clamp(36px, 6vw, 72px);
}

.pav-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.pav-gallery-intro {
    max-width: 820px;
    margin: 0 auto 32px;
    color: #514a42;
    font-size: 17px;
    line-height: 1.75;
    text-align: center;
}

.pav-category-tile {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #1f1f1f;
    color: #ffffff;
    text-decoration: none;
}

.pav-category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.68) 100%);
}

.pav-category-tile span {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 22px;
    font-weight: 700;
}

.pav-category {
    width: min(1320px, calc(100% - 40px));
}

.pav-featured-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 8px 0 52px;
}

.pav-section {
    margin-top: 54px;
}

.pav-section-header {
    margin-bottom: 22px;
    border-bottom: 1px solid #e5ded2;
    padding-bottom: 14px;
}

.pav-section-header h2,
.pav-subcategory-heading h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.pav-section-header h2 {
    font-size: 34px;
    line-height: 1.12;
}

.pav-overall-section {
    margin-top: 68px;
    padding-top: 6px;
    text-align: center;
}

.pav-overall-divider {
    width: 74px;
    height: 1px;
    margin: 0 auto 30px;
    background: #c3a052;
}

.pav-overall-head {
    max-width: 920px;
    margin: 0 auto 24px;
}

.pav-overall-kicker {
    margin: 0 0 12px;
    color: #9b742f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pav-overall-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.pav-overall-name {
    margin: 18px 0 0;
    color: #2b2824;
    font-size: 21px;
    font-weight: 700;
}

.pav-overall-name span {
    color: #756f67;
    font-weight: 400;
}

.pav-poty-intro {
    margin: 28px auto 32px;
    max-width: 980px;
}

.pav-poty-intro img {
    max-width: 100%;
    height: auto;
}

.pav-overall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 24px;
    margin-top: 26px;
}

.pav-overall-item {
    color: inherit;
    text-decoration: none;
}

.pav-overall-media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f2ec;
}

.pav-overall-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pav-overall-caption {
    display: block;
    margin-top: 12px;
}

.pav-overall-caption strong,
.pav-overall-caption em {
    display: block;
    line-height: 1.3;
}

.pav-overall-caption strong {
    font-size: 16px;
}

.pav-overall-caption em {
    margin-top: 5px;
    color: #9b742f;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.pav-gallery-footer {
    margin-top: 56px;
    padding-top: 18px;
    border-top: 1px solid #e5ded2;
    color: #756f67;
    text-align: center;
}

.pav-subcategory-group {
    margin-top: 34px;
}

.pav-subcategory-heading {
    margin-bottom: 18px;
}

.pav-subcategory-heading p {
    margin: 0 0 8px;
    color: #9b742f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pav-subcategory-heading h3 {
    font-size: 28px;
    line-height: 1.14;
}

.pav-subcategory-heading span {
    display: block;
    margin-top: 6px;
    color: #756f67;
}

.pav-archive-item-featured .pav-card-image {
    aspect-ratio: 3 / 4;
}

.pav-archive-item .pav-card-body .pav-muted {
    margin: 0 0 8px;
}

.pav-entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
    gap: 34px;
    align-items: start;
}

.pav-entry-media {
    background: #f5f2ec;
}

.pav-entry-info {
    position: sticky;
    top: 24px;
}

.pav-awards-list {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.pav-awards-list span {
    padding: 10px 12px;
    border: 1px solid #e5ded2;
    border-radius: 6px;
    background: #fffdf9;
}

.pav-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .pav-featured-results {
        grid-template-columns: 1fr;
    }

    .pav-entry-layout {
        grid-template-columns: 1fr;
    }

    .pav-entry-info {
        position: static;
    }
}

@media (max-width: 700px) {
    .pav-shell,
    .pav-public,
    .pav-category {
        width: min(100% - 28px, 1180px);
        margin: 32px auto;
    }

    .pav-user-header,
    .pav-stats {
        display: block;
    }

    .pav-stat {
        margin-bottom: 12px;
    }

    .pav-section-header h2 {
        font-size: 28px;
    }

    .pav-overall-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .pav-shell,
    .pav-public {
        width: min(100% - 24px, 1180px);
        margin: 28px auto;
    }

    .pav-user-header,
    .pav-entry-layout {
        display: block;
    }

    .pav-user-header nav {
        margin-top: 16px;
    }

    .pav-stats {
        grid-template-columns: 1fr;
    }

    .pav-entry-info {
        position: static;
        margin-top: 22px;
    }
}
