/* Resource detail only: full-width reading area and separate full-width legal sections. */
.px-resource-detail .resource-detail-fullwidth-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    margin-top: 28px;
}
.px-resource-detail .resource-fullwidth-section {
    width: 100%;
    min-width: 0;
    margin: 0;
}
.px-resource-detail .resource-description-section.px-content-tabs {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: var(--sf-surface);
}
.px-resource-detail .resource-fullwidth-heading {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sf-text-primary);
}
.px-resource-detail .resource-description-section .px-rich-content {
    max-width: none;
    min-width: 0;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.px-resource-detail .px-rich-content :is(h1,h2,h3,h4,h5,h6) {
    margin: 24px 0 12px;
    line-height: 1.4;
    color: var(--sf-text-primary);
}
.px-resource-detail .px-rich-content :is(p,ul,ol,blockquote) {
    margin-block: 0 16px;
}
.px-resource-detail .px-rich-content :is(ul,ol) {
    padding-inline-start: 24px;
}
.px-resource-detail .px-rich-content :is(img,video,iframe) {
    max-width: 100%;
}
.px-resource-detail .px-rich-content table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
}
.px-resource-detail .px-rich-content pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.px-resource-detail .resource-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.px-resource-detail.resource-detail-section .resource-legal-section,
.px-resource-detail.resource-detail-section .resource-copyright-section,
.px-resource-detail.resource-detail-section .resource-notice-section {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}
.px-resource-detail .resource-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    background: var(--sf-surface);
    color: var(--sf-text-secondary);
    overflow-wrap: anywhere;
}
.px-resource-detail .resource-legal-card > div {
    min-width: 0;
    flex: 1;
}
.px-resource-detail .resource-legal-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sf-surface-soft);
    color: var(--sf-text-secondary);
}
.px-resource-detail .resource-legal-icon svg {
    width: 24px;
    height: 24px;
}
.px-resource-detail.resource-detail-section .resource-legal-card :is(h2, h3, .resource-legal-heading) {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--sf-text-primary);
}
.px-resource-detail.resource-detail-section .resource-legal-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}
.px-resource-detail a.resource-detail-tag-chip {
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.px-resource-detail a.resource-detail-tag-chip:hover,
.px-resource-detail a.resource-detail-tag-chip:focus-visible {
    border-color: var(--sf-accent);
    color: var(--sf-accent);
    background: var(--sf-red-subtle);
}
.px-resource-detail a.resource-detail-tag-chip:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 2px;
}
.px-resource-detail .membership-promo-banner {
    margin-top: 32px;
}
@media (max-width: 767px) {
    .px-resource-detail .resource-detail-fullwidth-stack {
        margin-top: 20px;
        gap: 16px;
    }
    .px-resource-detail .resource-legal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .px-resource-detail .resource-description-section.px-content-tabs {
        padding: 18px;
    }
    .px-resource-detail .resource-legal-card {
        padding: 18px;
    }
    .px-resource-detail .membership-promo-banner {
        margin-top: 24px;
    }
}

/* Icons inherit hover, disabled and submitting colors from native actions. */
.px-resource-detail .resource-panel-actions > form,
.px-resource-detail .resource-panel-actions > .resource-report-wrap { display: grid; }
.px-resource-detail .resource-panel-actions :is(.resource-btn-primary,.resource-report-link) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    height: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
}
.px-resource-detail .resource-action-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.px-resource-detail .resource-action-label { min-width: 0; line-height: 1.4; }
.px-resource-detail .resource-panel-actions :is(.resource-btn-primary,.resource-report-link):focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 3px;
}
