.resource-detail-page {
    display: flex;
    justify-content: center;
    padding-top: clamp(28px, 7vw, 72px);
    padding-bottom: 24px;
}

.resource-detail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 760px);
    height: clamp(360px, 62vh, 520px);
    padding: clamp(22px, 5vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(208, 128, 22, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(78, 60, 35, 0.1);
}

.resource-detail-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #d97706;
    content: "";
}

.resource-detail-header,
.resource-detail-eyebrow,
.resource-detail-cloud {
    display: flex;
    align-items: center;
}

.resource-detail-header {
    justify-content: space-between;
    gap: 12px;
}

.resource-detail-eyebrow,
.resource-detail-cloud {
    gap: 7px;
    margin: 0;
    border-radius: 999px;
    font-weight: 700;
}

.resource-detail-eyebrow {
    padding: 7px 11px;
    color: #a65f08;
    background: #fff5df;
    font-size: 0.82rem;
}

.resource-detail-cloud {
    padding: 6px 10px;
    color: #2f8268;
    background: #edf8f3;
    font-size: 0.78rem;
}

.resource-detail-scroll {
    flex: 1;
    min-height: 0;
}

.resource-detail-header svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.resource-detail-title {
    margin: 18px 0 22px;
    color: #172033;
    font-size: clamp(1.18rem, 4vw, 1.72rem);
    font-weight: 750;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.resource-detail-scroll {
    margin-top: 24px;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    background: #f6f8fb;
    overscroll-behavior: contain;
    scrollbar-color: #d4a766 transparent;
    scrollbar-width: thin;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.resource-detail-scroll-head,
.resource-detail-scroll-head > span {
    display: flex;
    align-items: center;
}

.resource-detail-scroll-head {
    position: sticky;
    z-index: 1;
    top: -14px;
    justify-content: space-between;
    gap: 10px;
    margin: -14px -14px 0;
    padding: 12px 14px 10px;
    color: #68645f;
    background: #f6f8fb;
    font-size: 0.78rem;
}

.resource-detail-scroll-head > span {
    gap: 5px;
}

.resource-detail-scroll-head svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.resource-detail-scroll:focus-visible {
    outline: 2px solid #d08016;
    outline-offset: 3px;
}

.resource-detail-meta {
    display: grid;
    gap: 0;
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.resource-detail-meta > div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #e6e8ec;
}

.resource-detail-meta > div:last-child {
    border-bottom: 0;
}

.resource-detail-meta dt,
.resource-detail-meta dd {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.resource-detail-meta dt {
    color: #7b746b;
}

.resource-detail-meta dd {
    min-width: 0;
    color: #364152;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .resource-detail-page {
        padding-top: 20px;
    }

    .resource-detail-card {
        height: clamp(350px, 60vh, 480px);
        padding: 20px 18px 22px;
        border-radius: 18px;
    }

    .resource-detail-title {
        margin-bottom: 18px;
        font-size: 1.18rem;
        line-height: 1.5;
    }

    .resource-detail-cloud {
        max-width: 44%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .resource-detail-scroll {
        margin-top: 20px;
    }
}
