.profile-resource-library {
    color: var(--ink, #1a1a1a);
    font-family: Inter, Arial, sans-serif;
    padding: 18px 0 56px;
}

.profile-resource-library__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    padding: 22px 0 24px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.13);
}

.profile-resource-library__eyebrow,
.profile-resource-section__label,
.profile-resource-document__kind,
.profile-resource-document__meta,
.profile-resource-media__meta,
.profile-resource-library__count {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-resource-library__eyebrow,
.profile-resource-section__label,
.profile-resource-document__kind,
.profile-resource-document__meta,
.profile-resource-media__meta {
    color: rgba(26, 26, 26, 0.53);
}

.profile-resource-library__title {
    margin: 8px 0 0;
    font: 600 clamp(24px, 2.7vw, 38px)/1.08 Inter, Arial, sans-serif;
    letter-spacing: -0.035em;
}

.profile-resource-library__copy {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(26, 26, 26, 0.67);
}

.profile-resource-library__count {
    color: rgba(26, 26, 26, 0.47);
    white-space: nowrap;
}

.profile-resource-section {
    padding: 28px 0 0;
}

.profile-resource-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 14px;
}

.profile-resource-section__hint {
    color: rgba(26, 26, 26, 0.44);
    font-size: 12px;
    line-height: 1.4;
}

.profile-resource-documents {
    margin-top: 28px;
    border: 1px solid var(--profile-module-border, #d8d4cc);
    border-top: 3px solid var(--profile-module-accent, #2f684d);
    border-radius: 8px;
    overflow: hidden;
    background: var(--profile-module-bg, #faf9f7);
    box-shadow: 0 1px 2px rgba(20, 20, 16, 0.045), 0 12px 30px rgba(20, 20, 16, 0.055);
}

.profile-resource-module__header {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid var(--profile-module-border, #d8d4cc);
    background: #efede8;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-resource-documents__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.profile-resource-documents__table th {
    height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.13);
    background: #f7f6f3;
    color: rgba(26, 26, 26, 0.5);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.profile-resource-documents__table th:nth-child(1) { width: 39%; }
.profile-resource-documents__table th:nth-child(2) { width: 14%; }
.profile-resource-documents__table th:nth-child(3) { width: 14%; }
.profile-resource-documents__table th:nth-child(4) { width: 15%; }
.profile-resource-documents__table th:nth-child(5) { width: 9%; }
.profile-resource-documents__table th:nth-child(6) { width: 9%; }

.profile-resource-document {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.profile-resource-document td {
    min-width: 0;
    height: 78px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    color: rgba(26, 26, 26, 0.69);
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.profile-resource-document:hover,
.profile-resource-document:focus-visible {
    background: #f5f4f1;
    outline: none;
}

.profile-resource-document:last-child td { border-bottom: 0; }

.profile-resource-document__title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.profile-resource-document__official {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #e4eee8;
    color: #35634e;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-resource-document__title {
    color: #11100d !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 650 !important;
    letter-spacing: -0.015em;
    text-transform: none !important;
}

.profile-resource-document__description {
    display: -webkit-box;
    margin: 5px 0 0;
    color: rgba(26, 26, 26, 0.64);
    font-size: 11px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-resource-document__mobile-meta { display: none; }

.profile-resource-document__kind {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 12px);
    min-height: 22px;
    padding: 4px 7px;
    border: 1px solid rgba(47, 104, 77, 0.14);
    border-radius: 5px;
    background: #eef2ec;
    color: #2f684d;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    line-height: 1.15;
    white-space: normal;
}

.profile-resource-document__action a {
    color: rgba(26, 26, 26, 0.72);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-resource-media {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(260px, 0.72fr);
    grid-template-areas:
        "stage body"
        "stage thumbs";
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 440px;
    border: 1px solid var(--profile-module-border, #d8d4cc);
    border-top: 3px solid var(--profile-module-accent, #2f684d);
    border-radius: 8px;
    overflow: hidden;
    background: var(--profile-module-bg, #faf9f7);
    box-shadow: 0 1px 2px rgba(20, 20, 16, 0.045), 0 12px 30px rgba(20, 20, 16, 0.055);
}

.profile-resource-media__stage {
    grid-area: stage;
    position: relative;
    height: min(38vw, 437px);
    min-height: 320px;
    background: #efeeeb;
    overflow: hidden;
}

.profile-resource-media__stage img,
.profile-resource-media__stage iframe,
.profile-resource-media__stage video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.profile-resource-media__stage img,
.profile-resource-media__stage video {
    object-fit: cover;
}

.profile-resource-media__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.profile-resource-media__play::after {
    content: "";
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #11100d;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.profile-resource-media__play::before {
    content: "";
    position: absolute;
    z-index: 1;
    margin-left: 4px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
}

.profile-resource-media__body {
    grid-area: body;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 20px;
    border-left: 1px solid rgba(26, 26, 26, 0.1);
    background: #efede8;
}

.profile-resource-media__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 650;
}

.profile-resource-media__caption {
    margin: 5px 0 0;
    color: rgba(26, 26, 26, 0.62);
    font-size: 13px;
    line-height: 1.5;
}

.profile-resource-media__source {
    color: rgba(26, 26, 26, 0.65);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-resource-media__source:hover,
.profile-resource-media__source:focus-visible {
    color: #11100d;
    text-decoration: underline;
}

.profile-resource-media__thumbs {
    grid-area: thumbs;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    border-left: 1px solid rgba(26, 26, 26, 0.1);
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    scrollbar-width: thin;
}

.profile-resource-media__thumb {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #efeeeb;
    cursor: pointer;
}

.profile-resource-media__thumb.is-active {
    border-color: #11100d;
    box-shadow: inset 0 0 0 1px #11100d;
}

.profile-resource-media__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-resource-media__thumb span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 5px;
    border-radius: 3px;
    background: rgba(17, 16, 13, 0.84);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .profile-resource-library__intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
        padding-top: 12px;
    }
    .profile-resource-library__count { white-space: normal; }
    .profile-resource-documents__table th { height: 46px; padding: 0 12px; }
    .profile-resource-documents__table th:nth-child(1) { width: 78%; }
    .profile-resource-documents__table th:nth-child(5) { width: 22%; }
    .profile-resource-documents__table th:nth-child(2),
    .profile-resource-documents__table th:nth-child(3),
    .profile-resource-documents__table th:nth-child(4),
    .profile-resource-documents__table th:nth-child(6),
    .profile-resource-document__kind-cell,
    .profile-resource-document__scope,
    .profile-resource-document__publisher,
    .profile-resource-document__action { display: none; }
    .profile-resource-document td { height: 76px; padding: 11px 12px; }
    .profile-resource-document__description { -webkit-line-clamp: 1; }
    .profile-resource-document__mobile-meta {
        display: block;
        margin-top: 5px;
        color: rgba(26, 26, 26, 0.48);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1.3;
        text-transform: uppercase;
    }
    .profile-resource-media__body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .profile-resource-media__source { white-space: normal; }
    .profile-resource-media__thumbs { grid-auto-columns: 112px; }
    .profile-resource-library { padding-top: 12px; }
    .profile-resource-media {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "stage" "body" "thumbs";
        grid-template-rows: auto auto auto;
        max-height: none;
    }
    .profile-resource-media__stage {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .profile-resource-media__body {
        padding: 14px 16px 15px;
        border-left: 0;
        border-top: 1px solid rgba(26, 26, 26, 0.1);
    }
    .profile-resource-media__thumbs {
        grid-auto-flow: column;
        grid-auto-columns: 112px;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        border-left: 0;
    }
    .profile-resource-documents { margin-top: 22px; }
    .profile-resource-module__header { min-height: 46px; padding: 0 12px; }
}
