/*
 * Resource Grid & Single Page — Creative UI + Motion
 * Remotedesk Resource Hub (uses .rd-plugin-ui theme vars from rd-ui-base.css)
 */

.rd-plugin-ui {
    --rd-primary-2: var(--rd-accent-hover);
    --rd-accent-2:  var(--rd-accent-soft);
    --rd-success:   #10B981;
    --rd-radius:    14px;
    --rd-radius-lg: 20px;
    --rd-shadow:    0 4px 24px rgba(10, 37, 64, 0.08);
    --rd-shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.12);
    --rd-ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --rd-duration:  0.55s;
}

.rd-resource-hub {
    position: relative;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.rd-resource-grid-wrap,
.rd-resource-page-wrap .rd-resource-hub {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
}

.rd-layout-3-col {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 960px) {
    .rd-layout-3-col {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 580px) {
    .rd-layout-3-col {
        grid-template-columns: 1fr !important;
    }
}

.rd-resource-hub.rd-dot-canvas::before {
    opacity: 0.12;
}

/* ── Archive ───────────────────────────────────────── */
.rd-archive-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: #fff;
}

.rd-archive-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 32px;
}

.rd-archive-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--rd-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.rd-archive-desc {
    font-size: 1.05rem;
    color: var(--rd-muted);
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
}

.rd-archive-section { margin-bottom: 64px; }

.rd-archive-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rd-primary);
    margin: 0 0 28px;
    position: relative;
    display: inline-block;
}

.rd-archive-section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 48px;
    height: 3px;
    border-radius: 99px;
    background: var(--rd-accent);
    animation: rd-line-grow 1s var(--rd-ease) both;
}

@keyframes rd-line-grow {
    from { width: 0; opacity: 0; }
    to   { width: 48px; opacity: 1; }
}

/* ── Grid layouts ──────────────────────────────────── */
.rd-resource-grid {
    perspective: 1400px;
}

.rd-layout-1-col {
    display: grid;
    grid-template-columns: minmax(0, 380px);
    gap: 28px;
}

.rd-resource-single-embed.rd-resource-hub {
    padding: 0;
    background: transparent;
}

.rd-layout-toggle {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.rd-toggle-btn {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--rd-muted);
    display: flex;
    transition: all 0.3s var(--rd-ease);
}

.rd-toggle-btn.active,
.rd-toggle-btn:hover {
    background: var(--rd-accent);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 224, 92, 0.28);
}

.rd-view-list { display: flex; flex-direction: column; gap: 20px; }
.rd-view-list .rd-resource-card { flex-direction: row; min-height: 200px; }
.rd-view-list .rd-resource-card__thumb { flex: 0 0 42%; max-width: 320px; aspect-ratio: 4/3; }
.rd-view-list .rd-resource-card__media-link { flex: 0 0 42%; max-width: 320px; }

.rd-view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 580px) {
    .rd-view-list .rd-resource-card,
    .rd-view-list .rd-resource-card__media-link { flex-direction: column; max-width: none; flex: auto; }
    .rd-view-grid { grid-template-columns: 1fr; }
}

/* ── Resource cards ────────────────────────────────── */
.rd-resource-card {
    position: relative;
    transform-style: preserve-3d;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    box-shadow: var(--rd-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--rd-ease), box-shadow 0.45s var(--rd-ease), border-color 0.35s;
    isolation: isolate;
}

.rd-resource-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 224, 92, 0.35), rgba(0, 224, 92, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--rd-ease);
    pointer-events: none;
    z-index: 2;
}

.rd-resource-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--rd-shadow-lg);
    border-color: rgba(0, 224, 92, 0.25);
}

.rd-resource-card:hover::before { opacity: 1; }

.rd-resource-card__glow {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -60px;
    background: radial-gradient(circle, rgba(0, 224, 92, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.rd-resource-card:hover .rd-resource-card__glow { opacity: 1; }

.rd-resource-card__media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rd-resource-card__thumb {
    position: relative;
    background: linear-gradient(145deg, var(--rd-accent-soft), var(--rd-beige));
    overflow: hidden;
    aspect-ratio: 16/10;
}

.rd-resource-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--rd-ease);
}

.rd-resource-card:hover .rd-resource-card__thumb img {
    transform: scale(1.08);
}

.rd-resource-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(16, 16, 19, 0.5) 100%);
    opacity: 0.65;
    transition: opacity 0.4s;
}

.rd-resource-card:hover .rd-resource-card__overlay { opacity: 0.85; }

.rd-resource-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    color: var(--rd-accent);
    opacity: 0.5;
}

.rd-resource-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(10, 37, 64, 0.75);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rd-resource-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.rd-resource-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.rd-resource-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rd-resource-card__title a:hover {
    color: var(--rd-accent-hover);
}
}

.rd-resource-card__excerpt {
    font-size: 0.9rem;
    color: var(--rd-muted);
    margin: 0;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rd-resource-card__industry {
    font-size: 0.75rem;
    color: var(--rd-muted);
    font-weight: 500;
}

.rd-resource-card__footer { margin-top: 6px; }

/* Buttons: rd-ui-base.css (pill gradient + pixel arrow) */
.rd-resource-card__footer .rd-btn {
    align-self: stretch;
}

/* ── Badges ────────────────────────────────────────── */
.rd-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.rd-badge--type {
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    border: 1px solid var(--rd-brand-glow-soft);
}

.rd-badge--industry {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Scroll reveal ─────────────────────────────────── */
.rd-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--rd-duration) var(--rd-ease), transform var(--rd-duration) var(--rd-ease);
}

.rd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rd-reveal--left {
    transform: translateX(-24px);
}

.rd-reveal--left.is-visible { transform: translateX(0); }

.rd-reveal--right {
    transform: translateX(24px);
}

.rd-reveal--right.is-visible { transform: translateX(0); }

.rd-reveal--scale {
    transform: scale(0.94);
    opacity: 0;
}

.rd-reveal--scale.is-visible {
    transform: scale(1);
    opacity: 1;
}

/* Stagger children in grid */
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(1)  { transition-delay: 0.05s; }
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(2)  { transition-delay: 0.1s; }
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(3)  { transition-delay: 0.15s; }
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(4)  { transition-delay: 0.2s; }
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(5)  { transition-delay: 0.25s; }
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(6)  { transition-delay: 0.3s; }
.rd-resource-grid .rd-resource-card.rd-reveal:nth-child(n+7) { transition-delay: 0.35s; }

/* Legacy class support */
.rd-animate-in { animation: none; }

/* ══════════════════════════════════════════════════════
   Single resource page — Remotedesk theme layout
   ══════════════════════════════════════════════════════ */

/* Inner resource detail pages only — beige background */
.rd-single-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--rd-page-bg, #f9f9f8);
    padding: 2rem 0 4rem !important;
}

.rd-single-page__container {
    width: min(80rem, 100% - 2rem) !important;
    max-width: 80rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.rd-thank-you-banner {
    max-width: none;
    margin: 0 0 1.25rem;
    padding: 14px 20px;
    background: var(--rd-accent-soft);
    border: 1px solid var(--rd-brand-glow-medium);
    border-radius: 12px;
    color: var(--rd-accent-hover);
    font-size: 0.9375rem;
    font-weight: 600;
}

.rd-thank-you-banner p {
    margin: 0;
}

.rd-thank-you-page__card {
    max-width: 560px;
    margin: 40px auto;
    padding: 36px 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--rd-border, #e2e8f0);
    text-align: center;
    box-shadow: 0 8px 32px rgba(16, 16, 19, 0.08);
}

.rd-thank-you-page__card h1 {
    margin: 0 0 12px;
    color: var(--rd-text, #101013);
}

.rd-single-resource--layout {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    grid-template-areas:
        "breadcrumb breadcrumb"
        "hero       sidebar"
        "mobilecta  sidebar"
        "body       sidebar";
    gap: 1rem 2rem;
    align-items: start;
    float: none !important;
}

.rd-single-breadcrumb {
    grid-area: breadcrumb;
    margin-bottom: 4px;
}

.rd-single-hero {
    grid-area: hero;
    min-width: 0;
}

.rd-single-mobile-cta {
    display: none;
    grid-area: mobilecta;
}

.rd-single-resource__body {
    grid-area: body;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rd-single-resource__sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: sticky;
    top: calc(var(--rd-header-height, 5rem) + 1.5rem);
    align-self: start;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    max-width: 380px;
    justify-self: end;
}

/* Lead form must stay visible — no scroll-reveal on sidebar */
.rd-single-resource__sidebar.rd-reveal,
.rd-single-resource__sidebar .rd-form-panel {
    opacity: 1;
    transform: none;
}

.rd-single-resource--no-form {
    grid-template-columns: 1fr;
    grid-template-areas:
        "breadcrumb"
        "hero"
        "body";
}

.rd-single-resource--no-form .rd-single-mobile-cta,
.rd-single-resource--no-form .rd-single-resource__sidebar {
    display: none !important;
}

#rd-download-form {
    scroll-margin-top: 88px;
}

/* Mobile CTA band below cover image */
.rd-single-mobile-cta {
    padding: 4px 0 8px;
}

.rd-single-mobile-cta__link {
    width: 100%;
}

.rd-single-mobile-cta__link .rd-btn__inner {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    margin: 0 auto;
}

/* Breadcrumb */
.rd-single-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 0.8125rem;
    color: var(--rd-muted);
    margin: 0;
}

.rd-single-breadcrumb a {
    color: var(--rd-muted);
    text-decoration: none;
    font-weight: 500;
}

.rd-single-breadcrumb a:hover {
    color: var(--rd-accent);
}

.rd-single-breadcrumb__sep {
    opacity: 0.45;
}

.rd-single-breadcrumb__current {
    color: var(--rd-text);
    font-weight: 500;
}

/* Hero — RemoteDesk brand green */
.rd-single-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--rd-accent-hover);
}

.rd-single-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rd-single-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--rd-accent-hover);
    background-image: var(--rd-hero-bg-image);
    background-size: cover;
    background-position: top right;
    background-repeat: no-repeat;
}

.rd-single-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rd-brand-gradient-overlay);
}

.rd-single-hero__content {
    padding: 28px 32px 20px;
    width: 100%;
}

.rd-single-hero__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 300px;
    min-height: 220px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
}

.rd-single-hero__cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.rd-single-hero__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rd-single-hero__badge-emoji {
    font-size: 13px;
    line-height: 1;
    text-transform: none;
}

.rd-single-hero__badge-label {
    line-height: 1.2;
}

.rd-single-hero__title,
.rd-single-page .rd-single-hero h1.rd-single-hero__title {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff !important;
    max-width: 720px;
}

/* White content panel */
.rd-single-panel {
    background: var(--rd-surface);
    border-radius: 16px;
    border: 1px solid var(--rd-border);
    box-shadow: 0 4px 24px rgba(16, 16, 19, 0.05);
    padding: 24px;
}

.rd-single-panel__grid {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 24px 28px;
    align-items: start;
}

.rd-single-panel__grid:not(:has(.rd-single-panel__visual)) {
    grid-template-columns: 1fr;
}

.rd-single-panel__cover {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--rd-accent) 0%, #2a9d96 100%);
    aspect-ratio: 3 / 4;
    max-height: 360px;
}

.rd-single-panel__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rd-single-panel__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--rd-page-bg, #f9f9f8);
    border-radius: 12px;
    transition: box-shadow 0.25s ease;
}

.rd-feature-item:hover {
    box-shadow: 0 4px 16px var(--rd-brand-glow-soft);
}

.rd-feature-item__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rd-accent);
    color: #fff;
    border-radius: 10px;
}

.rd-feature-item__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rd-muted);
}

.rd-feature-item__text strong {
    color: var(--rd-text);
    font-weight: 700;
    font-size: 0.95rem;
}

.rd-single-panel__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rd-muted);
}

.rd-single-panel__intro p {
    margin: 0 0 1em;
}

/* About block */
.rd-single-about {
    background: var(--rd-surface);
    border-radius: 16px;
    border: 1px solid var(--rd-border);
    box-shadow: 0 4px 24px rgba(16, 16, 19, 0.05);
    padding: 28px 32px 32px;
}

.rd-single-about__title {
    margin: 0 0 20px;
    padding-left: 16px;
    border-left: 4px solid var(--rd-accent);
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(1.0625rem, 0.9rem + 0.45vw, 1.75rem) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--rd-black) !important;
}

.rd-single-about__summary {
    font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.125rem);
    line-height: 1.65;
    color: var(--rd-muted);
    margin-bottom: 20px;
}

.rd-single-about__summary p {
    margin: 0 0 1em;
}

.rd-single-tags {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-single-tags li {
    padding: 6px 14px;
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
}

.rd-single-about__content.rd-prose {
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.rd-prose {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.125rem) !important;
    line-height: 1.65 !important;
    color: #4b5563 !important;
}

.rd-prose p {
    margin: 0 0 1.25em;
    font-size: inherit !important;
    line-height: inherit !important;
}

.rd-prose h1 {
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(1.5rem, 0.95rem + 1.35vw, 2.625rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #000 !important;
    margin: 2rem 0 0.75rem !important;
}

.rd-prose h2 {
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(1.5rem, 0.95rem + 1.35vw, 2.625rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #000 !important;
    margin: 2rem 0 0.75rem !important;
}

.rd-prose h3 {
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(1.0625rem, 0.9rem + 0.45vw, 1.75rem) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #000 !important;
    margin: 1.5rem 0 0.625rem !important;
}

.rd-prose h4,
.rd-prose h5,
.rd-prose h6 {
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.25rem) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #000 !important;
    margin: 1.25rem 0 0.5rem !important;
}

.rd-prose li {
    font-size: inherit !important;
    line-height: inherit !important;
}

.rd-prose img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

/* Sidebar form panel — stretch to match left column height */
.rd-form-panel {
    background: var(--rd-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(16, 16, 19, 0.08);
    border: 1px solid var(--rd-border);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rd-form-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 22px 20px;
    background: var(--rd-brand-gradient);
    color: #fff;
}

.rd-form-panel__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.rd-form-panel__head .rd-form-panel__title,
.rd-form-panel__head h2.rd-form-panel__title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff !important;
}

.rd-form-panel__head .rd-form-panel__subtitle,
.rd-form-panel__head p.rd-form-panel__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.rd-form-panel__body {
    padding: 18px 16px 20px;
}

.rd-form-panel .rd-form {
    gap: 10px;
}

.rd-form-panel .rd-form--compact {
    gap: 8px;
}

.rd-plugin-ui .rd-btn--download {
    border-radius: 12px;
}

.rd-btn--download .rd-btn__arrow-slot {
    display: inline-flex;
}

.rd-btn--download .rd-btn__arrow-slot .rd-btn__arrow {
    display: none;
}

.rd-btn--download .rd-btn__download-icon {
    flex-shrink: 0;
}

/* ── Single page responsive ────────────────────────── */
@media (max-width: 1024px) {
    .rd-single-resource--layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "breadcrumb"
            "hero"
            "mobilecta"
            "sidebar"
            "body";
        gap: 20px;
    }

    .rd-single-mobile-cta {
        display: block;
    }

    .rd-single-resource__sidebar {
        position: static;
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .rd-single-panel__grid {
        grid-template-columns: 1fr;
    }

    .rd-single-panel__cover {
        max-height: 280px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .rd-single-page {
        padding: 1.25rem 0 3rem !important;
    }

    .rd-single-page__container {
        width: min(80rem, 100% - 1.25rem) !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .rd-single-resource--layout {
        padding: 0 !important;
    }

    .rd-single-hero {
        border-radius: 12px;
    }

    .rd-single-hero__content {
        padding: 20px 18px 16px;
    }

    .rd-single-hero__cover {
        min-height: 180px;
        max-height: 240px;
    }

    .rd-single-hero__title {
        font-size: 1.35rem;
    }

    .rd-single-panel,
    .rd-single-about {
        padding: 18px 16px 20px;
        border-radius: 12px;
    }

    .rd-feature-item {
        padding: 14px;
    }

    .rd-form-panel__head,
    .rd-form-panel__body {
        padding: 18px 16px;
    }

    .rd-single-breadcrumb__current {
        white-space: normal;
    }
}

.rd-no-resources {
    color: var(--rd-muted);
    font-style: italic;
    padding: 24px 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rd-reveal,
    .rd-reveal--left,
    .rd-reveal--right,
    .rd-reveal--scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .rd-resource-card,
    .rd-resource-card__thumb img,
    .rd-btn,
    .rd-key-point-card,
    .rd-btn--glow {
        animation: none !important;
        transition: none !important;
    }

    .rd-resource-card:hover {
        transform: none;
    }
}
